pmaports/main/unl0kr/APKBUILD

81 lines
3.1 KiB
Text
Raw Normal View History

# Maintainer: Johannes Marbach <n0-0ne+gitlab@mailbox.org>
pkgname=unl0kr
pkgver=0.2.0_git20220817
pkgrel=0
_commit=a2ec658afd71505d472f0e0355b186909d8961b6
_commit_lvgl=c9487f792445f3e520ec77c7e031312660f0f0dc
_commit_lv_drivers=c68b59e42a4cd1ab8c7ccdb23db426bf6dcf5ad2
_commit_squeek2lvgl=02fe94c78793888a7bbcf862455c2be27dc451e0
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="
92c7ab554d55c3b0d24d9f5fdb0938f982a43ad391732479f07cd60331eadbdc6d9c609da67ba5a7e1e524141f744b286690eb963be486aa1818f222ff597936 unl0kr-a2ec658afd71505d472f0e0355b186909d8961b6.tar.gz
c44543fb325c6665e6574acec69dd4e8bb89a05e0a3ea20b517095820facb809a312e81afcabcd163186f98dfa9ed891f374178005c4892959db565beb8db8ea lvgl-c9487f792445f3e520ec77c7e031312660f0f0dc.tar.gz
529a3ad16dec9a7dd88a996dc5f2f5cafe6c89781529ffe4476e8c7ec90739ab39171015f6bf400e07af270c74ea7c40d842aac7312939811480132f72e8785d lv_drivers-c68b59e42a4cd1ab8c7ccdb23db426bf6dcf5ad2.tar.gz
2080a35d382a5b3b3ad7ec745618bd94a7b4ad8449a778ec8ec02e817ab49cb26adc21c056922e5ff18521989a604558507abfa249d20ebe7178be9a6bb6404e squeek2lvgl-02fe94c78793888a7bbcf862455c2be27dc451e0.tar.gz
7155c2f95dcf3716c0f392cf5717e96f1414c383a1f7c2ed30a1f8518dfe0b17c3c0e0e93f6476a342504aa855404099e2f5444eeb099023491c9a9a26fa3d90 unl0kr.conf
6bf8f121ab9be4fd0e77309b36f65ce9c601669056dddd29eab15eeaa93d5c922bfdcefeba4780fc75fe44f9356f56c3fc435729821007bca84ebfae8c568c42 unl0kr.files
5386f434cd4f1fb9e0d561a8689e5e85d6a8b3c562823122c082d4932d2fb0ad4edcd635f14f0c61e5c8b5e53648c9937b042409c21683007700faea8894c750 unlock.sh
"