APKBUILD 1.67 KB
Newer Older
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-glint
3
pkgver=1.2.8
4
pkgrel=5
5 6
pkgdesc="GLINT/Permedia video driver"
url="http://xorg.freedesktop.org/"
7
arch="all"
8
license="custom"
9
subpackages="$pkgname-doc"
10 11 12 13
depends=
makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
	videoproto renderproto xf86dgaproto glproto libdrm-dev xf86driproto
	mesa-dev"
14

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

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

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

package() {
41
	cd "$_builddir"
42
	make DESTDIR="$pkgdir" install || return 1
43
	rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1
44 45
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
46 47 48 49 50 51
md5sums="775579c67dc55ff4909de3638bafd19f  xf86-video-glint-1.2.8.tar.bz2
9afce8beedb2335e297c58471a4184fa  mibstore.patch"
sha256sums="657f883bb3a4e4278399eba73840862c3642706ae8b0a4798ec97a31b3524221  xf86-video-glint-1.2.8.tar.bz2
8bf833751bea92543835c7f0c55b6a6ed7c4df62034372f5f6ae122b3ba8f231  mibstore.patch"
sha512sums="ea8c566877a8ef6d7c08bec317da62f41ffa080ca76f06587a2bbb2a976966ca4138fae60ede757cf470222912c915f4361aa90513901c370eae335818f33468  xf86-video-glint-1.2.8.tar.bz2
f482f2ee1ccf089250be3c1f9b80cde90253a482891e177595a3331acd0cac9f0faf1e58382dc3d03c4c02638096fae8d767d46a9b51c35b5adce40c6e6ce767  mibstore.patch"