# Maintainer: Natanael Copa pkgname=linuxconsoletools pkgver=1.4.6 pkgrel=0 pkgdesc="Tools for connecting joysticks & legacy devices to the kernels input subsystem" url="http://sourceforge.net/projects/linuxconsole/" arch="all" license="GPLv2+" depends="" depends_dev="sdl-dev" makedepends="$depends_dev" install="" subpackages="$pkgname-doc" source="http://downloads.sourceforge.net/linuxconsole/linuxconsoletools-$pkgver.tar.bz2 sys-time.patch" _builddir="$srcdir"/linuxconsoletools-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" make PREFIX=/usr || return 1 } package() { cd "$_builddir" make PREFIX=/usr DESTDIR="$pkgdir" install || return 1 } md5sums="9115e08e3a2193b62da46d0e02852787 linuxconsoletools-1.4.6.tar.bz2 e51dda85eea08232d8013781e7756d2d sys-time.patch" sha256sums="8ef1419e1a3dc31cd63cab969ef7e9c58060703fe6b755312f3a36b924f46500 linuxconsoletools-1.4.6.tar.bz2 295925633ceb5e8aa3033b3b4b04276e4cdca6646c1c52bf5cee09ec8f1aa9ce sys-time.patch" sha512sums="1597e3debcf45f7648cc0e4e042e08fde8aa2dcde74e1cf073d7450328f52c6b074123da9f6b7094598758d8f9b7db53f9ce952cbf4fae3454755b90ff286f28 linuxconsoletools-1.4.6.tar.bz2 a96b37a365a5fb067d017b3790f4e09fd733639a5e65f93d44138e89efbcedc87b11a35f39f40623cdac743207349fbb28d4de982d5694a6f9b8981bce29dd68 sys-time.patch"