pkgname=osk-sdl
pkgver=0.52
pkgrel=0
pkgdesc="Onscreen keyboard for unlocking LUKS devices"
url="https://gitlab.com/postmarketOS/osk-sdl"
arch="all"
license="GPL3"
depends="sdl2 sdl2_ttf cryptsetup-libs mesa-gl directfb"
makedepends="linux-headers sdl2-dev sdl2_ttf-dev cryptsetup-dev"
subpackages=""

source="${pkgname}-${pkgver}-${pkgrel}.tar.gz::https://gitlab.com/postmarketOS/osk-sdl/-/archive/${pkgver}/osk-sdl-${pkgver}.tar.gz"

options="!strip"

build() {
    make
}

package() {
    install -D -m755 "${srcdir}/${pkgname}-${pkgver}"/bin/osk-sdl \
        "$pkgdir"/usr/bin/osk-sdl
    install -D -m755 "${srcdir}/${pkgname}-${pkgver}"/osk.conf \
        "$pkgdir"/etc/osk.conf
}
sha512sums="ce2f17113d41b9c43c37148c18a547c4e09e26fdf86eb19d25b2761712065b2f2f45e34dcb5ec9be29a8c356c4430a881eedf9130e8a05d0645c97b26c756eb0  osk-sdl-0.52-0.tar.gz"
