pmaports/main/unl0kr/APKBUILD
Johannes Marbach 0b523f354b
main/unl0kr: upgrade to 0.2.0_git20221110 (MR 3633)
[ci:skip-build]: already built successfully in CI
2022-11-11 07:52:20 +01:00

80 lines
3.1 KiB
Text

# Maintainer: Johannes Marbach <n0-0ne+gitlab@mailbox.org>
pkgname=unl0kr
pkgver=0.2.0_git20221110
pkgrel=0
_commit=fb83848f53ede21300e34fd3bd9c63576f4c4fc0
_commit_lvgl=bcf5d79cb4f868270d9f564a92a080e07280b67b
_commit_lv_drivers=2ed01feab02940c117fa4cd3f83cd4649b8b9f0e
_commit_squeek2lvgl=b67685dfede0771d2a237e1d8d4e784fcf406a70
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
"
source="
$pkgname-$_commit.tar.gz::https://gitlab.com/cherrypicker/unl0kr/-/archive/$_commit.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/lvgl/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
"
builddir="$srcdir/$pkgname-$_commit"
options="!check" # No tests
provides="postmarketos-fde-unlocker"
provider_priority=999
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/postmarketos-mkinitfs-triggers/unl0kr
install -Dm644 "$srcdir"/unl0kr.files \
"$pkgdir"/etc/postmarketos-mkinitfs/files/30-unl0kr.files
}
sha512sums="
73f873e23068148ae90c9a4093e0de26bd13fb8a2f028afc6d68af98d54c9d9a3740a752b270eb5903430a95296990022bb54fde48fcd2b3fd733c58acdd7efa unl0kr-fb83848f53ede21300e34fd3bd9c63576f4c4fc0.tar.gz
bebe74f24c633245c28e8814e40afb3e54174758a65dbc1583bd50a68ad7b92d6ef1432715b52c021fd96ef1c98e03f0b40c237219ccdd5bf6005964c161d617 lvgl-bcf5d79cb4f868270d9f564a92a080e07280b67b.tar.gz
eb1d303e9c1921470108e7d146c652f840a35bd73e26381afe1dbeb6838de392e4cfda0453d3ff5cadff5937b558e281bf5ceb8d9e0767cc442874b9f92c47bc lv_drivers-2ed01feab02940c117fa4cd3f83cd4649b8b9f0e.tar.gz
97bd9cfb8eb9d3b5cd5c29356533b5387469509464ed454c1fcbd470f4f89009b394c1b36be20beb6e6192c56e1351ad377ca16ddf23e73085a95d30d23d880b squeek2lvgl-b67685dfede0771d2a237e1d8d4e784fcf406a70.tar.gz
7155c2f95dcf3716c0f392cf5717e96f1414c383a1f7c2ed30a1f8518dfe0b17c3c0e0e93f6476a342504aa855404099e2f5444eeb099023491c9a9a26fa3d90 unl0kr.conf
6bf8f121ab9be4fd0e77309b36f65ce9c601669056dddd29eab15eeaa93d5c922bfdcefeba4780fc75fe44f9356f56c3fc435729821007bca84ebfae8c568c42 unl0kr.files
5386f434cd4f1fb9e0d561a8689e5e85d6a8b3c562823122c082d4932d2fb0ad4edcd635f14f0c61e5c8b5e53648c9937b042409c21683007700faea8894c750 unlock.sh
"