2019-08-30 15:23:43 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-htc-protou
|
2019-08-30 15:23:43 +00:00
|
|
|
pkgdesc="HTC Desire X"
|
|
|
|
pkgver=0.1
|
2022-04-05 16:34:43 +00:00
|
|
|
pkgrel=7
|
2019-08-30 15:23:43 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="armv7"
|
|
|
|
options="!check !archcheck"
|
2022-04-05 16:34:43 +00:00
|
|
|
depends="postmarketos-base linux-htc-protou mkbootimg mesa-dri-gallium msm-fb-refresher"
|
2019-08-30 15:23:43 +00:00
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
|
|
|
source="deviceinfo initfs-hook.sh pointercal"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
|
2020-01-10 10:32:51 +00:00
|
|
|
install -Dm644 "$srcdir"/pointercal \
|
|
|
|
"$pkgdir"/etc/pointercal
|
2019-08-30 15:23:43 +00:00
|
|
|
|
|
|
|
# Disable v4l (video4linux), because without the camera firmware
|
|
|
|
# blobs this makes udev hang with the kernel this device uses (#1033)
|
|
|
|
ln -s /dev/null "$pkgdir"/etc/udev/rules.d/60-persistent-v4l.rules
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi firmware"
|
|
|
|
depends="firmware-aosp-broadcom-wlan"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-09-18 17:06:03 +00:00
|
|
|
sha512sums="
|
|
|
|
7afbcb20a7cf0fa87de438b852b06fa86e223c2ac98cc7f5dedba2bed45d56315a86a23cee18c990bb6dd139606098beda1325186519d175725d3a23749e1313 deviceinfo
|
2019-08-30 15:23:43 +00:00
|
|
|
b49562b112ac966896d152ba30548f5b863cc94359fb02a8b75ec43a2c1229a852a218d50201628c0cbee3b88b68136163716e78dcc4ec71401ff9dc8340e016 initfs-hook.sh
|
2021-09-18 17:06:03 +00:00
|
|
|
e76d0a2e1a9b611e811f6c0c90201f019ef435132ea4e7119e6179ffc99ba72c5fb6c3bdd1041ff06186d75a163bf3443d0c073c7fe1b55c10b58af53ada163a pointercal
|
|
|
|
"
|