2019-07-23 22:37:31 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2021-06-27 14:07:29 +00:00
|
|
|
# Maintainer: Martijn Braam <martijn@brixit.nl>
|
|
|
|
# Co-Maintainer: Dylan Van Assche <me@dylanvanassche.be>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-pine64-pinetab
|
2019-09-11 08:08:30 +00:00
|
|
|
pkgdesc="PINE64 PineTab"
|
2022-05-05 14:50:55 +00:00
|
|
|
pkgver=0.13
|
|
|
|
pkgrel=0
|
2019-07-23 22:37:31 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2020-11-09 11:09:18 +00:00
|
|
|
depends="
|
2021-12-12 15:53:40 +00:00
|
|
|
alsa-ucm-conf>=1.2.6.2
|
2020-11-09 11:09:18 +00:00
|
|
|
mesa-egl
|
|
|
|
mesa-dri-gallium
|
|
|
|
postmarketos-base
|
2021-05-27 12:07:35 +00:00
|
|
|
u-boot-pinephone>=2021.01_git20201228-r2
|
2021-04-27 14:06:44 +00:00
|
|
|
u-boot-tools
|
2020-11-09 11:09:18 +00:00
|
|
|
"
|
2019-07-23 22:37:31 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2020-01-10 16:42:50 +00:00
|
|
|
subpackages="
|
2020-10-09 22:11:07 +00:00
|
|
|
$pkgname-kernel-allwinner:kernel_allwinner
|
|
|
|
$pkgname-kernel-allwinner-dev:kernel_allwinner_dev
|
2020-01-10 16:42:50 +00:00
|
|
|
$pkgname-sway
|
|
|
|
$pkgname-weston
|
|
|
|
$pkgname-phosh
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
2021-02-05 14:09:36 +00:00
|
|
|
$pkgname-plasma-mobile:plasma_mobile
|
2021-05-24 16:17:59 +00:00
|
|
|
$pkgname-upower
|
2021-02-05 14:09:36 +00:00
|
|
|
"
|
2019-08-08 13:47:54 +00:00
|
|
|
install="$pkgname.post-install"
|
2019-07-23 22:37:31 +00:00
|
|
|
source="
|
2021-02-05 14:09:36 +00:00
|
|
|
99-pinetab-keyboard.hwdb
|
2019-07-23 22:37:31 +00:00
|
|
|
deviceinfo
|
2021-04-25 09:50:00 +00:00
|
|
|
gsk-renderer-gl.sh
|
2021-02-05 14:09:36 +00:00
|
|
|
kirigami-lowpower.sh
|
2022-04-03 09:04:48 +00:00
|
|
|
phoc.ini
|
2019-07-23 22:37:31 +00:00
|
|
|
sway.conf
|
2021-02-05 14:09:36 +00:00
|
|
|
uboot-script.cmd
|
|
|
|
ucm/HiFi.conf
|
|
|
|
ucm/PineTab.conf
|
2021-05-19 17:22:13 +00:00
|
|
|
pulse-pinetab.conf
|
2019-08-21 09:05:35 +00:00
|
|
|
weston.ini
|
2021-05-24 16:17:59 +00:00
|
|
|
UPower.conf
|
2021-02-05 14:09:36 +00:00
|
|
|
"
|
2019-07-23 22:37:31 +00:00
|
|
|
|
2020-10-09 22:11:07 +00:00
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
for version in pinetab-dev pinetab; do
|
|
|
|
sed "1s;^;\nsetenv pinetabfdt sun50i-a64-$version.dtb\;\n;" \
|
|
|
|
"$srcdir"/uboot-script.cmd > "$srcdir/uboot-script-$version.cmd"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2019-07-23 22:37:31 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
2020-10-09 22:11:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
kernel_allwinner() {
|
|
|
|
pkgdesc="Allwinner kernel with support for Pinetab LCD panel (from Early Adopter)"
|
2021-09-03 16:44:53 +00:00
|
|
|
depends="linux-postmarketos-allwinner>=5.14"
|
2020-10-09 22:11:07 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
|
2019-07-23 22:37:31 +00:00
|
|
|
mkimage \
|
|
|
|
-A arm \
|
|
|
|
-O linux \
|
|
|
|
-T script \
|
|
|
|
-C none \
|
|
|
|
-a 0 \
|
|
|
|
-e 0 \
|
|
|
|
-n postmarketos \
|
2020-10-09 22:11:07 +00:00
|
|
|
-d "$srcdir"/uboot-script-pinetab.cmd \
|
2019-07-23 22:37:31 +00:00
|
|
|
"$srcdir"/boot.scr
|
2020-10-09 22:11:07 +00:00
|
|
|
|
|
|
|
# U-Boot
|
|
|
|
install -Dm644 "$srcdir"/boot.scr \
|
|
|
|
"$subpkgdir"/boot/boot.scr
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_allwinner_dev() {
|
|
|
|
pkgdesc="Allwinner kernel with support for old Pinetab LCD panel (pre Early Adopter)"
|
|
|
|
depends="linux-postmarketos-allwinner"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
|
|
|
|
mkimage \
|
|
|
|
-A arm \
|
|
|
|
-O linux \
|
|
|
|
-T script \
|
|
|
|
-C none \
|
|
|
|
-a 0 \
|
|
|
|
-e 0 \
|
|
|
|
-n postmarketos \
|
|
|
|
-d "$srcdir"/uboot-script-pinetab-dev.cmd \
|
|
|
|
"$srcdir"/boot_dev.scr
|
|
|
|
|
|
|
|
# U-Boot
|
|
|
|
install -Dm644 "$srcdir"/boot_dev.scr \
|
|
|
|
"$subpkgdir"/boot/boot.scr
|
2019-07-23 22:37:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sway() {
|
2020-01-10 16:42:50 +00:00
|
|
|
install_if="$pkgname postmarketos-ui-sway"
|
|
|
|
install -D -m644 "$srcdir"/sway.conf \
|
|
|
|
"$subpkgdir"/etc/sway/config.d/pinetab
|
2019-07-23 22:37:31 +00:00
|
|
|
}
|
|
|
|
|
2019-08-21 09:05:35 +00:00
|
|
|
weston() {
|
2020-01-10 16:42:50 +00:00
|
|
|
install_if="$pkgname postmarketos-ui-weston"
|
|
|
|
install -Dm644 "$srcdir"/weston.ini \
|
|
|
|
"$subpkgdir"/etc/xdg/weston/weston.ini
|
2019-08-21 09:05:35 +00:00
|
|
|
}
|
|
|
|
|
2019-09-30 17:19:28 +00:00
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
2022-04-03 09:04:48 +00:00
|
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
2019-09-30 17:19:28 +00:00
|
|
|
}
|
|
|
|
|
2019-07-23 22:37:31 +00:00
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2019-08-08 13:47:54 +00:00
|
|
|
|
2020-04-26 15:22:23 +00:00
|
|
|
# Alsa usecase manager config
|
2021-12-12 15:53:40 +00:00
|
|
|
install -Dm644 -t "$pkgdir"/usr/share/alsa/ucm2/conf.d/simple-card \
|
|
|
|
"$srcdir"/PineTab.conf \
|
|
|
|
"$srcdir"/HiFi.conf
|
2020-04-26 15:22:23 +00:00
|
|
|
|
2021-05-19 17:22:13 +00:00
|
|
|
# Pulseaudio config
|
|
|
|
install -Dm644 "$srcdir"/pulse-pinetab.conf \
|
|
|
|
"$pkgdir"/etc/pulse/daemon.conf.d/89-pinetab.conf
|
|
|
|
|
2019-08-08 13:47:54 +00:00
|
|
|
# Fix for the meta key on v1 keyboard dock, probably not needed on newer revisions
|
|
|
|
install -Dm644 "$srcdir"/99-pinetab-keyboard.hwdb \
|
|
|
|
"$pkgdir"/etc/udev/hwdb.d/99-pinetab-keyboard.hwdb
|
2021-04-25 09:50:00 +00:00
|
|
|
|
|
|
|
# Prevent artifacts in GTK4 apps (pmaports#1069)
|
|
|
|
install -Dm755 "$srcdir"/gsk-renderer-gl.sh -t \
|
|
|
|
"$pkgdir"/etc/profile.d/
|
2019-07-23 22:37:31 +00:00
|
|
|
}
|
|
|
|
|
2019-08-11 16:17:08 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Bluetooth Firmware"
|
2020-06-23 11:00:22 +00:00
|
|
|
depends="firmware-pine64-rtl8723bt"
|
2019-08-11 16:17:08 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
2019-07-23 22:37:31 +00:00
|
|
|
|
2021-02-05 14:09:36 +00:00
|
|
|
plasma_mobile() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel kirigami2"
|
|
|
|
install -Dm644 "$srcdir"/kirigami-lowpower.sh "$subpkgdir"/etc/profile.d/kirigami-lowpower.sh
|
|
|
|
}
|
|
|
|
|
2021-05-24 16:17:59 +00:00
|
|
|
upower() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel upower"
|
2021-05-30 14:38:37 +00:00
|
|
|
replaces="upower"
|
2021-05-24 16:17:59 +00:00
|
|
|
|
|
|
|
# Shutdown when PMIC reports critical battery level
|
2021-05-30 14:38:37 +00:00
|
|
|
install -Dm644 "$srcdir"/UPower.conf \
|
2021-05-24 16:17:59 +00:00
|
|
|
"$subpkgdir"/etc/UPower/UPower.conf
|
|
|
|
}
|
|
|
|
|
2021-05-13 17:20:52 +00:00
|
|
|
sha512sums="
|
|
|
|
8d1ef04911f1cfa7eda8185f4f4d807af23105a7c8f23d8c18f02afeccd8ab124de70c2e2760c154a3128fe3793447039fb0abf37aa496f597d27051e275033e 99-pinetab-keyboard.hwdb
|
2021-09-18 17:06:03 +00:00
|
|
|
6274b664ad42456ff51ec4ec2dea9749bff59e0eee0c2d1f7e8950934ee92e410e554df246f81bd01813ddfae5e6a9001a8fcad05815beab536d1547251d5aeb deviceinfo
|
2021-04-25 09:50:00 +00:00
|
|
|
9244687bfea20c78120f7c48388d141eff3e23a421e48504eac1479ec7f51197d9ca72468c9cc33c6e3d3fa32ee3514711545816e607d49870226e4a41a60a85 gsk-renderer-gl.sh
|
2021-02-05 14:09:36 +00:00
|
|
|
6bc22b369b2d9058b702ac7a7862abaefaf8179b43491868bdb008d181b59104f1ded89db1da51a810e1ccdc803a579b924a438674283a65afc3a9c4d2894caf kirigami-lowpower.sh
|
2022-05-05 14:50:55 +00:00
|
|
|
5c683f2cf27b2f982c8581251688834634957143334011861400d3eed27b6590f37055fe61c8af632552435dba581fa990a44c1e5689a3c8fe642fd095b740ce phoc.ini
|
2019-08-08 13:47:54 +00:00
|
|
|
9e71c61bfa72b60e749c4dc04f17eb59d25de822765e81e65c937d6be5236d3951a652b69a1ab973abe6add9f34705be5dbaa98bbfa25daf7504dd50b28524c2 sway.conf
|
2021-08-17 07:03:20 +00:00
|
|
|
181438ed8723c29bf201a5d4ad1ae588afcd03763deadb267b23d96ad40c8956e08b2e3b800f4ee5d77774625d0b0e6a70c4068f98fbfad50d31e71b30a24164 uboot-script.cmd
|
2021-05-20 18:34:55 +00:00
|
|
|
a2fd8037c9a1af000f31c7005436d791525317f818c553d1e2f472b4df76c71d769ecbf67b369a478bea720a6215eaa9fb6a26ba218ac9410513e2345ebe7b4c HiFi.conf
|
2021-09-03 16:44:53 +00:00
|
|
|
7a19bfc3bf08c11bf34943f822fcae9de57dbdae4759281386e77f711c5d9f7a58fd4970166c4db751e9c29585291fe52f58bc622d80b835d6c645eb339a7263 PineTab.conf
|
2021-05-19 17:22:13 +00:00
|
|
|
9c472065b19141dd4c7555869b955de2e679b36e597f9fa3bdac18d0e9460986b0e2fffe1e04751301305f1b6474c1375803afb7d6212eeae91b4905d0bf8ff8 pulse-pinetab.conf
|
2021-05-13 17:20:52 +00:00
|
|
|
6374ef977eab14b71fa88057ebd52ca03035e387e5f41504598a990f24b2e92bccd2db476c545dc541000e08fccdecb6f1cd63e25b5835df706269e0384dacc7 weston.ini
|
2021-05-24 16:17:59 +00:00
|
|
|
ed0e03f7e1c0348c06be9a7922414469245604ce813bbf0c8910ef211cb993bbb0d0d4615c9c961d50712415f85d6b73e0cf02780ac784666aac56e4889341e4 UPower.conf
|
2021-05-13 17:20:52 +00:00
|
|
|
"
|