2018-02-26 20:26:47 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-motorola-peregrine
|
2018-02-26 20:26:47 +00:00
|
|
|
pkgdesc="Moto G 4G (2013)"
|
2024-01-22 22:06:00 +00:00
|
|
|
pkgver=1
|
|
|
|
pkgrel=0
|
2018-02-26 20:26:47 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
2020-03-20 20:09:13 +00:00
|
|
|
arch="armv7"
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2024-01-22 22:06:00 +00:00
|
|
|
depends="mkbootimg postmarketos-base"
|
2018-02-26 20:26:47 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2024-01-22 22:06:00 +00:00
|
|
|
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
|
|
|
|
"
|
2018-02-26 20:26:47 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2024-01-22 22:06:00 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2018-03-10 22:29:56 +00:00
|
|
|
x11() {
|
2024-01-22 22:06:00 +00:00
|
|
|
install_if="$pkgname-kernel-downstream=$pkgver-r$pkgrel xorg-server"
|
2018-03-10 22:29:56 +00:00
|
|
|
depends="
|
|
|
|
libinput
|
|
|
|
xf86-input-libinput
|
|
|
|
xf86-video-fbdev"
|
|
|
|
install -Dm644 "$srcdir"/xorg.conf \
|
|
|
|
"$subpkgdir"/etc/X11/xorg.conf.d/10-peregrine.conf
|
|
|
|
}
|
|
|
|
|
2018-02-26 22:11:44 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi firmware"
|
|
|
|
depends="firmware-motorola-titan"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-09-18 17:06:03 +00:00
|
|
|
sha512sums="
|
2024-01-22 22:06:00 +00:00
|
|
|
7ab781baeaae9dc8a87d52943c16f3875d290db0bd0855cbeccbfd45b08a98eab3f1f4071399cecd9bfd570fbcdb4f954a9c9b173f633e77458506e9e7ec3149 deviceinfo
|
2021-09-18 17:06:03 +00:00
|
|
|
f86ef35730b89bcc8160c08db7a7fcd0970adf60c0b77af68bac397de49c0d1783e6b8db1762380c9bf874aff2d030c6f44ecb75c803d69e79ede11376409369 xorg.conf
|
2024-01-22 22:06:00 +00:00
|
|
|
01b3f81f77732b7bc32e01e1c242a30f03b7c02da3aa830e3eb21b6f10458616cc8752d532405c66cd54f488c53962cf1901ebe30019ddcd572ea13445e6d28b modules-initfs.mainline
|
2021-09-18 17:06:03 +00:00
|
|
|
"
|