2020-07-21 13:44:57 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2021-08-27 13:08:28 +00:00
|
|
|
# Maintainer: Mis012 <Michael.Srba@seznam.cz>
|
|
|
|
# Co-Maintainer: Nikita Travkin <nikita@trvn.ru>
|
2020-08-04 09:46:27 +00:00
|
|
|
# Co-Maintainer: Minecrell <minecrell@minecrell.net>
|
2021-08-27 13:08:28 +00:00
|
|
|
pkgname=device-samsung-a3
|
|
|
|
pkgdesc="Samsung Galaxy A3 (2015)"
|
2024-02-15 08:21:05 +00:00
|
|
|
pkgver=12
|
2024-06-18 19:53:59 +00:00
|
|
|
pkgrel=1
|
2020-07-21 13:44:57 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
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"
|
2020-07-21 13:44:57 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2021-12-02 01:30:32 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
modules-initfs
|
2022-04-03 09:04:48 +00:00
|
|
|
phoc.ini
|
2021-12-02 01:30:32 +00:00
|
|
|
"
|
2020-07-21 13:44:57 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-phosh
|
|
|
|
"
|
2021-10-24 12:48:45 +00:00
|
|
|
_pmb_select="soc-qcom-msm8916-rproc"
|
2020-07-21 13:44:57 +00:00
|
|
|
|
2021-10-24 12:48:45 +00:00
|
|
|
# Backwards compatibility for old device package names + kernel variants
|
2021-08-27 13:08:28 +00:00
|
|
|
_substitutes="device-samsung-a3lte device-samsung-a3ulte"
|
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
|
2021-08-27 13:08:28 +00:00
|
|
|
for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done
|
|
|
|
|
2020-07-21 13:44:57 +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-a3-wcnss-nv"
|
2021-08-27 13:08:28 +00:00
|
|
|
replaces=""
|
|
|
|
for pkg in $_substitutes; do replaces="$replaces $pkg-nonfree-firmware"; done
|
|
|
|
for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done
|
2020-07-21 13:44:57 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
phosh() {
|
2021-08-27 13:08:28 +00:00
|
|
|
replaces=""
|
|
|
|
for pkg in $_substitutes; do replaces="$replaces $pkg-phosh"; done
|
|
|
|
for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done
|
2020-07-21 13:44:57 +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-21 13:44:57 +00:00
|
|
|
}
|
|
|
|
|
2021-07-07 05:06:17 +00:00
|
|
|
sha512sums="
|
2024-06-18 19:53:59 +00:00
|
|
|
b0bf0480159db976c1ba827d65cf68400dad255ff0f2627fd9ff74673993d605b8a1059fac1e7f11e4d565e2072dcf1760e61e04f816880bafc722a4b725fc31 deviceinfo
|
2023-01-30 16:52:06 +00:00
|
|
|
3754688b2a61c204f37944d700b6fc273f68a01e25d444a3c3f2dd2531d8538650a2e571657e18e7a96a2db96b19f2f738d6f465bde477efd66ab31a78edfb91 modules-initfs
|
2022-05-05 14:50:55 +00:00
|
|
|
e8f734a2f8d154813dbb493f0d58af50a7f624ffed41967a81493b975a6211efc6d30743b23825562cfd126791cbdd3348bfbed32eeece9b8acec0a37c3c51b6 phoc.ini
|
2021-07-07 05:06:17 +00:00
|
|
|
"
|