2019-06-23 10:58:45 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-01-18 11:34:23 +00:00
|
|
|
# Maintainer: Minecrell <minecrell@minecrell.net>
|
2021-09-19 09:18:08 +00:00
|
|
|
# Co-Maintainer: Alexey Min <alexey.min@gmail.com>
|
|
|
|
pkgname=device-samsung-a5
|
|
|
|
pkgdesc="Samsung Galaxy A5 (2015)"
|
2022-09-27 08:07:17 +00:00
|
|
|
pkgver=10.1
|
2022-03-03 15:50:53 +00:00
|
|
|
pkgrel=0
|
2019-06-23 10:58:45 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2021-10-24 12:48:45 +00:00
|
|
|
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916
|
2022-03-23 18:46:24 +00:00
|
|
|
soc-qcom-msm8916 soc-qcom-msm8916-rproc soc-samsung-msm8916-modem-workaround"
|
2019-06-23 10:58:45 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2022-03-03 15:50:53 +00:00
|
|
|
source="deviceinfo"
|
2020-01-18 11:34:23 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
"
|
2021-10-24 12:48:45 +00:00
|
|
|
_pmb_select="soc-qcom-msm8916-rproc"
|
2019-06-23 10:58:45 +00:00
|
|
|
|
2021-10-24 12:48:45 +00:00
|
|
|
# Backwards compatibility for old device package names + kernel variants
|
2021-09-19 09:18:08 +00:00
|
|
|
_substitutes="device-samsung-a5lte device-samsung-a5ulte"
|
2021-10-24 12:48:45 +00:00
|
|
|
replaces="$_substitutes $pkgname-kernel-mainline $pkgname-kernel-mainline-modem"
|
|
|
|
for pkg in $_substitutes; do replaces="$replaces $pkg-kernel-mainline $pkg-kernel-mainline-modem"; done
|
2021-09-19 09:18:08 +00:00
|
|
|
for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done
|
|
|
|
|
2019-06-23 10:58:45 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
2021-10-19 08:32:43 +00:00
|
|
|
pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
|
|
|
|
depends="firmware-qcom-adreno-a300 msm-firmware-loader firmware-samsung-a5-wcnss-nv"
|
2021-09-19 09:18:08 +00:00
|
|
|
replaces=""
|
|
|
|
for pkg in $_substitutes; do replaces="$replaces $pkg-nonfree-firmware"; done
|
|
|
|
for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done
|
2020-01-18 11:34:23 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-07-07 05:06:17 +00:00
|
|
|
sha512sums="
|
2022-09-27 08:07:17 +00:00
|
|
|
6af9b3ef868bfc398e645746bf1e95829eb0900bd78b8b7f68bf1eae8248f70a49287f49bc79deaf690b6a3b73c899c120518006f9552693b6d8a123b5641354 deviceinfo
|
2021-07-07 05:06:17 +00:00
|
|
|
"
|