47a42c8f16
needed to replace osk-sdl with unl0kr on systems where osk-sdl is in the apk world file
98 lines
3.7 KiB
Text
98 lines
3.7 KiB
Text
# Maintainer: Johannes Marbach <n0-0ne+gitlab@mailbox.org>
|
|
pkgname=unl0kr
|
|
pkgver=2.0.3
|
|
pkgrel=1
|
|
_commit_lvgl=2f294aa76c8fece98a4fa72304bc6f267ed2a228
|
|
_commit_lv_drivers=71dbdf07c4ab808bc6f04251d58f78bb57869bf9
|
|
_commit_squeek2lvgl=ffe1f5bf18a99756f1c0985e8ccc3d24a1f4a528
|
|
pkgdesc="Framebuffer-based disk unlocker for the initramfs based on LVGL"
|
|
url="https://gitlab.com/cherrypicker/unl0kr"
|
|
arch="all"
|
|
license="GPL-3.0-or-later"
|
|
depends="
|
|
cryptsetup
|
|
inih
|
|
libinput-libs
|
|
libxkbcommon
|
|
"
|
|
makedepends="
|
|
eudev-dev
|
|
inih-dev
|
|
libinput-dev
|
|
libxkbcommon-dev
|
|
linux-headers
|
|
meson
|
|
scdoc
|
|
"
|
|
source="
|
|
https://gitlab.com/cherrypicker/unl0kr/-/archive/$pkgver/unl0kr-$pkgver.tar.gz
|
|
lvgl-$_commit_lvgl.tar.gz::https://github.com/lvgl/lvgl/archive/$_commit_lvgl.tar.gz
|
|
lv_drivers-$_commit_lv_drivers.tar.gz::https://github.com/calebccff/lv_drivers/archive/$_commit_lv_drivers.tar.gz
|
|
squeek2lvgl-$_commit_squeek2lvgl.tar.gz::https://gitlab.com/cherrypicker/squeek2lvgl/-/archive/$_commit_squeek2lvgl.tar.gz
|
|
unl0kr.conf
|
|
unl0kr.files
|
|
unlock.sh
|
|
30-unl0kr-test.sh
|
|
"
|
|
options="!check" # No tests
|
|
# "providing" osk-sdl, since it was dropped from pmaports
|
|
provides="postmarketos-fde-unlocker osk-sdl=$pkgver-r$pkgrel"
|
|
provider_priority=1000
|
|
subpackages="$pkgname-doc $pkgname-pmtest"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
mkdir -p lvgl lv_drivers squeek2lvgl
|
|
mv "$srcdir"/lvgl-"$_commit_lvgl"/* lvgl
|
|
mv "$srcdir"/lv_drivers-"$_commit_lv_drivers"/* lv_drivers
|
|
mv "$srcdir"/squeek2lvgl-"$_commit_squeek2lvgl"/* squeek2lvgl
|
|
}
|
|
|
|
build() {
|
|
abuild-meson build
|
|
meson compile ${JOBS:+-j ${JOBS}} -C build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C build
|
|
|
|
install -Dm644 "$srcdir"/unl0kr.conf \
|
|
"$pkgdir"/etc/unl0kr.conf
|
|
|
|
install -Dm755 "$srcdir"/unlock.sh \
|
|
"$pkgdir"/bin/fde-unlock
|
|
|
|
touch unl0kr
|
|
install -Dm644 unl0kr \
|
|
"$pkgdir"/usr/share/mkinitfs-triggers/unl0kr
|
|
|
|
# TODO: Figure out why this is needed
|
|
touch dummy
|
|
install -Dm644 dummy \
|
|
"$pkgdir"/etc/unl0kr.conf.d/dummy
|
|
|
|
install -Dm644 "$srcdir"/unl0kr.files \
|
|
"$pkgdir"/usr/share/mkinitfs/files-extra/30-unl0kr.files
|
|
}
|
|
|
|
pmtest() {
|
|
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-mkinitfs-hook-ci"
|
|
|
|
install -Dm755 "$srcdir"/30-unl0kr-test.sh \
|
|
"$subpkgdir"/usr/libexec/pmos-tests-initramfs/30-unl0kr-test.sh
|
|
|
|
# We need the files in the core initramfs for this, no -extra in CI
|
|
install -Dm644 "$srcdir"/unl0kr.files \
|
|
"$subpkgdir"/usr/share/mkinitfs/files/30-unl0kr.files
|
|
}
|
|
|
|
sha512sums="
|
|
927547d93bc694972be3cf82d97e83e51d076c30e611733262f3f0c9e7b7ad0a5190c5ff99ca6fe1728b2aaec55751a9632d581447defeba840db71465abeac7 unl0kr-2.0.3.tar.gz
|
|
fbc71bb804d5b766cd515533afd4f44092ffa023b248ac447b743618fa700a95bca8f9aa2ff20b033545f1ad745b31673e4a8b75e0991e8b6978327dfd65bf14 lvgl-2f294aa76c8fece98a4fa72304bc6f267ed2a228.tar.gz
|
|
e046c566a5cfc84ed26f08c6adfda6dfb093b80d0efe7dd0d66399fd8fb2fec16d22b6910e375442c8915fd66aa9efac77299b0370e25181e428bb601c3bbb23 lv_drivers-71dbdf07c4ab808bc6f04251d58f78bb57869bf9.tar.gz
|
|
9c5a9b846fdc2823bfdf2ee663d5971f0b27e1e0df27067b8ce428ae3d161dae90a35fd2ad462ec108c292e7108079782cc1ea8638a6c3d1a406e039c9501997 squeek2lvgl-ffe1f5bf18a99756f1c0985e8ccc3d24a1f4a528.tar.gz
|
|
7155c2f95dcf3716c0f392cf5717e96f1414c383a1f7c2ed30a1f8518dfe0b17c3c0e0e93f6476a342504aa855404099e2f5444eeb099023491c9a9a26fa3d90 unl0kr.conf
|
|
521379c06843d31304c7317d083472bb0105da7e9360d7a303cb98c84112919278fa8b50c3781d9cf43bb057b7eb7d52a4f4d900be69a0c0d70f97f2e9843140 unl0kr.files
|
|
5386f434cd4f1fb9e0d561a8689e5e85d6a8b3c562823122c082d4932d2fb0ad4edcd635f14f0c61e5c8b5e53648c9937b042409c21683007700faea8894c750 unlock.sh
|
|
407180b49c1a05f12bd6ee6e59dca0a6e74fe7b01f195087dcf2865598c47827d0bb569afdba55defa2f9a16437230fa62aa64f35111508b906bcbf9537acba4 30-unl0kr-test.sh
|
|
"
|