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-19 08:32:43 +00:00
|
|
|
pkgver=6
|
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"
|
2020-01-18 11:41:51 +00:00
|
|
|
depends="postmarketos-base mkbootimg soc-qcom-msm8916"
|
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-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-kernel-mainline-modem:kernel_mainline_modem
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
2020-07-11 10:07:47 +00:00
|
|
|
$pkgname-phosh
|
2020-01-18 11:41:51 +00:00
|
|
|
"
|
2021-09-23 13:04:07 +00:00
|
|
|
_substitutes="device-samsung-serranovelte"
|
|
|
|
replaces="$_substitutes"
|
|
|
|
provides="$replaces=$pkgver-r$pkgrel"
|
2019-12-07 14:00:58 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2020-01-18 11:41:51 +00:00
|
|
|
kernel_mainline() {
|
2020-07-11 09:16:39 +00:00
|
|
|
pkgdesc="Close to mainline kernel (no modem, audio routed directly)"
|
2020-01-18 11:41:51 +00:00
|
|
|
depends="linux-postmarketos-qcom-msm8916"
|
2021-09-23 13:04:07 +00:00
|
|
|
replaces="$_substitutes-kernel-mainline"
|
|
|
|
provides="$replaces=$pkgver-r$pkgrel"
|
2020-01-18 11:41:51 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline_modem() {
|
2020-07-11 09:16:39 +00:00
|
|
|
pkgdesc="Close to mainline kernel (non-free modem, audio routed through ADSP)"
|
2020-01-18 11:41:51 +00:00
|
|
|
depends="linux-postmarketos-qcom-msm8916 soc-qcom-msm8916-modem"
|
2021-09-23 13:04:07 +00:00
|
|
|
replaces="$_substitutes-kernel-mainline-modem"
|
|
|
|
provides="$replaces=$pkgver-r$pkgrel"
|
2020-01-18 11:41:51 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2019-12-07 14:00:58 +00:00
|
|
|
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-09-23 13:04:07 +00:00
|
|
|
b0f7f042e48b664837bae2251ee2bec21dd9ce916da6f5a5cf1fbc2f4b158e4e035cb317a89fd522394e33c1bb079be2eedb13358fb789a04cd61f62798c1d8f deviceinfo
|
2021-07-07 05:06:17 +00:00
|
|
|
94c866b6583faadc4a96a4d737983ba7838ede52afa5e29e261ef0ad0f2afe29fd3b793c9208ae74c7d48db6b991ad21800b9e457fbba4c69ce9dec2cda268ea rootston.ini
|
|
|
|
"
|