abfc585aa6
Co-authored-by: Newbyte <newbie13xd@gmail.com> [ci:skip-build]: already built successfully in CI
93 lines
2.9 KiB
Text
93 lines
2.9 KiB
Text
# Maintainer: Johannes Marbach <n0-0ne+gitlab@mailbox.org>
|
|
pkgname=unl0kr
|
|
pkgver=3.1.0
|
|
pkgrel=0
|
|
_commit_lvgl=47ec2784d8e7683216d206dcdd7688ea3b785a63
|
|
pkgdesc="Framebuffer-based disk unlocker for the initramfs based on LVGL"
|
|
url="https://gitlab.com/postmarketOS/buffybox/unl0kr"
|
|
arch="all"
|
|
license="GPL-3.0-or-later"
|
|
depends="
|
|
cryptsetup
|
|
inih
|
|
libdrm
|
|
libinput-libs
|
|
libxkbcommon
|
|
"
|
|
makedepends="
|
|
eudev-dev
|
|
inih-dev
|
|
libdrm-dev
|
|
libinput-dev
|
|
libxkbcommon-dev
|
|
linux-headers
|
|
meson
|
|
scdoc
|
|
"
|
|
source="
|
|
https://gitlab.com/postmarketOS/buffybox/-/archive/$pkgver/buffybox-$pkgver.tar.gz
|
|
lvgl-$_commit_lvgl.tar.gz::https://github.com/lvgl/lvgl/archive/$_commit_lvgl.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"
|
|
builddir="$srcdir/buffybox-$pkgver/unl0kr"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
mkdir -p ../lvgl
|
|
mv "$srcdir/lvgl-$_commit_lvgl"/* ../lvgl
|
|
}
|
|
|
|
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="
|
|
3853b7fd0fc0314e58a2f18f8cf9641e5205bf75cccaf3606cca469959b07e8db9691974d02cc76165816e75bb58fcfb9021ba6abbe6c59e06785daaaae81b6f buffybox-3.1.0.tar.gz
|
|
79fc7079ebc6c32698154d5bf08498b226fabb4fd5b9cbd489a12ce8e6638163b56ce7d83a5f6882f3838ad3616ff60ee5a1ceec0d6b52d1869e4f6f283db929 lvgl-47ec2784d8e7683216d206dcdd7688ea3b785a63.tar.gz
|
|
7155c2f95dcf3716c0f392cf5717e96f1414c383a1f7c2ed30a1f8518dfe0b17c3c0e0e93f6476a342504aa855404099e2f5444eeb099023491c9a9a26fa3d90 unl0kr.conf
|
|
521379c06843d31304c7317d083472bb0105da7e9360d7a303cb98c84112919278fa8b50c3781d9cf43bb057b7eb7d52a4f4d900be69a0c0d70f97f2e9843140 unl0kr.files
|
|
5386f434cd4f1fb9e0d561a8689e5e85d6a8b3c562823122c082d4932d2fb0ad4edcd635f14f0c61e5c8b5e53648c9937b042409c21683007700faea8894c750 unlock.sh
|
|
407180b49c1a05f12bd6ee6e59dca0a6e74fe7b01f195087dcf2865598c47827d0bb569afdba55defa2f9a16437230fa62aa64f35111508b906bcbf9537acba4 30-unl0kr-test.sh
|
|
"
|