eb21ed5472
[ci:ignore-count]
84 lines
2.3 KiB
Text
84 lines
2.3 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
pkgname=device-lg-hammerhead
|
|
pkgver=3
|
|
pkgrel=1
|
|
pkgdesc="Google Nexus 5"
|
|
url="https://postmarketos.org"
|
|
arch="armv7"
|
|
license="MIT"
|
|
depends="
|
|
linux-postmarketos-qcom-msm8974
|
|
mesa-dri-gallium
|
|
mkbootimg
|
|
postmarketos-base
|
|
postmarketos-update-kernel
|
|
swclock-offset
|
|
"
|
|
makedepends="devicepkg-dev"
|
|
subpackages="$pkgname-weston $pkgname-phosh $pkgname-x11 $pkgname-nonfree-firmware:nonfree_firmware"
|
|
source="
|
|
bt-module-deps.conf
|
|
deviceinfo
|
|
rootston.ini
|
|
weston.ini
|
|
xorg.conf
|
|
"
|
|
options="!check !archcheck"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
}
|
|
|
|
x11() {
|
|
install_if="$pkgname xorg-server"
|
|
depends="
|
|
libinput
|
|
xf86-input-libinput
|
|
xf86-video-fbdev
|
|
msm-fb-refresher"
|
|
install -Dm644 "$srcdir"/xorg.conf \
|
|
"$subpkgdir"/etc/X11/xorg.conf.d/10-hammerhead.conf
|
|
}
|
|
|
|
phosh() {
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
|
install -Dm644 "$srcdir"/rootston.ini \
|
|
"$subpkgdir"/etc/phosh/rootston.ini
|
|
}
|
|
|
|
weston() {
|
|
install_if="$pkgname weston"
|
|
install -Dm644 "$srcdir"/weston.ini \
|
|
"$subpkgdir"/etc/xdg/weston/weston.ini
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="WiFi, GPU, Modem and ADSP firmware"
|
|
depends="
|
|
firmware-qcom-adreno-a330
|
|
firmware-lg-hammerhead
|
|
firmware-lg-hammerhead-adsp
|
|
firmware-lg-hammerhead-modem
|
|
firmware-lg-hammerhead-bluetooth
|
|
linux-firmware-brcm
|
|
linux-firmware-cypress
|
|
linux-firmware-qcom
|
|
msm-modem
|
|
"
|
|
mkdir "$subpkgdir"
|
|
# This config makes sense only if non-free firmware is installed
|
|
install -Dm644 "$srcdir"/bt-module-deps.conf \
|
|
"$subpkgdir"/etc/modprobe.d/bt-module-deps.conf
|
|
}
|
|
|
|
sha512sums="
|
|
6cef5f8ae1785ac16e6fe84bfc861ac50cdfb94db35d764f44a25c960e123cb82f6e56f45362a5340c62a3d5ac225f2689afd4f6964cb88305a0892ba44214f0 bt-module-deps.conf
|
|
aba6a7fc9b91d35e4f7d2daf3c808570a30019dcbd957daa38db3a0b5a274c73923a08789ea5fd71558dda34c37d41d6651a3cc39395f9735ac3f1a0bf00f9db deviceinfo
|
|
8ee9e4a5420aa6b00cef04848a94b7e9d7bfd98252ace23b181b757ee44d27d453a2fcd9dbbbe149f17cd8a596f3749d3425d4040167f9e303e5e66dc8cd9560 rootston.ini
|
|
4c22070223f39c419260a6817e5cc2b7881c095deeba031363a5634842dd175dd67eecace980849f0553de79110ef4e43a66143d71433805cd916c37fe7248e9 weston.ini
|
|
0a9da551fa9d48d8a663f6bc74e8a7d6e2d2a6e009bd163fa46cd302e75656ad7ae57402a0bd70614ec253e0f2445b4c6999df07104f4c657ed630305c7f40d4 xorg.conf
|
|
"
|