# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=linuxconsoletools
pkgver=1.8.1
pkgrel=1
pkgdesc="Tools for connecting joysticks & legacy devices to the kernels input subsystem"
url="https://sourceforge.net/projects/linuxconsole/"
arch="all"
license="GPL-2.0-or-later"
makedepends="linux-headers sdl2-dev"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/linuxconsole/linuxconsoletools-$pkgver.tar.bz2
	0001-linuxconsoletools-usr-merge.patch
	"

build() {
	make PREFIX=/usr
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
407fcba552a3e45c60fb4f08217fe17106bedd6fde2fbce84aa6f4fa68ffc032f1683c6154f79daacaf1dcaf484fe943dd7391e787f0290d5bf42c7089c7c20c  linuxconsoletools-1.8.1.tar.bz2
5cefb2292fbda1061fa9490248502ce425e9baf02b621c6031f78284090f00c2e4ae44c030c18da95c7a6a03f0af1516b9d797c40a064f09f33a56d6bcd5534f  0001-linuxconsoletools-usr-merge.patch
"
