dbf4d13907
Alpine's abuild is soon going to complain if an APKBUILD has more than
one "Maintainer:" listed. Work around it by renaming the additional
maintainers to "Co-Maintainer:". While at it, move the devicepkg reference
link to the top in device-xiaomi-santoni for consistency.
In postmarketOS, we require at least two maintainers for devices in
main, therefore it does not make sense to drop additional maintainers
from the file.
In Alpine, this change was made because pkgs.alpinelinux.org apparently
can't handle more than one maintainer. I looked into it, and it would
require a database change to add it there, so it does not seem worth the
effort. I also thought about extending abuild to add an environment
variable to skip the check, but then the package would not build with
plain abuild without using the env var.
Related: dd4cd9d606
[ci:skip-build] [ci:skip-vercheck]
101 lines
4.7 KiB
Text
101 lines
4.7 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
# Maintainer: Martijn Braam <martijn@brixit.nl>
|
|
# Co-Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
# Co-Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=device-pine64-pinephone
|
|
pkgver=0.5
|
|
pkgrel=5
|
|
pkgdesc="PINE64 PinePhone"
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="aarch64"
|
|
options="!check !archcheck"
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-phosh"
|
|
depends="postmarketos-base u-boot-pinephone uboot-tools mesa-git-dri-gallium linux-postmarketos-allwinner gpsd atinout alsa-ucm-conf"
|
|
makedepends="devicepkg-dev"
|
|
install="$pkgname.post-install"
|
|
source="deviceinfo
|
|
uboot-script.cmd
|
|
sysrq.conf
|
|
hwtest.ini
|
|
10-pinephone-proximity.rules
|
|
gpsd_pinephone.initd
|
|
gpsd_device-hook.sh
|
|
90-modem-eg25.rules
|
|
ucm/sun50i-a64-audio.conf
|
|
ucm/HiFi.conf
|
|
ucm/VoiceCall.conf
|
|
eg25.initd
|
|
setup-modem.sh
|
|
"
|
|
|
|
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 -Dm644 "$srcdir"/boot.scr \
|
|
"$pkgdir"/boot/boot.scr
|
|
|
|
# Make /boot/allwinner/sun50i-a64-pine64-pinephone*.dtb resolve to /boot/sun50i-a64-pine64-pinephone*.dtb
|
|
# this is because the device tree names in u-boot include the vendor and the one in postmarketOS doesn't
|
|
ln -s .. "$pkgdir"/boot/allwinner
|
|
|
|
install -Dm644 "$srcdir"/hwtest.ini \
|
|
"$pkgdir"/usr/share/hwtest.ini
|
|
|
|
# GPS
|
|
install -Dm755 "$srcdir"/gpsd_pinephone.initd \
|
|
"$pkgdir"/etc/init.d/gpsd_pinephone
|
|
install -Dm755 "$srcdir"/gpsd_device-hook.sh \
|
|
"$pkgdir"/etc/gpsd/device-hook
|
|
install -D -m644 "$srcdir"/10-pinephone-proximity.rules \
|
|
"$pkgdir"/usr/lib/udev/rules.d/10-pinephone-proximity.rules
|
|
|
|
# Fix "sysrq: HELP..." messages in dmesg while playing audio
|
|
# (Headphone output interferes with the serial console on the headphone jack)
|
|
install -Dm644 "$srcdir"/sysrq.conf \
|
|
"$pkgdir"/etc/sysctl.d/sysrq.conf
|
|
|
|
# Alsa usecase manager config
|
|
install -Dm644 "$srcdir"/sun50i-a64-audio.conf \
|
|
"$pkgdir"/usr/share/alsa/ucm2/sun50i-a64-audi/sun50i-a64-audio.conf
|
|
install -Dm644 "$srcdir"/HiFi.conf \
|
|
"$pkgdir"/usr/share/alsa/ucm2/sun50i-a64-audi/HiFi.conf
|
|
install -Dm644 "$srcdir"/VoiceCall.conf \
|
|
"$pkgdir"/usr/share/alsa/ucm2/sun50i-a64-audi/VoiceCall.conf
|
|
|
|
# Modem
|
|
install -Dm755 "$srcdir"/eg25.initd "$pkgdir"/etc/init.d/eg25
|
|
install -Dm755 "$srcdir"/setup-modem.sh \
|
|
"$pkgdir"/usr/bin/pinephone_setup-modem
|
|
install -Dm644 "$srcdir"/90-modem-eg25.rules -t "$pkgdir"/usr/lib/udev/rules.d/
|
|
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="Wifi and Bluetooth firmware"
|
|
depends="linux-firmware-rtlwifi linux-firmware-rtl_bt firmware-pine64-rtl8723bt"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
phosh() {
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
|
depends="wys-pinephone"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
sha512sums="d07b9e6770af73bf477f6a04206ff4739a60e08ac3fa458c6549d2245b0be0627f425d663025565d8571920b2f51f796c36090db07a5258065d84d221e87db98 deviceinfo
|
|
462cf12a3bb29d9a67759f568aea702d0201c61508a352c86ecf23b91d43a0ccc2adf510ee3110f0d748d98d11a54bce3084f2380ebe1714556477b47ed6f473 uboot-script.cmd
|
|
f4b5509fd6a8b23f3667f5e7262b3a19c607a37cb9eaf7d0e93eb826d45c26ec12df4810879bacb8e4042bb83cc80b2b436224c8d47b6d67361369a724bbf7ee sysrq.conf
|
|
3dd6d612c381cb0002049d1974d8fb5aa5a53a1eb4d6bcbf62eb2ad52cfdc45f0f6ad24a699716d3513b0371aa1316f25dc72afc10d7176cc3b99d0965c3f030 hwtest.ini
|
|
b53cc6f2531854cc9c1e4c334185a20551d64c8675ee8a8eaa03b99d80808fad421a0f6e99e5be212a974d88c85f461a71ba59ac59c29f298c82f211e3be1ef4 10-pinephone-proximity.rules
|
|
1017fc3f325227da58c77abdc59e9735288d91a7ccc63ec784fe0241c523786b617a11ce8045dab2a74ca12a7dd70aaa334af91836418db1e96a3266fecaa4fd gpsd_pinephone.initd
|
|
ccbc83b84b5028bc2c8e526759004ce71b50b2675ecffee98f5676c70a3332197a231ff9d2fd46444dd3c0a637ec08ce6125b18240fe6bfc13f624a15192e648 gpsd_device-hook.sh
|
|
7dc2b7c20b4a2b15f597a6417bd01797643dad84a3683b0dee648e030fb6326e9d020307643fdcdf1bb43fc44af9975697e417003bd359610bae2d8ce614fc00 90-modem-eg25.rules
|
|
e852b48a687f9b2a0eca444aa3d00a1818aead9f5e5d28e070b51c9d6f8ec648e66f1d88e2bfa94d74533f9ffb9aacc1703da2a06693f85fa04ff97fd7528012 sun50i-a64-audio.conf
|
|
03e2ed3a4212c0ed336586de38b4882c1bb640e04d34dc63ec218c80ff7046c19aaf82c8cdb48db4d3d42f6124addc16b689fd686a90a0f3174c586d1f50e6f2 HiFi.conf
|
|
d44307c4cbd1fcd4846d30bc1e72800ebd4cbc43fe75e896a501dff06f1b3df21385a009ba5f81ed3f19a5e039bd082da3a88efdf3c034089c8fff3bc16e0a7a VoiceCall.conf
|
|
5a1a9c774253e8211cc54f4b3961c4bdc35427726d037b0ecad099915e856590e8267a4a47943ab753772d57261eef89924b407b305b1099a9c4ecd7b5f00b35 eg25.initd
|
|
3a1af3979232a31995f5c103e092e075987d6e62509f4de59dbb64d6559d74e73c62161707108e27137faab49ae16612e5ada350c5633428d30df37e1b7b7f10 setup-modem.sh"
|