2018-02-26 20:26:47 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-01-10 10:32:53 +00:00
|
|
|
# Contributor: pikpok <pikpok@riseup.net>
|
2018-02-26 20:26:47 +00:00
|
|
|
pkgname="device-motorola-peregrine"
|
|
|
|
pkgdesc="Moto G 4G (2013)"
|
|
|
|
pkgver=0.1
|
2020-03-20 20:09:13 +00:00
|
|
|
pkgrel=10
|
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"
|
2018-02-26 22:11:44 +00:00
|
|
|
depends="postmarketos-base linux-motorola-peregrine mkbootimg mesa-dri-swrast msm-fb-refresher"
|
2018-02-26 20:26:47 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2018-03-10 22:29:56 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware device-motorola-peregrine-x11"
|
|
|
|
source="deviceinfo xorg.conf"
|
2018-02-26 20:26:47 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2018-03-10 22:29:56 +00:00
|
|
|
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-peregrine.conf
|
|
|
|
}
|
|
|
|
|
2018-02-26 22:11:44 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi firmware"
|
|
|
|
depends="firmware-motorola-titan"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2020-03-20 20:09:13 +00:00
|
|
|
sha512sums="ff729614d8ef1175e55bcf5c5f177bea402af80e7403897a672fa0ddb5650f9b7ce50a7e62560241255d9d7d0a41240e77670cb1c1fd0551fbad601a535020b9 deviceinfo
|
2018-03-10 22:29:56 +00:00
|
|
|
f86ef35730b89bcc8160c08db7a7fcd0970adf60c0b77af68bac397de49c0d1783e6b8db1762380c9bf874aff2d030c6f44ecb75c803d69e79ede11376409369 xorg.conf"
|