aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-02 17:08:38 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-20 10:01:08 +0000
commit3f4c8184008dd3ee5e098376d05b1357c8f0f86a (patch)
tree7765dfa7a69996c909b36757a17dcbc384f136a8
parent9d1a83cfcbb72429ff558a54b1154e90bed6151e (diff)
downloadaports-3f4c8184008dd3ee5e098376d05b1357c8f0f86a.tar.bz2
aports-3f4c8184008dd3ee5e098376d05b1357c8f0f86a.tar.xz
main/libevdev: py2->py3, add disabled test suite, modernise
-rw-r--r--main/libevdev/APKBUILD18
1 files changed, 12 insertions, 6 deletions
diff --git a/main/libevdev/APKBUILD b/main/libevdev/APKBUILD
index 5c62f2b63a..9074e5d051 100644
--- a/main/libevdev/APKBUILD
+++ b/main/libevdev/APKBUILD
@@ -1,13 +1,15 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libevdev
pkgver=1.5.7
-pkgrel=0
+pkgrel=1
pkgdesc="Kernel Evdev Device Wrapper Library"
url="https://www.freedesktop.org/wiki/Software/libevdev"
arch="all"
license="MIT"
+options="!check" # Requires CONFIG_INPUT_UINPUT in kernel
depends=""
-makedepends="python2 linux-headers"
+makedepends="python3 linux-headers"
+checkdepends="check-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"
@@ -21,14 +23,18 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
sha512sums="53adf6c92ec61f0635b643a88d8762a18f7cd3088d23ac95831be32cc7150ebd19f20265b90f6a1f9a63420c2f8968c2d17d8dc4892c0e90f9dfcce82c622df1 libevdev-1.5.7.tar.xz"