54 lines
1.8 KiB
Text
54 lines
1.8 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
# Maintainer: Minecrell <minecrell@minecrell.net>
|
|
pkgname=device-samsung-serranove
|
|
pkgdesc="Samsung Galaxy S4 Mini Value Edition"
|
|
pkgver=7
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="armv7"
|
|
options="!check !archcheck"
|
|
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916
|
|
soc-qcom-msm8916 soc-qcom-msm8916-rproc"
|
|
makedepends="devicepkg-dev"
|
|
source="deviceinfo rootston.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-serranovelte"
|
|
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-serranove-wcnss-nv"
|
|
replaces="$_substitutes-nonfree-firmware"
|
|
provides="$replaces=$pkgver-r$pkgrel"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
phosh() {
|
|
replaces="$_substitutes-phosh"
|
|
provides="$replaces=$pkgver-r$pkgrel"
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
|
install -Dm644 "$srcdir"/rootston.ini \
|
|
"$subpkgdir"/etc/phosh/rootston.ini
|
|
}
|
|
|
|
sha512sums="
|
|
a9012f626cd3f830ebc02b44e744e8684a20cdfbf7b2e27ae0bc9830d3a575f78256e2bc505f8d61de2eaa83726313c6fc9dde2b86dcd6cc3ab1fd3bd100012c deviceinfo
|
|
94c866b6583faadc4a96a4d737983ba7838ede52afa5e29e261ef0ad0f2afe29fd3b793c9208ae74c7d48db6b991ad21800b9e457fbba4c69ce9dec2cda268ea rootston.ini
|
|
"
|