pmaports/device/community/device-samsung-a5/APKBUILD
Pablo Correa Gómez 4914067590
device/*: transform deviceinfo_modules_initfs into a file (MR 4169)
The file is automatically packed by devicepkg-dev utils

Relates #1836
2023-08-04 08:27:44 +02:00

47 lines
1.7 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Minecrell <minecrell@minecrell.net>
# Co-Maintainer: Alexey Min <alexey.min@gmail.com>
pkgname=device-samsung-a5
pkgdesc="Samsung Galaxy A5 (2015)"
pkgver=10.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"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
"
_pmb_select="soc-qcom-msm8916-rproc"
# Backwards compatibility for old device package names + kernel variants
_substitutes="device-samsung-a5lte device-samsung-a5ulte"
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-a5-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"
}
sha512sums="
9740a2ed7187c596d60da355a7423a800a1cc5a1c71c88ed80eb25837a1051d5e3edfca3e12d4f098b5b43e31d403984817569a0916ec0aaa9b652928cb837d8 deviceinfo
2fe2dd36a3883b9c3c8542ce328abd5ef5864df1d027bc532998c246d8a3946443945ccf25977f7755269b9f06f386cd9381e6b181b6ba0eab3a07bf9d2aaff7 modules-initfs
"