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"
|
2022-09-27 08:07:17 +00:00
|
|
|
pkgver=12.1
|
2022-05-05 14:50:55 +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
|
2022-03-23 18:46:24 +00:00
|
|
|
soc-qcom-msm8916 soc-qcom-msm8916-rproc soc-samsung-msm8916-modem-workaround"
|
2019-12-07 14:00:58 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2021-12-02 01:30:32 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
2022-04-03 09:04:48 +00:00
|
|
|
phoc.ini
|
2021-12-02 01:30:32 +00:00
|
|
|
"
|
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"
|
2022-04-03 09:04:48 +00:00
|
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
2020-07-11 10:07:47 +00:00
|
|
|
}
|
|
|
|
|
2021-07-07 05:06:17 +00:00
|
|
|
sha512sums="
|
2022-09-27 08:07:17 +00:00
|
|
|
97e284d05d40bcf90a01a7da01d31664b748678b23cf90eeba74b6ccec7e19249f6bf939d900277ec20ac796c21cbf79ed09be9d05aaf408f61a31df9d73b361 deviceinfo
|
2022-05-05 14:50:55 +00:00
|
|
|
1bc90a1a67309b43435039332b2a1d7e606408c6429b3cb8991a57f53dd4de36fbe471481b6481fbdb098c3819344e8093dd8eab0d34eb3c091ab6d8abd5c087 phoc.ini
|
2021-07-07 05:06:17 +00:00
|
|
|
"
|