aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxi/APKBUILD
blob: 1d6fe7e4d63b4023def0267a01d723fa123aeeba (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
49
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxi
pkgver=1.7.5
pkgrel=0
pkgdesc="X11 Input extension library"
url="http://xorg.freedesktop.org"
arch="all"
license="custom"
subpackages="$pkgname-dev $pkgname-doc"
depends=
depends_dev="inputproto libx11-dev libxext-dev libxfixes-dev"
makedepends="
	$depends_dev
	pkgconfig 
	xextproto
	xproto
	"
source="http://xorg.freedesktop.org/releases/individual/lib/libXi-$pkgver.tar.bz2"

_builddir="$srcdir"/libXi-$pkgver
prepare() {
	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 \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="9f02462855c598a0cd0ddfd98c6e25f5  libXi-1.7.5.tar.bz2"
sha256sums="d964d7deb5d8f7d6b9c358969c625073d7ab273dbda94693130b3540bc0ca229  libXi-1.7.5.tar.bz2"
sha512sums="5dfdf872399a85692ef681f4fb8632866783317971e72b046685a906d98007c6b19d1650270861b3457d0a817365ce57e532481b682dd2e36558c815f8919a59  libXi-1.7.5.tar.bz2"