# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=osk-sdl
pkgver=0.54
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 mesa-gl directfb ttf-dejavu"
makedepends="linux-headers sdl2-dev sdl2_ttf-dev cryptsetup-dev"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/postmarketOS/osk-sdl/-/archive/$pkgver/osk-sdl-$pkgver.tar.gz"
options="!strip !check" # No tests

build() {
	make
}

package() {
	install -D -m755 bin/osk-sdl \
		"$pkgdir"/usr/bin/osk-sdl
	install -D -m755 osk.conf \
		"$pkgdir"/etc/osk.conf
}
sha512sums="b98cc2ea1ca8c951cca3bfa539562b32f3075ce49373d3d2f43d1d2ea1e4c80f8885e46492bfa15fbaee91bc1aa0764a40f76333b36a55991176092de57b10a5  osk-sdl-0.54.tar.gz"
