# Reference: pkgname=device-pine64-dontbeevil pkgdesc="PINE64 PinePhone Don't be evil devkit" pkgver=0.2 pkgrel=0 url="https://postmarketos.org" license="MIT" arch="aarch64" options="!check !archcheck" subpackages=" $pkgname-weston $pkgname-x11 $pkgname-nonfree-firmware:nonfree_firmware $pkgname-kernel-shortts:kernel_shortts $pkgname-kernel-longts:kernel_longts " depends="postmarketos-base u-boot-sunxi u-boot-tools mesa-dri-gallium ofono" makedepends="devicepkg-dev" install="$pkgname.post-install" source=" deviceinfo uboot-script.cmd weston.ini xorg.conf " build() { devicepkg_build $startdir $pkgname mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n postmarketos -d "$srcdir"/uboot-script.cmd "$srcdir"/boot.scr } package() { devicepkg_package $startdir $pkgname install -D -m644 "$srcdir"/boot.scr \ "$pkgdir"/boot/boot.scr } x11() { 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 } weston() { install_if="$pkgname weston" install -Dm644 "$srcdir"/weston.ini \ "$subpkgdir"/etc/xdg/weston/weston.ini } nonfree_firmware() { pkgdesc="Wifi and Bluetooth firmware" depends="linux-firmware-rtlwifi linux-firmware-rtl_bt firmware-pine64-rtl8723bt" mkdir "$subpkgdir" } 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" } sha512sums=" 85dde682b5fc2975595d9a31c2054c8c375cc77fa4f6d7f83222994c9deb93d53436c1e8df8efe609e2d75d16e05077d30f549efce3c354e47a5605d3c59bc48 deviceinfo 7d46b92a9a831ead6c1919b95ec4930242b35c2d8e2ce05fcb70dcd8c77c61d840d78738c5d82f6f4d56a1e676237243a795a728e76f38c27a74ed6dcb44279a uboot-script.cmd c4c57d1627dd451213e1ef20d89de9266cd4edcc2d33a69aa9a1f13e16d9f9742036b69dc149fd910d7213f7525c41eb79576d4457bc85cc96eba0d986382d27 weston.ini f86ef35730b89bcc8160c08db7a7fcd0970adf60c0b77af68bac397de49c0d1783e6b8db1762380c9bf874aff2d030c6f44ecb75c803d69e79ede11376409369 xorg.conf "