pkgname=osk-sdl
pkgver=0.51
pkgrel=0
pkgdesc="Onscreen keyboard for unlocking LUKS devices"
url="https://github.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://github.com/postmarketOS/osk-sdl/archive/${pkgver}.tar.gz"

options="!strip"

build() {
    make
}

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