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)"
|
2024-02-15 08:21:05 +00:00
|
|
|
pkgver=11
|
2024-06-18 19:53:59 +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="
|
2024-06-18 19:53:59 +00:00
|
|
|
2fc9ed97981cc439046475eef8eb6d358bfde571242b14763cf4223c076cbda9ee861221e6978056e65a09020bfaeeb7734e22782701a2bcb134ef113467dc9a deviceinfo
|
2023-01-30 16:52:06 +00:00
|
|
|
13ba472485d757332b46a21fe771ae2779d0c5f1e997b6e51a4c0acce902256f0a2c724828251acf0150d7de919b691053de59041fea0b983569a004dcb75256 modules-initfs
|
2021-07-07 05:06:17 +00:00
|
|
|
"
|