pmaports/device/testing/device-xiaomi-vince/APKBUILD

86 lines
3.6 KiB
Text
Raw Normal View History

# Maintainer: m0rf30 <morf3089@gmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-vince
pkgdesc="Xiaomi Redmi Note 5 Plus"
pkgver=2
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 "$srcdir"/msm8953-snd-card-mtp.conf -t \
"$subpkgdir"/usr/share/alsa/ucm2/msm8953-snd-car
install -Dm644 "$srcdir"/HiFi.conf -t \
"$subpkgdir"/usr/share/alsa/ucm/msm8953-snd-car
}
sha512sums="
d73a38385d20c3a99fcea17dd4a5d9ce89ee583051943bc3a946752a3b3b82f536b93ec6a6b4b4810b967aa75f9d96fc98c277414fa5575e0be6141643c0b78c 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
"