2019-04-08 14:12:45 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-pine64-dontbeevil
|
2024-04-02 12:52:52 +00:00
|
|
|
pkgver=1
|
2024-06-18 19:53:59 +00:00
|
|
|
pkgrel=1
|
2021-09-14 08:54:40 +00:00
|
|
|
pkgdesc="PINE64 PinePhone Don't be evil devkit"
|
2019-04-08 14:12:45 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2019-06-01 15:18:59 +00:00
|
|
|
subpackages="
|
2021-09-14 08:54:40 +00:00
|
|
|
$pkgname-kernel-longts:kernel_longts
|
|
|
|
$pkgname-kernel-shortts:kernel_shortts
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-sensorfw
|
2019-06-01 15:18:59 +00:00
|
|
|
$pkgname-x11
|
|
|
|
"
|
2022-10-10 19:33:44 +00:00
|
|
|
depends="postmarketos-base u-boot-sunxi u-boot-tools ofono"
|
2019-04-08 14:12:45 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2019-10-11 12:08:10 +00:00
|
|
|
install="$pkgname.post-install"
|
2019-04-08 14:12:45 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
modules-initfs
|
2021-09-14 08:54:40 +00:00
|
|
|
sensorfw/90-dontbeevil.conf
|
2019-04-08 14:12:45 +00:00
|
|
|
uboot-script.cmd
|
|
|
|
xorg.conf
|
2021-09-14 08:54:40 +00:00
|
|
|
"
|
2019-04-08 14:12:45 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
2020-01-10 16:41:50 +00:00
|
|
|
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n postmarketos -d "$srcdir"/uboot-script.cmd "$srcdir"/boot.scr
|
2019-04-08 14:12:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
install -D -m644 "$srcdir"/boot.scr \
|
|
|
|
"$pkgdir"/boot/boot.scr
|
|
|
|
}
|
|
|
|
|
|
|
|
x11() {
|
2020-01-10 16:41:50 +00:00
|
|
|
install_if="$pkgname xorg-server"
|
|
|
|
depends="
|
|
|
|
libinput
|
|
|
|
xf86-input-libinput
|
|
|
|
xf86-video-fbdev"
|
|
|
|
install -Dm644 "$srcdir"/xorg.conf \
|
|
|
|
"$subpkgdir"/etc/X11/xorg.conf.d/10-framebuffer.conf
|
2019-04-08 14:12:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi and Bluetooth firmware"
|
2020-06-23 11:00:22 +00:00
|
|
|
depends="linux-firmware-rtlwifi linux-firmware-rtl_bt firmware-pine64-rtl8723bt"
|
2019-04-08 14:12:45 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2019-06-01 15:18:59 +00:00
|
|
|
kernel_shortts() {
|
|
|
|
pkgdesc="Short touch cable version"
|
|
|
|
depends="linux-postmarketos-allwinner"
|
2023-04-24 22:32:37 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
2019-06-01 15:18:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
kernel_longts() {
|
|
|
|
pkgdesc="Long touch cable version"
|
|
|
|
depends="linux-postmarketos-allwinner"
|
2023-04-24 22:32:37 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
2019-06-01 15:18:59 +00:00
|
|
|
}
|
|
|
|
|
2021-09-14 08:54:40 +00:00
|
|
|
sensorfw() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel sensorfw"
|
|
|
|
|
|
|
|
install -Dm644 -t "$subpkgdir"/etc/sensorfw/sensord.conf.d \
|
|
|
|
"$srcdir"/90-dontbeevil.conf
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-05-04 23:41:49 +00:00
|
|
|
sha512sums="
|
2023-08-02 17:06:01 +00:00
|
|
|
dc24f907b420481fc63c277bb3ddc1bde07c01b5bdb1cd13648357299e2279e6a42310ffbaec2c3d59cd9005c5451a124ed3a6e0f87d24e967e5465ba0fb6a4a deviceinfo
|
|
|
|
c240c7ff7bd0ec0561eacc1927e678b3955086c951548633e1ee5284283e005f0c7fb4c4472f40529cba552cce076294fdfae97f35a338592b3a6961da4a7a3f modules-initfs
|
2021-09-14 08:54:40 +00:00
|
|
|
967e3a43c7e91ed37fc932a7c580cd168ca11d8ec7f60ff60ece7f286e5144f27faead95162fa7d571a2317ed0da970fd86f5bc9ed0235a25c0be9182d42d64d 90-dontbeevil.conf
|
2024-06-18 19:53:59 +00:00
|
|
|
38a4819c128e739589d39b1b13c834f17ffdbbabfe7babe0b6aeead516b07befb09a344cdec233337e25497d2b18e23792955d33a99561861020149e8e153555 uboot-script.cmd
|
2021-05-04 23:41:49 +00:00
|
|
|
f86ef35730b89bcc8160c08db7a7fcd0970adf60c0b77af68bac397de49c0d1783e6b8db1762380c9bf874aff2d030c6f44ecb75c803d69e79ede11376409369 xorg.conf
|
|
|
|
"
|