APKBUILD 1.61 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-i128
3
pkgver=1.3.6
4
pkgrel=4
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="Number 9 I128 video driver"
url="http://xorg.freedesktop.org/"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8
license="custom"
9
subpackages="$pkgname-doc"
10 11
depends=
makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
Natanael Copa's avatar
Natanael Copa committed
12 13
	videoproto renderproto"

14 15 16 17 18 19
source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
	mibstore.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
20
	update_config_sub || return 1
21 22 23 24 25 26
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}
Natanael Copa's avatar
Natanael Copa committed
27

28
build() {
29
	cd "$_builddir"
30
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
31 32 33 34 35
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
36
	make || return 1
37 38 39
}

package() {
40
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
41
	make DESTDIR="$pkgdir" install || return 1
42
	rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1
Natanael Copa's avatar
Natanael Copa committed
43 44
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
45 46 47 48 49 50
md5sums="0b0d365dce2c567b807562a32f7fe66e  xf86-video-i128-1.3.6.tar.bz2
01ba59049028fd4c65d620fb898a23e8  mibstore.patch"
sha256sums="f8827e4c988f90cf5a677554b30d61f0a07eb86d872478751cdc94dc17452b9c  xf86-video-i128-1.3.6.tar.bz2
a33da9fb125697fa9c3178bfa11f40f88f69947cd0934ac37139ba1c1a950d52  mibstore.patch"
sha512sums="688956107fe473941da9d22914dc1aa1889b8a1bb75678692d40630396eca5426a4506bb0a536c48b6ed7a2b580a80af5b8b5d3199e2b04d8f24c404f60d3c34  xf86-video-i128-1.3.6.tar.bz2
3cfe390f1f812250ed3abde0dc8bd699419bf71d6642328d69163012b813906b995acf942c31febe6fc6909109181436e1c7dfcb74d08feae6c9b7434ea63df9  mibstore.patch"