2020-01-10 16:23:31 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2017-05-30 15:40:44 +00:00
|
|
|
pkgname=device-lg-hammerhead
|
2024-04-23 00:16:25 +00:00
|
|
|
pkgver=7
|
|
|
|
pkgrel=0
|
2017-05-30 15:40:44 +00:00
|
|
|
pkgdesc="Google Nexus 5"
|
2018-06-30 07:00:48 +00:00
|
|
|
url="https://postmarketos.org"
|
2019-03-03 20:39:14 +00:00
|
|
|
arch="armv7"
|
2017-06-03 22:31:48 +00:00
|
|
|
license="MIT"
|
2021-09-14 08:54:59 +00:00
|
|
|
depends="
|
|
|
|
linux-postmarketos-qcom-msm8974
|
2023-05-13 09:26:00 +00:00
|
|
|
lk2nd-msm8974
|
2021-09-14 08:54:59 +00:00
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
swclock-offset
|
|
|
|
"
|
2020-01-10 16:23:31 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2024-04-01 12:27:27 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-phosh
|
|
|
|
$pkgname-unl0kr
|
|
|
|
$pkgname-x11
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware"
|
2017-06-28 22:16:22 +00:00
|
|
|
source="
|
2024-04-01 12:27:27 +00:00
|
|
|
10-unl0kr.conf
|
2024-04-23 00:16:25 +00:00
|
|
|
20-gsk-gpu-workaround.sh
|
2021-03-17 00:51:03 +00:00
|
|
|
bt-module-deps.conf
|
2017-06-28 22:16:22 +00:00
|
|
|
deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
modules-initfs
|
2022-04-03 09:04:48 +00:00
|
|
|
phoc.ini
|
2017-12-05 20:00:59 +00:00
|
|
|
xorg.conf
|
2017-06-28 22:16:22 +00:00
|
|
|
"
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2017-05-30 15:40:44 +00:00
|
|
|
|
2020-01-10 16:23:31 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2017-05-30 15:40:44 +00:00
|
|
|
package() {
|
2020-01-10 16:23:31 +00:00
|
|
|
devicepkg_package $startdir $pkgname
|
2024-04-23 00:16:25 +00:00
|
|
|
install -Dm755 "$srcdir"/20-gsk-gpu-workaround.sh \
|
|
|
|
"$pkgdir"/etc/profile.d/20-gsk-gpu-workaround.sh
|
2017-05-30 15:40:44 +00:00
|
|
|
}
|
|
|
|
|
2024-04-01 12:27:27 +00:00
|
|
|
unl0kr() {
|
|
|
|
install_if="$pkgname unl0kr"
|
|
|
|
depends=""
|
|
|
|
install -Dm644 "$srcdir"/10-unl0kr.conf \
|
|
|
|
-t "$subpkgdir"/etc/unl0kr.conf.d
|
|
|
|
}
|
|
|
|
|
2017-12-05 20:00:59 +00:00
|
|
|
x11() {
|
|
|
|
install_if="$pkgname xorg-server"
|
|
|
|
depends="
|
|
|
|
libinput
|
|
|
|
xf86-input-libinput
|
2019-11-17 02:15:38 +00:00
|
|
|
xf86-video-fbdev
|
|
|
|
msm-fb-refresher"
|
2017-12-05 20:00:59 +00:00
|
|
|
install -Dm644 "$srcdir"/xorg.conf \
|
|
|
|
"$subpkgdir"/etc/X11/xorg.conf.d/10-hammerhead.conf
|
|
|
|
}
|
|
|
|
|
2019-10-24 14:46:05 +00:00
|
|
|
phosh() {
|
2020-01-10 16:23:31 +00:00
|
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
2022-04-03 09:04:48 +00:00
|
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
2019-10-24 14:46:05 +00:00
|
|
|
}
|
|
|
|
|
2018-02-26 22:11:44 +00:00
|
|
|
nonfree_firmware() {
|
2020-03-08 19:26:46 +00:00
|
|
|
pkgdesc="WiFi, GPU, Modem and ADSP firmware"
|
2021-09-14 08:54:59 +00:00
|
|
|
depends="
|
2021-10-23 08:08:54 +00:00
|
|
|
firmware-qcom-adreno-a330
|
2021-09-14 08:54:59 +00:00
|
|
|
firmware-lg-hammerhead
|
|
|
|
firmware-lg-hammerhead-adsp
|
|
|
|
firmware-lg-hammerhead-modem
|
|
|
|
firmware-lg-hammerhead-bluetooth
|
|
|
|
linux-firmware-brcm
|
|
|
|
linux-firmware-cypress
|
|
|
|
msm-modem
|
|
|
|
"
|
2018-02-26 22:11:44 +00:00
|
|
|
mkdir "$subpkgdir"
|
2021-03-17 00:51:03 +00:00
|
|
|
# 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
|
2018-02-26 22:11:44 +00:00
|
|
|
}
|
|
|
|
|
2021-10-23 17:33:12 +00:00
|
|
|
sha512sums="
|
2024-04-01 12:27:27 +00:00
|
|
|
f700af3145b79d1ef9edfb22982899b25cabfb212f9620dcbd3a2e6f44b5ad591e0a66056c6fcd66c3fde89a2b5f551e8a8fe2e65cf0e2a48adec57c027d7825 10-unl0kr.conf
|
2024-04-23 00:16:25 +00:00
|
|
|
b0ff3cf868380481638cce975688eb622e50d4a45a877892e087789ad7f292f8723de1fbf3da2af445adad31df99d7976c31dcf4f685a046b644b38aa109067d 20-gsk-gpu-workaround.sh
|
2021-10-23 17:33:12 +00:00
|
|
|
6cef5f8ae1785ac16e6fe84bfc861ac50cdfb94db35d764f44a25c960e123cb82f6e56f45362a5340c62a3d5ac225f2689afd4f6964cb88305a0892ba44214f0 bt-module-deps.conf
|
2023-08-02 17:06:01 +00:00
|
|
|
e08c892a358d99296208f98ba07813eb82c192269cdcaa727d988a3fa8ffb01f3489d9ae5b4074d96578706c7882f52ea8abc6fc4aabdf384bcb7fdc5670b519 deviceinfo
|
|
|
|
fd639faebbee2c0c2c227710678376e0d039b7d96a62103f7ba7e6304d7060023f09064918e93a125465d20d125c0334225680521a7aeae5a43d77d7360c180c modules-initfs
|
2022-05-05 14:50:55 +00:00
|
|
|
ee1deae3c21de4dfcf9842abc7ba984229fd37bff058cb630a9bd44e787484ddfa3e5d4d85dbd30850d3ac34822aa91c82c3a5d7c107a990f202fb7da2f4db98 phoc.ini
|
2021-10-23 17:33:12 +00:00
|
|
|
0a9da551fa9d48d8a663f6bc74e8a7d6e2d2a6e009bd163fa46cd302e75656ad7ae57402a0bd70614ec253e0f2445b4c6999df07104f4c657ed630305c7f40d4 xorg.conf
|
|
|
|
"
|