blob: c970020e5067147713a071f5ea5c15122c1f6592 (
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
50
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxi
pkgver=1.7.4
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
rm "$pkgdir"/usr/lib/*.la || return 1
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="9c4a69c34b19ec1e4212e849549544cb libXi-1.7.4.tar.bz2"
sha256sums="2cffc2686618dc1803725636cd92b36342c512dc60a7a35cba34bf7192a42244 libXi-1.7.4.tar.bz2"
sha512sums="17182e580bdf6d65c743ceef4f652f7c7975761f288dfd6f2961c2fed23931569f7cf7cac745bb252fe0a6c3be2739ba6f6533b895519800e382a48f2e5297f0 libXi-1.7.4.tar.bz2"
|