pmaports/main/waydroid-image/APKBUILD

60 lines
3.6 KiB
Text
Raw Normal View History

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=waydroid-image
pkgver=17.1.20211021
pkgrel=0
_pkgver="17.1-20211021"
_pkgver_images_vendor="17.1-20211021"
pkgdesc="Android containers for use in Waydroid"
url="https://github.com/waydroid/waydroid"
# Only x86, armv7, x86_64 and aarch64 supported upstream
arch="noarch !armhf"
license="Apache-2.0"
source="
https://sourceforge.net/projects/waydroid/files/images/system/lineage/waydroid_x86_64/lineage-$_pkgver-VANILLA-waydroid_x86_64-system.zip
https://sourceforge.net/projects/waydroid/files/images/system/lineage/waydroid_arm64/lineage-$_pkgver-VANILLA-waydroid_arm64-system.zip
https://sourceforge.net/projects/waydroid/files/images/system/lineage/waydroid_x86/lineage-$_pkgver-VANILLA-waydroid_x86-system.zip
https://sourceforge.net/projects/waydroid/files/images/system/lineage/waydroid_arm/lineage-$_pkgver-VANILLA-waydroid_arm-system.zip
https://sourceforge.net/projects/waydroid/files/images/vendor/waydroid_arm64/lineage-$_pkgver_images_vendor-MAINLINE-waydroid_arm64-vendor.zip
https://sourceforge.net/projects/waydroid/files/images/vendor/waydroid_x86_64/lineage-$_pkgver_images_vendor-MAINLINE-waydroid_x86_64-vendor.zip
https://sourceforge.net/projects/waydroid/files/images/vendor/waydroid_x86/lineage-$_pkgver_images_vendor-MAINLINE-waydroid_x86-vendor.zip
https://sourceforge.net/projects/waydroid/files/images/vendor/waydroid_arm/lineage-$_pkgver_images_vendor-MAINLINE-waydroid_arm-vendor.zip
"
options="!check pmb:cross-native" # No code to test
install_if="waydroid"
case "$CARCH" in
aarch64) _imgarch="arm64" ;;
armv7) _imgarch="arm" ;;
*) _imgarch="$CARCH" ;;
esac
unpack() {
# Overwriting as it's easier to install directly while unzipping and we
# don't need other arches than the native unpacked
:
}
package() {
install -dm755 "$pkgdir"/usr/share/waydroid-extra/images
unzip -n \
-q "$srcdir"/lineage-$_pkgver-VANILLA-waydroid_$_imgarch-system.zip \
-d "$pkgdir"/usr/share/waydroid-extra/images
unzip -n \
-q "$srcdir"/lineage-$_pkgver_images_vendor-MAINLINE-waydroid_$_imgarch-vendor.zip \
-d "$pkgdir"/usr/share/waydroid-extra/images
}
sha512sums="
8c35ac6a39b276b0d9495eba5fa601e95c0b9c9949acc70f211a6e339c4fc1664539217ea707b8d8a204babb90437a37927cea3d236e0f9866124983529b9b99 lineage-17.1-20211021-VANILLA-waydroid_x86_64-system.zip
54ad2740f9be0e4d9641c8948d1ddc108176d6c683d64527fdfa6093c6c58ad5746f027f971e08c949728f1bb887e52d5e5eb5d8bba672b5b42a837e0cc19d8c lineage-17.1-20211021-VANILLA-waydroid_arm64-system.zip
f9e6100ee759920c48f057f496d744899f5503088121c6e66bb4211e9bb2db1ae04bca1106b853dd8a8595b0f23a3f830a73b72413dd8c7afcaed9e5df1a4f4d lineage-17.1-20211021-VANILLA-waydroid_x86-system.zip
3e183b89a2a68d634c9384eaecf417a10be16086b003520dd8f8c118677577b3ba3cc0af29ff36a20eee87f0546b3faa875271a028b56c3624e1b82ee9564d3e lineage-17.1-20211021-VANILLA-waydroid_arm-system.zip
62ded1e2f2c4a04b6100e515067cc96d01740cae64f76a8655c355c5c83c2cfbb962ea951d11cabc48d01c027a74f1973084cf234fbd0743e32f174c66e28b46 lineage-17.1-20211021-MAINLINE-waydroid_arm64-vendor.zip
1fcb6215f5f4c853b7c8f388812af6794d38c3a3c4839c2f76a68e89237523491ce931d0fa0fe5910f2bf0b8ee7876c2c4fe625af92b0bf02327b1317f2d895f lineage-17.1-20211021-MAINLINE-waydroid_x86_64-vendor.zip
1654ec98f729310b11ab3fe8d77f313b5dc4b41c239492d29f3a6e615369ad2e21f0dd6f78f1be549da7b2b70c6d6a259f5c90e9349d7d4d3dac124841ec181c lineage-17.1-20211021-MAINLINE-waydroid_x86-vendor.zip
424bc5f7e967fe81b46b02b0f0100282f712c4ec6bf582c700554103ff9de2968a8cb3f7ea9d723cc2cc8b44ee4a9b401e23ab7698ab1cdb7bf363aab311e735 lineage-17.1-20211021-MAINLINE-waydroid_arm-vendor.zip
"