aboutsummaryrefslogtreecommitdiffstats
path: root/main/libevdev/APKBUILD
blob: 0cb8a5451a84cc57688c1dfca11531e553257cb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libevdev
pkgver=1.4.6
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 python linux-headers"
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
}

md5sums="9b3f25bd8fb0f8efa4944d34668dddc0  libevdev-1.4.6.tar.xz"
sha256sums="7b2ae1a0c7f9f7a96198ddc8fd167f090f233d6cbd8168b847e4f968445132d3  libevdev-1.4.6.tar.xz"
sha512sums="7c2250ed87a352e5ce8503ff4ea7cac29e45bdfbde6e3443dd091ebfe139cb7a2b4be5e16d1aa1bf7e0e0550c16eb1d0038992645bf0bef5528f2dca4a8f0290  libevdev-1.4.6.tar.xz"