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
|
2023-08-02 17:06:01 +00:00
|
|
|
pkgrel=1
|
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"
|
2023-08-02 17:06:01 +00:00
|
|
|
source="deviceinfo modules-initfs"
|
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="
|
2023-08-02 17:06:01 +00:00
|
|
|
9740a2ed7187c596d60da355a7423a800a1cc5a1c71c88ed80eb25837a1051d5e3edfca3e12d4f098b5b43e31d403984817569a0916ec0aaa9b652928cb837d8 deviceinfo
|
|
|
|
2fe2dd36a3883b9c3c8542ce328abd5ef5864df1d027bc532998c246d8a3946443945ccf25977f7755269b9f06f386cd9381e6b181b6ba0eab3a07bf9d2aaff7 modules-initfs
|
2021-07-07 05:06:17 +00:00
|
|
|
"
|