2020-04-07 17:56:30 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2021-07-18 01:52:41 +00:00
|
|
|
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
2020-04-07 17:56:30 +00:00
|
|
|
pkgname=device-pine64-pinebookpro
|
|
|
|
pkgdesc="PINE64 Pinebook Pro"
|
2022-12-11 00:39:55 +00:00
|
|
|
pkgver=11
|
2023-01-08 18:20:17 +00:00
|
|
|
pkgrel=1
|
2020-04-07 17:56:30 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2021-07-04 00:38:55 +00:00
|
|
|
depends="
|
2022-07-01 12:21:42 +00:00
|
|
|
alsa-ucm-conf>=1.2.7
|
2021-08-31 03:09:58 +00:00
|
|
|
linux-postmarketos-rockchip>=5.14
|
2021-07-04 00:38:55 +00:00
|
|
|
nvme-cli
|
2023-01-08 18:20:17 +00:00
|
|
|
postmarketos-base>=25-r1
|
2021-07-04 00:38:55 +00:00
|
|
|
u-boot-pinebookpro
|
2021-07-02 08:56:54 +00:00
|
|
|
iw
|
2021-07-04 00:38:55 +00:00
|
|
|
"
|
2020-04-07 17:56:30 +00:00
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
2021-07-04 00:38:55 +00:00
|
|
|
install="$pkgname.post-install $pkgname.post-upgrade"
|
2020-04-07 17:56:30 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
2020-06-13 14:16:59 +00:00
|
|
|
10-pinebookpro.hwdb
|
2021-07-21 21:37:38 +00:00
|
|
|
70-edp-backlight.rules
|
2021-07-04 00:38:55 +00:00
|
|
|
nvme-powersave.initd
|
2021-07-02 08:56:54 +00:00
|
|
|
wlan-powersave-off.start
|
2020-04-07 17:56:30 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
|
|
|
|
# Keyboard mapping
|
2020-06-13 14:16:59 +00:00
|
|
|
install -D -m644 "$srcdir"/10-pinebookpro.hwdb \
|
|
|
|
"$pkgdir"/etc/udev/hwdb.d/10-pinebookpro.hwdb
|
2020-04-07 17:56:30 +00:00
|
|
|
|
2021-07-04 00:38:55 +00:00
|
|
|
install -D -m755 "$srcdir"/nvme-powersave.initd \
|
|
|
|
"$pkgdir"/etc/init.d/nvme-powersave
|
|
|
|
|
2021-07-02 08:56:54 +00:00
|
|
|
install -D -m755 "$srcdir"/wlan-powersave-off.start \
|
|
|
|
"$pkgdir"/etc/local.d/wlan-powersave-off.start
|
2021-07-21 21:37:38 +00:00
|
|
|
|
|
|
|
install -D -m644 "$srcdir"/70-edp-backlight.rules \
|
|
|
|
"$pkgdir"/usr/lib/udev/rules.d/70-edp-backlight.rules
|
2020-04-07 17:56:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi, Bluetooth and video-out firmware"
|
|
|
|
depends="firmware-pine64-pinebookpro"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
2021-07-04 00:38:55 +00:00
|
|
|
sha512sums="
|
2022-12-11 00:39:55 +00:00
|
|
|
6d6fcb8bbfa2eb0fda691cc646f484ce383ba80bbfd5affde17852913e1f8fe68290fd764f5d7a1cc2f3e9de288a7f4db9ff90dfed66b3a0daf47a0c836e0926 deviceinfo
|
2020-06-13 14:16:59 +00:00
|
|
|
d3988fe83c54228d743f4a8c190e9530404a436a7fbc0b004bf20d3986b502d864717d8cc9c76812e599266bf84cb08f9a86e1bfd220875799c5a022aea588ec 10-pinebookpro.hwdb
|
2021-07-21 21:37:38 +00:00
|
|
|
6e9e9ef54ee9aa9491be6dc30451fdcd9038b0efeb959509f48626d97a1696ee81711a46510049557b73269ff48acc85fad6496c65451e2e24908241b7655444 70-edp-backlight.rules
|
2021-07-04 00:38:55 +00:00
|
|
|
2abfa31fa56028339efc6d2b6cb838f310990d7110ac4dd996bc4cfcf90f0a8770e70f28f77f7b6929d110e494bc33731302f16b9717729f991c2732be0731d5 nvme-powersave.initd
|
2021-07-02 08:56:54 +00:00
|
|
|
0fd7580e197e409978c219726af627cabe347404ee826e32892b61f3da1775b0fd81f8ed5e9a0f0bfaad87faa434d7a73ddaebf475ed0ad8fdcef6690cd692d3 wlan-powersave-off.start
|
2021-07-04 00:38:55 +00:00
|
|
|
"
|