2020-06-10 09:17:06 +00:00
|
|
|
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
|
2017-08-24 21:07:36 +00:00
|
|
|
pkgname=postmarketos-android-recovery-installer
|
2022-11-06 06:15:39 +00:00
|
|
|
pkgver=1.0.6
|
2020-06-10 09:17:06 +00:00
|
|
|
pkgrel=0
|
2017-08-24 21:07:36 +00:00
|
|
|
pkgdesc="TWRP compatible postmarketOS installer script"
|
2019-10-22 21:11:15 +00:00
|
|
|
arch="all"
|
2018-06-30 07:00:48 +00:00
|
|
|
url="https://postmarketos.org"
|
2019-10-22 21:11:15 +00:00
|
|
|
license="GPL-3.0-or-later"
|
2017-08-24 21:07:36 +00:00
|
|
|
# multipath-tools: kpartx
|
2017-10-14 15:41:12 +00:00
|
|
|
depends="busybox-extras lddtree cryptsetup multipath-tools device-mapper parted util-linux zip e2fsprogs tar"
|
2019-10-22 21:11:15 +00:00
|
|
|
source="https://gitlab.com/postmarketos/postmarketos-android-recovery-installer/-/archive/$pkgver/postmarketos-android-recovery-installer-$pkgver.tar.gz"
|
|
|
|
options="!check" # No tests
|
2017-08-24 21:07:36 +00:00
|
|
|
|
2019-01-22 23:02:25 +00:00
|
|
|
build() {
|
|
|
|
gcc -static -o disable-warning disable-warning.c
|
|
|
|
}
|
|
|
|
|
2017-08-24 21:07:36 +00:00
|
|
|
package() {
|
2019-10-22 21:11:15 +00:00
|
|
|
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
|
2020-06-10 09:17:06 +00:00
|
|
|
for file in pmos_install pmos_install_functions pmos_setpw pmos_install_part; do
|
2019-10-22 21:11:15 +00:00
|
|
|
install -Dm755 $file \
|
|
|
|
"$pkgdir"/var/lib/postmarketos-android-recovery-installer/chroot/bin/$file
|
2017-08-24 21:07:36 +00:00
|
|
|
done
|
|
|
|
}
|
2021-10-10 09:46:11 +00:00
|
|
|
sha512sums="
|
2022-11-06 06:15:39 +00:00
|
|
|
31e78dfc76982c61db9af510cad80346ff0508e24a1259505ae705e6f77f59061e2e2fe90e8b5e0a4762d188667266233a92ec2db727fc54dc9e6518fca6ef75 postmarketos-android-recovery-installer-1.0.6.tar.gz
|
2021-10-10 09:46:11 +00:00
|
|
|
"
|