pmaports/device/testing/device-motorola-peregrine/APKBUILD
André Apitzsch f8da0d6d3b
device-motorola-peregrine: add mainline kernel configuration (MR 4753)
[ci:skip-build]: Already built successfully in CI.
2024-01-26 12:25:38 +01:00

64 lines
1.7 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-motorola-peregrine
pkgdesc="Moto G 4G (2013)"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="mkbootimg postmarketos-base"
makedepends="devicepkg-dev"
subpackages="
$pkgname-kernel-downstream:kernel_downstream
$pkgname-kernel-mainline:kernel_mainline
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-x11
"
source="
deviceinfo
xorg.conf
modules-initfs.mainline
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
kernel_downstream() {
pkgdesc="Downstream kernel"
depends="linux-motorola-peregrine msm-fb-refresher"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_mainline() {
pkgdesc="Close to mainline kernel"
depends="linux-postmarketos-qcom-msm8226"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
x11() {
install_if="$pkgname-kernel-downstream=$pkgver-r$pkgrel xorg-server"
depends="
libinput
xf86-input-libinput
xf86-video-fbdev"
install -Dm644 "$srcdir"/xorg.conf \
"$subpkgdir"/etc/X11/xorg.conf.d/10-peregrine.conf
}
nonfree_firmware() {
pkgdesc="Wifi firmware"
depends="firmware-motorola-titan"
mkdir "$subpkgdir"
}
sha512sums="
7ab781baeaae9dc8a87d52943c16f3875d290db0bd0855cbeccbfd45b08a98eab3f1f4071399cecd9bfd570fbcdb4f954a9c9b173f633e77458506e9e7ec3149 deviceinfo
f86ef35730b89bcc8160c08db7a7fcd0970adf60c0b77af68bac397de49c0d1783e6b8db1762380c9bf874aff2d030c6f44ecb75c803d69e79ede11376409369 xorg.conf
01b3f81f77732b7bc32e01e1c242a30f03b7c02da3aa830e3eb21b6f10458616cc8752d532405c66cd54f488c53962cf1901ebe30019ddcd572ea13445e6d28b modules-initfs.mainline
"