aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxi/APKBUILD
blob: 75b0611e836e548a8614e721e056e5717ba50bad (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.6
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="510e555ecfffa8d2298a0f42b725e563  libXi-1.7.6.tar.bz2"
sha256sums="1f32a552cec0f056c0260bdb32e853cec0673d2f40646ce932ad5a9f0205b7ac  libXi-1.7.6.tar.bz2"
sha512sums="229e1e6e1486808ffad9610a8fd7930bd3348fa5d11709adcb6239b5c01af877ac549072e8d3aec605a3835d8278fd48146db50577fa031407d20c1e871d8f4a  libXi-1.7.6.tar.bz2"