# Maintainer: Natanael Copa setglobal pkgname = 'linuxconsoletools' setglobal pkgver = '1.4.9' setglobal pkgrel = '0' setglobal pkgdesc = '"Tools for connecting joysticks & legacy devices to the kernels input subsystem'" setglobal url = '"http://sourceforge.net/projects/linuxconsole/'" setglobal arch = '"all'" setglobal license = '"GPLv2+'" setglobal depends = ''"" setglobal depends_dev = ''"" setglobal makedepends = ""$depends_dev linux-headers sdl-dev"" setglobal install = ''"" setglobal subpackages = ""$pkgname-doc"" setglobal source = ""http://downloads.sourceforge.net/linuxconsole/linuxconsoletools-$pkgver.tar.bz2 sys-time.patch"" setglobal _builddir = ""$srcdir"/linuxconsoletools-$pkgver" proc prepare { local i cd $_builddir for i in [$source] { match $i { with *.patch msg $i; patch -p1 -i "$srcdir"/$i || return 1 } } } proc build { cd $_builddir make PREFIX=/usr || return 1 } proc package { cd $_builddir make PREFIX=/usr DESTDIR="$pkgdir" install || return 1 } setglobal md5sums = '"9b91718fefabc021ca7a5adbf13e3fde linuxconsoletools-1.4.9.tar.bz2 e51dda85eea08232d8013781e7756d2d sys-time.patch'" setglobal sha256sums = '"fa9c64f98cd991e71e23fa9b673635e23f0b69f0325593c0a56b8960bb139b67 linuxconsoletools-1.4.9.tar.bz2 295925633ceb5e8aa3033b3b4b04276e4cdca6646c1c52bf5cee09ec8f1aa9ce sys-time.patch'" setglobal sha512sums = '"c2ea4f8f868b3d616bb0a4b84d6a051ed444251cc5d40c775863a5163359c9c34ee9647ff1c74e8659f7fef10d8722b4431b2e1706cf5052505731c1a1232ddd linuxconsoletools-1.4.9.tar.bz2 a96b37a365a5fb067d017b3790f4e09fd733639a5e65f93d44138e89efbcedc87b11a35f39f40623cdac743207349fbb28d4de982d5694a6f9b8981bce29dd68 sys-time.patch'"