pmaports/device/testing/device-xiaomi-vince/APKBUILD
2022-03-26 17:31:54 +01:00

84 lines
3.5 KiB
Text

# Maintainer: m0rf30 <morf3089@gmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-vince
pkgdesc="Xiaomi Redmi Note 5 Plus"
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-xiaomi-vince mkbootimg mesa-dri-swrast msm-fb-refresher"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-alsa
"
source="deviceinfo
fb.modes
pointercal
misc/100-charging.rules
misc/buttons.conf
misc/charging.sh
misc/discharging.sh
misc/vince-audioctl.sh
ucm2/msm8953-snd-car/HiFi.conf
ucm2/msm8953-snd-car/msm8953-snd-card-mtp.conf
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/fb.modes \
"$pkgdir"/etc/fb.modes
install -Dm644 "$srcdir"/pointercal \
"$pkgdir"/etc/pointercal
install -Dm644 "$srcdir"/100-charging.rules \
"$pkgdir"/etc/udev/rules.d/100-charging.rules
install -Dm755 "$srcdir"/charging.sh \
"$pkgdir"/usr/lib/device-xiaomi-vince/charging.sh
install -Dm755 "$srcdir"/discharging.sh \
"$pkgdir"/usr/lib/device-xiaomi-vince/discharging.sh
install -Dm755 "$srcdir"/vince-audioctl.sh \
"$pkgdir"/usr/lib/device-xiaomi-vince/vince-audioctl.sh
# Disable v4l udev rules (video4linux), because without the camera
# firmware blobs this makes udev helper hang (#1033)
mkdir -p "$pkgdir"/etc/udev/rules.d
ln -s /dev/null "$pkgdir"/etc/udev/rules.d/60-persistent-v4l.rules
}
nonfree_firmware() {
pkgdesc="Wi-Fi, ADSP Firmware"
depends="firmware-xiaomi-vince wcnss-wlan"
install="$pkgname-nonfree-firmware.post-install"
mkdir "$subpkgdir"
}
alsa() {
pkgdesc="Audio configuration files"
depends="adsp-audio alsa-plugins-pulse alsa-ucm-conf alsa-utils pulseaudio pulseaudio-alsa triggerhappy"
mkdir "$subpkgdir"
# Install triggerhappy evdev rules for vince
install -Dm755 "$srcdir"/buttons.conf -t \
"$subpkgdir"/etc/triggerhappy/triggers.d
install -Dm644 -t "$subpkgdir"/usr/share/alsa/ucm2/conf.d/msm8953-snd-card \
"$srcdir"/msm8953-snd-card-mtp.conf \
"$srcdir"/HiFi.conf
}
sha512sums="
cce2edf56b821550cc783cf9e31a824d1e695a36781269802517c4bb63f6633141b3c2486396800df24ebeff668828c26a9811d030d942c9eea2b0effbb646e9 deviceinfo
9b888f3a4ef3ed3c0b2e9c6a6e8a6c686909c530c3d95be797b47b4eb9deb55d64190b7a3736e44139630bfff5e295625a855052923369fdd37889060a3220ca fb.modes
4fa63c184f00033fbae2e4b140c9655061b3b662e337f7bdf5f8e26f7b57d6c66ad01fc93da05ce7d330f0f05bb0d36cc9b356ebfc7eb4200be4d4cc03afc975 pointercal
b6951e2f8d2e21aa58f15b600a67289900d645b9dcff9992d0864dea383528539fc8b0140bff6af4eba4bb729db79a3d5d88ba248fcf2b579dd8c3cd0e20ae4e 100-charging.rules
922519b787ab8d6886f3b2e0ace84de69d0e185208776aedd471828132d13bc6364393cd5c7f97634de014aaf3fb100c9fa4724c97d6d1220320d2e73e0f1947 buttons.conf
89195cfaa131eef1a34c882685ed53eb0e80d1520cf9924e775875bde1de883448f3d182775f8323b261afaf0f6a5e73aa31142f2e72acc3ac584a64de6e72a3 charging.sh
947fb09b7dce638d28afb367ce193437092bca956647486d67438a3fbb695c9354bc1174a68a5993644c3c619f9826cb8a84b8b9f49b513a484089a965b665c5 discharging.sh
24762c3f4b0d1e9a035495c05e53852a68d46699e1f41915bd6d68af3d2a22dad075c77209533d92a81693aa45c86018ce825a8b7e7a8c163b59d826d9e204d1 vince-audioctl.sh
a72522650df9ff6bda188aeca71b9e2dacf810e1efaa10d8c32eb65e445ffb69e49410f531bc110abab270126140baa047ca847c9ed7a84f231c9c678263fc0e HiFi.conf
4d034b7f38831a84d489c25d39b9363f86d701e336163be79f5313eaf3f527a83866e1a0e23c7aabbea706c0fe4dda64dfb8b04353c72ec84ac9a07cf3dae55d msm8953-snd-card-mtp.conf
"