Files
pmaports-rtwo/device/community/device-google-manta/APKBUILD
T
Aster Boese 38404b35d3 treewide: move etc/init.d and etc/conf.d into openrc subpackages and cleanup
Moves the remaining init.d and conf.d files into the OpenRC subpackages. Most
of these issues were caused by wrongly reimplementing the default_openrc
function, which can be caught in the future with
https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4643.

This commit also makes some very minor cleanup of APKBUILDs if it made
sense while fixing the subpackages.

[ci:skip-grep]

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8871>
2026-07-14 19:18:41 +02:00

84 lines
2.5 KiB
Bash

# Reference: <https://postmarketos.org/devicepkg>
# Co-Maintainer: Lukas Timmermann <lukas@timmermann.space>
maintainer="Alexandre Marquet <tb@a-marquet.fr>"
pkgname=device-google-manta
pkgdesc="Google Nexus 10"
pkgver=17
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
alsa-ucm-conf
firmware-google-manta
linux-firmware-brcm
linux-firmware-s5p-mfc
linux-postmarketos-exynos5>=6.18.33
postmarketos-base
systemd-boot
u-boot-manta
"
makedepends="devicepkg-dev"
subpackages="
$pkgname-disable-gsd-color:disable_gsd_color
$pkgname-openrc
"
source="
deviceinfo
modules-initfs
hwclock
ucm/HiFi.conf
ucm/Manta_WM1811.conf
"
replaces="device-samsung-manta"
provides="device-samsung-manta=$pkgver-r$pkgrel"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
mkdir -p "$pkgdir"/usr/lib/modules-load.d
echo "ds2482" \
> "$pkgdir"/usr/lib/modules-load.d/ds2482.conf
mkdir -p "$pkgdir"/usr/lib/modprobe.d
echo "options ds2482 active_pullup=0" \
> "$pkgdir"/usr/lib/modprobe.d/ds2482.conf
install -Dm644 "$srcdir"/hwclock \
-t "$pkgdir"/etc/conf.d/
_manta_audio_dir="$pkgdir/usr/share/alsa/ucm2/conf.d/Manta_WM1811"
install -Dm644 "$srcdir"/Manta_WM1811.conf \
-t "$pkgdir"/usr/share/alsa/ucm2/conf.d/Manta_WM1811/
install -Dm644 "$srcdir"/HiFi.conf \
-t "$pkgdir"/usr/share/alsa/ucm2/conf.d/Manta_WM1811/
}
disable_gsd_color() {
# Prevent high CPU usage of gsd-color (see issue #3853)
install_if="$pkgname=$pkgver-r$pkgrel gnome-settings-daemon"
mkdir -p "$subpkgdir"/usr/share/systemd/user/
ln -s /dev/null "$subpkgdir"/usr/share/systemd/user/org.gnome.SettingsDaemon.Color.service
}
openrc() {
default_openrc
# replaces openrc for hwclock configuration
replaces="openrc"
}
sha512sums="
a48d23e90e7ed26cb83d24c4daa1542465910a9c759377d337827d25e38ccbbf1112a5d6d653b8f78084474839e07678fa5a50c94d38841771ed61a5074c5c3a deviceinfo
e00c58936fa4340f8531538136ad028d002342a4399b68d26190b931831108007486257f9d8a48c3ed454696b45d176b1497d624c33ace21e61eba33ac7ce136 modules-initfs
8a9756c66bf1eacd6a9717abf772a198123391deac7e32a520666dd6f72c4c5b09d1a4791437c8902f62cf4b49106ace195d57082972b1cb4c843c8e1b065875 hwclock
0a3d0365369335fcb4793d6dce93b744111478e191f4725e06da431cd080874ba897ea5abf92da9fc9005a5520da253e199620229231b16fb58a41a1091e6a44 HiFi.conf
0e9c4690db5316fc9c820a1c993235f2b39e1b2852288d1a1b51af670a7ddfd1a3f8f3bf6678ba5ade04389b74ca230667f61115d78b91077ec5bf9b9622f32b Manta_WM1811.conf
"