# Reference: pkgname=device-samsung-gt58lte pkgdesc="Samsung Galaxy Tab A 8.0 2015 (SM-T355Y)" pkgver=1 pkgrel=0 url="https://postmarketos.org" license="MIT" arch="aarch64" options="!check !archcheck" depends="postmarketos-base mkbootimg soc-qcom-msm8916" makedepends="devicepkg-dev dtbtool" source="deviceinfo rootston.ini" subpackages=" $pkgname-kernel-mainline:kernel_mainline $pkgname-kernel-mainline-modem:kernel_mainline_modem $pkgname-nonfree-firmware:nonfree_firmware $pkgname-nonfree-firmware-modem:nonfree_firmware_modem $pkgname-phosh " build() { devicepkg_build $startdir $pkgname } package() { devicepkg_package $startdir $pkgname } kernel_mainline() { pkgdesc="Close to mainline kernel (no modem, audio routed directly)" depends="linux-postmarketos-qcom-msm8916" devicepkg_subpackage_kernel $startdir $pkgname $subpkgname } kernel_mainline_modem() { pkgdesc="Close to mainline kernel (non-free modem, audio routed through ADSP)" depends="linux-postmarketos-qcom-msm8916 soc-qcom-msm8916-modem" devicepkg_subpackage_kernel $startdir $pkgname $subpkgname } nonfree_firmware() { pkgdesc="GPU/WiFi/BT/Video(/Modem) firmware" depends="linux-firmware-qcom firmware-samsung-gt58lte-venus firmware-samsung-gt58lte-wcnss" mkdir "$subpkgdir" } nonfree_firmware_modem() { pkgdesc="Modem firmware" depends="firmware-samsung-gt58lte-modem" install_if="$pkgname-nonfree-firmware $pkgname-kernel-mainline-modem" mkdir "$subpkgdir" } phosh() { install_if="$pkgname postmarketos-ui-phosh" install -Dm644 "$srcdir"/rootston.ini \ "$subpkgdir"/etc/phosh/rootston.ini } sha512sums=" 5ae8a75de908de406d4c35d1f844714636ae8aa8da29c124371540a0fae6f67da3ba670dd87ab115d84895577eb75783365f19b3fada1de69ae898d1869043be deviceinfo 3017f500a9cc6d424efd2d1498709e9319cefd6c87eaeaa4b6db6862c0df9f327ebb18b09b73c2a173aaaecc95cf465d978e08f9eaebd4f300317c433b575606 rootston.ini "