2019-04-08 14:12:45 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-01-10 16:41:50 +00:00
|
|
|
# Contributor: Martijn Braam <martijn@brixit.nl>
|
2019-09-11 08:03:05 +00:00
|
|
|
pkgname="device-pine64-dontbeevil"
|
2019-04-08 14:12:45 +00:00
|
|
|
pkgdesc="PINE64 PinePhone Don't be evil devkit"
|
|
|
|
pkgver=0.1
|
2020-03-07 18:58:32 +00:00
|
|
|
pkgrel=16
|
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="
|
|
|
|
$pkgname-weston
|
|
|
|
$pkgname-x11
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-kernel-shortts:kernel_shortts
|
|
|
|
$pkgname-kernel-longts:kernel_longts
|
|
|
|
"
|
2020-01-19 12:21:03 +00:00
|
|
|
depends="postmarketos-base u-boot-pine64 uboot-tools mesa-git-dri-gallium 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
|
|
|
|
uboot-script.cmd
|
|
|
|
weston.ini
|
|
|
|
xorg.conf
|
|
|
|
"
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
weston() {
|
2020-01-10 16:41:50 +00:00
|
|
|
install_if="$pkgname weston"
|
|
|
|
install -Dm644 "$srcdir"/weston.ini \
|
|
|
|
"$subpkgdir"/etc/xdg/weston/weston.ini
|
2019-04-08 14:12:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi and Bluetooth firmware"
|
|
|
|
depends="linux-firmware-rtlwifi linux-firmware-rtl_bt firmware-rtl8723bt"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2019-06-01 15:18:59 +00:00
|
|
|
kernel_shortts() {
|
|
|
|
pkgdesc="Short touch cable version"
|
|
|
|
depends="linux-postmarketos-allwinner"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_longts() {
|
|
|
|
pkgdesc="Long touch cable version"
|
|
|
|
depends="linux-postmarketos-allwinner"
|
|
|
|
install="$subpkgname.post-install"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2020-03-07 16:10:22 +00:00
|
|
|
sha512sums="036fe47080b6d3199b4044d703cbbf441e25107c3680095d8523e63cd6f5e05013dde7e07962164b44b608120942029084e8e8dcce13505c6561e8c4360e466d deviceinfo
|
2019-09-05 14:44:47 +00:00
|
|
|
eda61d8097896a618593e07bd03518236692b4c580182ce2e34c5e1040125e1004088475f1d484e7a4918d6f1d395a9ab121cfca202a887cdfaf9c0363dbb40b uboot-script.cmd
|
2019-04-08 14:12:45 +00:00
|
|
|
c4c57d1627dd451213e1ef20d89de9266cd4edcc2d33a69aa9a1f13e16d9f9742036b69dc149fd910d7213f7525c41eb79576d4457bc85cc96eba0d986382d27 weston.ini
|
2019-09-05 14:44:47 +00:00
|
|
|
f86ef35730b89bcc8160c08db7a7fcd0970adf60c0b77af68bac397de49c0d1783e6b8db1762380c9bf874aff2d030c6f44ecb75c803d69e79ede11376409369 xorg.conf"
|