34 lines
1.4 KiB
Text
34 lines
1.4 KiB
Text
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
|
pkgname=postmarketos-android-recovery-installer
|
|
pkgver=1.0.5
|
|
pkgrel=0
|
|
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 pmos_install_part; do
|
|
install -Dm755 $file \
|
|
"$pkgdir"/var/lib/postmarketos-android-recovery-installer/chroot/bin/$file
|
|
done
|
|
}
|
|
sha512sums="
|
|
fa51333151d36f07dc78c72f733e260a8752c91a421ea91d349e1c26493f43162e15066b0eb46c9016beed4b29528afab73b88d70d28689af4e3b7edd71c1f11 postmarketos-android-recovery-installer-1.0.5.tar.gz
|
|
"
|