2019-12-07 14:00:58 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-01-18 11:41:51 +00:00
|
|
|
# Maintainer: Minecrell <minecrell@minecrell.net>
|
2021-09-23 13:04:07 +00:00
|
|
|
pkgname=device-samsung-serranove
|
2019-12-07 14:00:58 +00:00
|
|
|
pkgdesc="Samsung Galaxy S4 Mini Value Edition"
|
2021-10-24 12:48:45 +00:00
|
|
|
pkgver=7
|
2021-09-23 13:04:07 +00:00
|
|
|
pkgrel=0
|
2019-12-07 14:00:58 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="armv7"
|
|
|
|
options="!check !archcheck"
|
2021-10-24 12:48:45 +00:00
|
|
|
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916
|
|
|
|
soc-qcom-msm8916 soc-qcom-msm8916-rproc"
|
2019-12-07 14:00:58 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2021-04-11 18:13:34 +00:00
|
|
|
source="deviceinfo rootston.ini"
|
2020-01-18 11:41:51 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
2020-07-11 10:07:47 +00:00
|
|
|
$pkgname-phosh
|
2020-01-18 11:41:51 +00:00
|
|
|
"
|
2021-10-24 12:48:45 +00:00
|
|
|
_pmb_select="soc-qcom-msm8916-rproc"
|
|
|
|
|
|
|
|
# Backwards compatibility for old device package names + kernel variants
|
2021-09-23 13:04:07 +00:00
|
|
|
_substitutes="device-samsung-serranovelte"
|
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
|
|
|
|
for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done
|
2019-12-07 14:00:58 +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-serranove-wcnss-nv"
|
2021-09-23 13:04:07 +00:00
|
|
|
replaces="$_substitutes-nonfree-firmware"
|
|
|
|
provides="$replaces=$pkgver-r$pkgrel"
|
2020-01-18 11:41:51 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2020-07-11 10:07:47 +00:00
|
|
|
phosh() {
|
2021-09-23 13:04:07 +00:00
|
|
|
replaces="$_substitutes-phosh"
|
|
|
|
provides="$replaces=$pkgver-r$pkgrel"
|
2020-07-11 10:07:47 +00:00
|
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
|
|
|
install -Dm644 "$srcdir"/rootston.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/rootston.ini
|
|
|
|
}
|
|
|
|
|
2021-07-07 05:06:17 +00:00
|
|
|
sha512sums="
|
2021-10-24 12:48:45 +00:00
|
|
|
a9012f626cd3f830ebc02b44e744e8684a20cdfbf7b2e27ae0bc9830d3a575f78256e2bc505f8d61de2eaa83726313c6fc9dde2b86dcd6cc3ab1fd3bd100012c deviceinfo
|
2021-07-07 05:06:17 +00:00
|
|
|
94c866b6583faadc4a96a4d737983ba7838ede52afa5e29e261ef0ad0f2afe29fd3b793c9208ae74c7d48db6b991ad21800b9e457fbba4c69ce9dec2cda268ea rootston.ini
|
|
|
|
"
|