2022-01-22 18:14:26 +00:00
|
|
|
# Maintainer: Johannes Marbach <n0-0ne+gitlab@mailbox.org>
|
|
|
|
pkgname=unl0kr
|
2023-12-19 20:31:28 +00:00
|
|
|
pkgver=2.0.3
|
|
|
|
pkgrel=0
|
2023-03-14 19:48:46 +00:00
|
|
|
_commit_lvgl=2f294aa76c8fece98a4fa72304bc6f267ed2a228
|
2023-12-19 20:31:28 +00:00
|
|
|
_commit_lv_drivers=71dbdf07c4ab808bc6f04251d58f78bb57869bf9
|
|
|
|
_commit_squeek2lvgl=ffe1f5bf18a99756f1c0985e8ccc3d24a1f4a528
|
2022-01-22 18:14:26 +00:00
|
|
|
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
|
|
|
|
!osk-sdl
|
|
|
|
"
|
|
|
|
makedepends="
|
|
|
|
eudev-dev
|
|
|
|
inih-dev
|
|
|
|
libinput-dev
|
|
|
|
libxkbcommon-dev
|
|
|
|
linux-headers
|
|
|
|
meson
|
2023-03-14 19:48:46 +00:00
|
|
|
scdoc
|
2022-01-22 18:14:26 +00:00
|
|
|
"
|
|
|
|
source="
|
2022-11-13 19:47:10 +00:00
|
|
|
https://gitlab.com/cherrypicker/unl0kr/-/archive/$pkgver/unl0kr-$pkgver.tar.gz
|
2022-01-22 18:14:26 +00:00
|
|
|
lvgl-$_commit_lvgl.tar.gz::https://github.com/lvgl/lvgl/archive/$_commit_lvgl.tar.gz
|
2023-03-14 19:48:46 +00:00
|
|
|
lv_drivers-$_commit_lv_drivers.tar.gz::https://github.com/calebccff/lv_drivers/archive/$_commit_lv_drivers.tar.gz
|
2022-01-22 18:14:26 +00:00
|
|
|
squeek2lvgl-$_commit_squeek2lvgl.tar.gz::https://gitlab.com/cherrypicker/squeek2lvgl/-/archive/$_commit_squeek2lvgl.tar.gz
|
|
|
|
unl0kr.conf
|
|
|
|
unl0kr.files
|
|
|
|
unlock.sh
|
2023-09-27 23:12:27 +00:00
|
|
|
30-unl0kr-test.sh
|
2022-01-22 18:14:26 +00:00
|
|
|
"
|
|
|
|
options="!check" # No tests
|
|
|
|
provides="postmarketos-fde-unlocker"
|
2022-07-07 19:51:01 +00:00
|
|
|
provider_priority=1000
|
2023-09-27 23:12:27 +00:00
|
|
|
subpackages="$pkgname-doc $pkgname-pmtest"
|
2022-01-22 18:14:26 +00:00
|
|
|
|
|
|
|
prepare() {
|
2023-12-19 20:31:28 +00:00
|
|
|
default_prepare
|
2022-01-22 18:14:26 +00:00
|
|
|
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 \
|
2023-02-18 23:22:06 +00:00
|
|
|
"$pkgdir"/usr/share/mkinitfs-triggers/unl0kr
|
2022-01-22 18:14:26 +00:00
|
|
|
|
2023-03-14 19:48:46 +00:00
|
|
|
# TODO: Figure out why this is needed
|
|
|
|
touch dummy
|
|
|
|
install -Dm644 dummy \
|
|
|
|
"$pkgdir"/etc/unl0kr.conf.d/dummy
|
|
|
|
|
2022-01-22 18:14:26 +00:00
|
|
|
install -Dm644 "$srcdir"/unl0kr.files \
|
2023-02-18 23:22:06 +00:00
|
|
|
"$pkgdir"/usr/share/mkinitfs/files-extra/30-unl0kr.files
|
2022-01-22 18:14:26 +00:00
|
|
|
}
|
|
|
|
|
2023-09-27 23:12:27 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2022-01-22 18:14:26 +00:00
|
|
|
sha512sums="
|
2023-12-19 20:31:28 +00:00
|
|
|
927547d93bc694972be3cf82d97e83e51d076c30e611733262f3f0c9e7b7ad0a5190c5ff99ca6fe1728b2aaec55751a9632d581447defeba840db71465abeac7 unl0kr-2.0.3.tar.gz
|
2023-03-14 19:48:46 +00:00
|
|
|
fbc71bb804d5b766cd515533afd4f44092ffa023b248ac447b743618fa700a95bca8f9aa2ff20b033545f1ad745b31673e4a8b75e0991e8b6978327dfd65bf14 lvgl-2f294aa76c8fece98a4fa72304bc6f267ed2a228.tar.gz
|
2023-12-19 20:31:28 +00:00
|
|
|
e046c566a5cfc84ed26f08c6adfda6dfb093b80d0efe7dd0d66399fd8fb2fec16d22b6910e375442c8915fd66aa9efac77299b0370e25181e428bb601c3bbb23 lv_drivers-71dbdf07c4ab808bc6f04251d58f78bb57869bf9.tar.gz
|
|
|
|
9c5a9b846fdc2823bfdf2ee663d5971f0b27e1e0df27067b8ce428ae3d161dae90a35fd2ad462ec108c292e7108079782cc1ea8638a6c3d1a406e039c9501997 squeek2lvgl-ffe1f5bf18a99756f1c0985e8ccc3d24a1f4a528.tar.gz
|
2022-01-22 18:14:26 +00:00
|
|
|
7155c2f95dcf3716c0f392cf5717e96f1414c383a1f7c2ed30a1f8518dfe0b17c3c0e0e93f6476a342504aa855404099e2f5444eeb099023491c9a9a26fa3d90 unl0kr.conf
|
2023-03-14 19:48:46 +00:00
|
|
|
521379c06843d31304c7317d083472bb0105da7e9360d7a303cb98c84112919278fa8b50c3781d9cf43bb057b7eb7d52a4f4d900be69a0c0d70f97f2e9843140 unl0kr.files
|
2022-01-22 18:14:26 +00:00
|
|
|
5386f434cd4f1fb9e0d561a8689e5e85d6a8b3c562823122c082d4932d2fb0ad4edcd635f14f0c61e5c8b5e53648c9937b042409c21683007700faea8894c750 unlock.sh
|
2023-09-27 23:12:27 +00:00
|
|
|
407180b49c1a05f12bd6ee6e59dca0a6e74fe7b01f195087dcf2865598c47827d0bb569afdba55defa2f9a16437230fa62aa64f35111508b906bcbf9537acba4 30-unl0kr-test.sh
|
2022-01-22 18:14:26 +00:00
|
|
|
"
|