2020-01-10 10:32:52 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2017-09-01 22:20:09 +00:00
|
|
|
pkgname=device-lg-lenok
|
|
|
|
pkgdesc="LG G Watch R"
|
2024-03-17 21:37:22 +00:00
|
|
|
pkgver=4
|
|
|
|
pkgrel=0
|
2018-06-30 07:00:48 +00:00
|
|
|
url="https://postmarketos.org"
|
2017-09-01 22:20:09 +00:00
|
|
|
license="MIT"
|
2023-05-02 16:50:57 +00:00
|
|
|
arch="armv7"
|
|
|
|
options="!check !archcheck"
|
2021-05-29 11:51:28 +00:00
|
|
|
depends="
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
"
|
2020-01-10 10:32:52 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2023-05-02 16:50:57 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-asteroid
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
"
|
2021-05-29 11:51:28 +00:00
|
|
|
source="
|
|
|
|
90-android-touch-dev.rules
|
|
|
|
deviceinfo
|
|
|
|
fb_fix.sh
|
|
|
|
initfs-hook.sh
|
|
|
|
machine.conf
|
2023-09-04 18:53:58 +00:00
|
|
|
modules-initfs.mainline
|
2021-05-29 11:51:28 +00:00
|
|
|
"
|
2017-09-01 22:20:09 +00:00
|
|
|
|
2020-01-10 10:32:52 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2017-09-01 22:20:09 +00:00
|
|
|
package() {
|
2020-01-10 10:32:52 +00:00
|
|
|
devicepkg_package $startdir $pkgname
|
2021-05-29 11:51:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
asteroid() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel asteroid-launcher"
|
|
|
|
|
|
|
|
install -Dm644 -t "$subpkgdir"/etc/asteroid \
|
|
|
|
"$srcdir"/machine.conf
|
2017-09-01 22:20:09 +00:00
|
|
|
}
|
|
|
|
|
2023-05-02 16:50:57 +00:00
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="Downstream kernel"
|
|
|
|
depends="linux-lg-lenok"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
|
|
|
|
amove usr/share/mkinitfs/hooks/00-$pkgname.sh
|
|
|
|
install -Dm644 -t "$subpkgdir"/etc/udev/rules.d \
|
|
|
|
"$srcdir"/90-android-touch-dev.rules
|
|
|
|
install -Dm644 -t "$subpkgdir"/etc/profile.d \
|
|
|
|
"$srcdir"/fb_fix.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
|
|
|
pkgdesc="Close to mainline kernel"
|
|
|
|
depends="linux-postmarketos-qcom-msm8226"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Firmware for WiFi, ADSP, etc."
|
2023-09-04 18:53:58 +00:00
|
|
|
depends="firmware-lg-lenok-adsp firmware-lg-lenok-wifi firmware-qcom-adreno-a330"
|
2023-05-02 16:50:57 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-05-12 22:30:19 +00:00
|
|
|
sha512sums="
|
2017-09-01 22:20:09 +00:00
|
|
|
a36ba9017df3b4be233783096c303abafa873dcdf50f6357b82f3c5526fd161a1914dafe143377cb5982955108b987890638b51911d0dd339172554e39a82d9f 90-android-touch-dev.rules
|
2024-03-17 21:37:22 +00:00
|
|
|
eefa3337f1f1f1b6e2e3b22b4321f368736fc3ef4ca38729d400c84d433a5d33b091298e7ac272b9005f5b564f2123448c8b436ed37e1d4be76a3f934818cc92 deviceinfo
|
2022-10-14 11:46:40 +00:00
|
|
|
1fc5a7609d8f79f74f29d55ce492dc6b77bb247da1b79abc1361e5e9072b5283816cef02c4cc283300031d708733c5fdbed94f539ae1c16b1dca96bf4d512234 fb_fix.sh
|
2021-05-29 11:51:28 +00:00
|
|
|
d29105805adcd79d4f73c2f2c4483a2c627dc7b70acb77f43d085742ef930407c9b1423f7020c34f38e8a09f40cadd991b9acae23e936c90d6a4c0900250da22 initfs-hook.sh
|
|
|
|
81cf2c20d2efa0f71f18116efeda11ae4f18fee96ba998dc4d6a36205626dce496cb36711af5c4e3215578b174942e721290cfcff8db6fb1c998b90b7345244d machine.conf
|
2023-09-04 18:53:58 +00:00
|
|
|
36b66e90934e267238384c36b4e41b6b796e9df99892fd18ba416098fd66f48911c34a7f7585b1c472b09047e7a149f4d937a732140f8292f3d043b1e4ba9c87 modules-initfs.mainline
|
2021-05-12 22:30:19 +00:00
|
|
|
"
|