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"
|
2023-06-20 02:56:42 +00:00
|
|
|
pkgver=16
|
2023-08-18 23:26:05 +00:00
|
|
|
pkgrel=3
|
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
|
2023-05-19 09:26:06 +00:00
|
|
|
eudev-hwids
|
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
|
2023-08-18 23:26:05 +00:00
|
|
|
soc-rockchip-rk3399
|
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"
|
2023-06-28 06:27:06 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-elogind"
|
|
|
|
install="
|
|
|
|
$pkgname.post-install
|
|
|
|
$pkgname.post-upgrade
|
|
|
|
$pkgname-elogind.post-install
|
|
|
|
$pkgname-elogind.post-upgrade
|
|
|
|
"
|
2020-04-07 17:56:30 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
modules-initfs
|
2021-07-04 00:38:55 +00:00
|
|
|
nvme-powersave.initd
|
2021-07-02 08:56:54 +00:00
|
|
|
wlan-powersave-off.start
|
2023-06-20 02:56:42 +00:00
|
|
|
enable-s2idle.conf
|
2020-04-07 17:56:30 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
|
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
|
2023-06-28 06:27:06 +00:00
|
|
|
}
|
2023-06-20 02:56:42 +00:00
|
|
|
|
2023-06-28 06:27:06 +00:00
|
|
|
elogind() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel elogind"
|
2023-06-20 02:56:42 +00:00
|
|
|
install -D -m644 "$srcdir"/enable-s2idle.conf \
|
2023-06-28 06:27:06 +00:00
|
|
|
"$subpkgdir"/usr/lib/elogind/sleep.conf.d/enable-s2idle.conf
|
2020-04-07 17:56:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi, Bluetooth and video-out firmware"
|
2023-05-24 11:01:39 +00:00
|
|
|
depends="linux-firmware-brcm linux-firmware-rockchip"
|
2020-04-07 17:56:30 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
2021-07-04 00:38:55 +00:00
|
|
|
sha512sums="
|
2023-08-02 17:06:01 +00:00
|
|
|
7ebb7e00ae1566fd4c176839c4cd6501f237b577e8db1180aa9934d70101807f8f9b513e529da3f0e96b73d682708b1f51a94430bc90d655f0d7ac059b076a04 deviceinfo
|
|
|
|
6e3d97855a1f898db46b87ae1eb190d23d841fcb72332fcac4d11cd27c8f7d50eb8fd73007ed0447f106d19ff2e0fc1f34da1baf890e1465135dd692d65df2ba modules-initfs
|
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
|
2023-06-20 02:56:42 +00:00
|
|
|
811af9c79151f41e25916c0f0bb130e82ebfb7d4d5b63413a3fed6700f829c1c017a12e85da230ed2f47a6bd49ed2bf5da19bbc4576ce485a48a2d3808a3a691 enable-s2idle.conf
|
2021-07-04 00:38:55 +00:00
|
|
|
"
|