diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-12-30 10:29:38 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-12-30 10:30:27 +0000 |
commit | bbcd8c0265deaff095bcd76e59b09046c80ad4fb (patch) | |
tree | e712fa4ace346df348308a01d1a30455111d769e | |
parent | 665cf7860a2e519b50e7b43765cdf5085285f3e2 (diff) | |
download | aports-bbcd8c0265deaff095bcd76e59b09046c80ad4fb.tar.bz2 aports-bbcd8c0265deaff095bcd76e59b09046c80ad4fb.tar.xz |
testing/linuxconsoletools: new aport
Tools for connecting joysticks & legacy devices to the kernels input subsystem
http://sourceforge.net/projects/linuxconsole/
fixes #2532
-rw-r--r-- | testing/linuxconsoletools/APKBUILD | 44 | ||||
-rw-r--r-- | testing/linuxconsoletools/sys-time.patch | 12 |
2 files changed, 56 insertions, 0 deletions
diff --git a/testing/linuxconsoletools/APKBUILD b/testing/linuxconsoletools/APKBUILD new file mode 100644 index 0000000000..4a91618b4b --- /dev/null +++ b/testing/linuxconsoletools/APKBUILD @@ -0,0 +1,44 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +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 + rm -f "$pkgdir"/usr/lib/*.la +} + +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" diff --git a/testing/linuxconsoletools/sys-time.patch b/testing/linuxconsoletools/sys-time.patch new file mode 100644 index 0000000000..18045b5ab8 --- /dev/null +++ b/testing/linuxconsoletools/sys-time.patch @@ -0,0 +1,12 @@ +diff --git a/utils/inputattach.c b/utils/inputattach.c +index d11e2db..22e1ec3 100644 +--- a/utils/inputattach.c ++++ b/utils/inputattach.c +@@ -41,6 +41,7 @@ + #include <stdlib.h> + #include <string.h> + #include <sys/ioctl.h> ++#include <sys/time.h> + #include <termios.h> + #include <unistd.h> + |