pmaports/main/postmarketos-android-recovery-installer/APKBUILD

33 lines
1.4 KiB
Text

# Contributor: Attila Szollosi <ata2001@airmail.cc>
# Maintainer: Attila Szollosi <ata2001@airmail.cc>
pkgname=postmarketos-android-recovery-installer
pkgver=1.0.0
pkgrel=1
pkgdesc="TWRP compatible postmarketOS installer script"
arch="all"
url="https://postmarketos.org"
license="GPL-3.0-or-later"
# multipath-tools: kpartx
depends="busybox-extras lddtree cryptsetup multipath-tools device-mapper parted util-linux zip e2fsprogs tar"
source="https://gitlab.com/postmarketos/postmarketos-android-recovery-installer/-/archive/$pkgver/postmarketos-android-recovery-installer-$pkgver.tar.gz"
options="!check" # No tests
build() {
gcc -static -o disable-warning disable-warning.c
}
package() {
install -Dm755 build_zip.sh \
"$pkgdir"/sbin/build-recovery-zip
install -Dm644 update-binary \
"$pkgdir"/var/lib/postmarketos-android-recovery-installer/META-INF/com/google/android/update-binary
install -Dm755 pmos_chroot \
"$pkgdir"/var/lib/postmarketos-android-recovery-installer/pmos_chroot
install -Dm755 disable-warning \
"$pkgdir"/var/lib/postmarketos-android-recovery-installer/disable-warning
for file in pmos_install pmos_install_functions pmos_setpw; do
install -Dm755 $file \
"$pkgdir"/var/lib/postmarketos-android-recovery-installer/chroot/bin/$file
done
}
sha512sums="595620cb0e074080248177042d0c5edb2ff18f8ad0784667908ec5ad27bd0ef4723f5702554fb8674503d1a3d49b2cb08d4635c25e5f4045b72ad68cd4fd4c86 postmarketos-android-recovery-installer-1.0.0.tar.gz"