aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-05-19 09:22:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-05-19 09:22:20 +0000
commit42f2f403c8c5717ae84271e1cf1e39ae8fc04d1c (patch)
treef023966f5d4c75b90f5107ef64ff6209bc43dd36
parent61f1717f467f5926d1c3c70a1b91b03deba3f88d (diff)
downloadaports-42f2f403c8c5717ae84271e1cf1e39ae8fc04d1c.tar.bz2
aports-42f2f403c8c5717ae84271e1cf1e39ae8fc04d1c.tar.xz
main/libevdev: new aport
Kernel Evdev Device Wrapper Library http://www.freedesktop.org/wiki/Software/libevdev needed by xf86-input-synaptics
-rw-r--r--main/libevdev/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/main/libevdev/APKBUILD b/main/libevdev/APKBUILD
new file mode 100644
index 0000000000..a314d9779a
--- /dev/null
+++ b/main/libevdev/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer:
+pkgname=libevdev
+pkgver=1.2.1
+pkgrel=0
+pkgdesc="Kernel Evdev Device Wrapper Library"
+url="http://www.freedesktop.org/wiki/Software/libevdev"
+arch="all"
+license="MIT"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://www.freedesktop.org/software/libevdev/libevdev-$pkgver.tar.xz"
+
+_builddir="$srcdir"/libevdev-$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"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="635bafe27f71772f8eb27a12f94a80d7 libevdev-1.2.1.tar.xz"
+sha256sums="7cc522bee24f0c3e70ecf0a1c312258d7155e8197292cfeeeb85f2959edb1e38 libevdev-1.2.1.tar.xz"
+sha512sums="4a075168dabc9f934f8e129dfc754799a75fa43cc861d2fc5327613f7d1b23d49ff6a6188c7a51ba5c55a2d109d417a047d24e6eea5ba6da1b97851278d85452 libevdev-1.2.1.tar.xz"