pmaports/main/osk-sdl/APKBUILD
2022-06-06 09:29:21 +02:00

63 lines
1.7 KiB
Text

# Maintainer: Clayton Craft <clayton@craftyguy.net>
# Co-Maintainer: Oliver Smith <ollieparanod@postmarketos.org>
#
# Note: cannot upstream to Alpine until:
# https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10712
pkgname=osk-sdl
pkgver=0.67
pkgrel=0
pkgdesc="Onscreen keyboard for unlocking LUKS devices"
url="https://gitlab.com/postmarketOS/osk-sdl"
arch="all"
license="GPL-3.0-or-later"
depends="
cryptsetup-libs
directfb
mesa-egl
mesa-gl
mesa-gles
ttf-dejavu
"
makedepends="
cryptsetup-dev
linux-headers
meson
scdoc
sdl2-dev
sdl2_ttf-dev
"
source="
https://gitlab.com/postmarketOS/osk-sdl/-/archive/$pkgver/osk-sdl-$pkgver.tar.gz
osk-sdl.files
unlock.sh
"
options="!strip !check" # No tests
subpackages="$pkgname-doc"
provides="postmarketos-fde-unlocker"
provider_priority=1000
build() {
abuild-meson build
meson compile ${JOBS:+-j ${JOBS}} -C build
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C build
install -Dm755 "$srcdir"/unlock.sh \
"$pkgdir"/bin/fde-unlock
# needed to trigger initfs rebuild:
touch osk-sdl
install -Dm644 osk-sdl \
"$pkgdir"/usr/share/postmarketos-mkinitfs-triggers/osk-sdl
install -Dm644 "$srcdir"/osk-sdl.files \
"$pkgdir"/etc/postmarketos-mkinitfs/files/30-osk-sdl.files
}
sha512sums="
eeed4f861c664d88302ad59e2dca6d4167bbc487f5054477e303b5bc3a4a5e821d68c627007dcd3be8ce79d50b70201273ed76c63de13f2456abbe6d43703048 osk-sdl-0.67.tar.gz
e1017bc0667756b82527d88f47a77e2f5a44e0769b5ccdea0c6c1f86bd3d0a1df9d9f5bbb224888748cfef5edc3375036a25099eb02c963302f155c3b2e8fefd osk-sdl.files
5e2de0da40f3b409cb01c388ab61e8072db30789af6f8a7fec817699dcb928b8aec25288fb1e59403e99769dec032f1b446bcc5f761d9a6504e238fa205281fd unlock.sh
"