# Reference: # Maintainer: Mis012 # Co-Maintainer: Nikita Travkin # Co-Maintainer: Minecrell pkgname=device-samsung-a3 pkgdesc="Samsung Galaxy A3 (2015)" pkgver=11.1 pkgrel=1 url="https://postmarketos.org" license="MIT" arch="aarch64" options="!check !archcheck" depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916 soc-qcom-msm8916 soc-qcom-msm8916-rproc soc-samsung-msm8916-modem-workaround" makedepends="devicepkg-dev" source=" deviceinfo modules-initfs phoc.ini " subpackages=" $pkgname-nonfree-firmware:nonfree_firmware $pkgname-phosh " _pmb_select="soc-qcom-msm8916-rproc" # Backwards compatibility for old device package names + kernel variants _substitutes="device-samsung-a3lte device-samsung-a3ulte" replaces="$_substitutes $pkgname-kernel-mainline $pkgname-kernel-mainline-modem" for pkg in $_substitutes; do replaces="$replaces $pkg-kernel-mainline $pkg-kernel-mainline-modem"; done for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done build() { devicepkg_build $startdir $pkgname } package() { devicepkg_package $startdir $pkgname } nonfree_firmware() { pkgdesc="GPU/WiFi/BT/Modem/Video firmware" depends="firmware-qcom-adreno-a300 msm-firmware-loader firmware-samsung-a3-wcnss-nv" replaces="" for pkg in $_substitutes; do replaces="$replaces $pkg-nonfree-firmware"; done for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done mkdir "$subpkgdir" } phosh() { replaces="" for pkg in $_substitutes; do replaces="$replaces $pkg-phosh"; done for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done install_if="$pkgname postmarketos-ui-phosh" install -Dm644 "$srcdir"/phoc.ini \ "$subpkgdir"/etc/phosh/phoc.ini } sha512sums=" 69e0c697ea7c082f578cc412ca8da918ad39114a8f61ac3c39fd003f361eebf4cdbb568252bc38fbeb78334e5b660d1e25a3969c961c967d8154e14eee7fe126 deviceinfo e0ccfdb08f5ff9ec2108f4c45dce1f8fa36563fe4529571691d14a3632944c653597fe3ae66c46f2e4ef1d61e715a9a25df5e715db3199ace110d4f7beb60563 modules-initfs e8f734a2f8d154813dbb493f0d58af50a7f624ffed41967a81493b975a6211efc6d30743b23825562cfd126791cbdd3348bfbed32eeece9b8acec0a37c3c51b6 phoc.ini "