summaryrefslogtreecommitdiffstats
path: root/testing/xf86-video-openchrome/APKBUILD
blob: 569a89e28e103a14e134a0ee1c8cf121b918aca9 (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
51
52
53
54
55
56
57
58
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-openchrome
pkgver=0.3.0_pre20120306
_ver=${pkgver/_/-}
pkgrel=0
pkgdesc="X.Org driver for VIA/S3G cards"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
depends=
makedepends="pkgconfig xorg-server-dev libxi-dev libxvmc-dev fontsproto glproto
	randrproto videoproto renderproto xf86driproto mesa-dev util-macros
	autoconf automake libtool
	"

source="http://www.infradead.org/~jsimmons/xf86-video-openchrome-$_ver.tbz
	openchrome.xinf
	"

_builddir="$srcdir"/xf86-video-openchrome-$_ver
unpack() {
	cd "$srcdir"
	for i in $source; do
		case $i in
		*.tbz) tar -jxf "$srcdir"/${i##*/} || return 1;;
		esac
	done
}

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p0 -i "$srcdir"/$i || return 1;;
		esac
	done
	./autogen.sh
}
	
build() {
	cd "$_builddir"
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure --prefix=/usr || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" -name '*.la' -delete
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
	install -Dm644 "$srcdir"/openchrome.xinf \
		"$pkgdir"/usr/share/hwdata/videoaliases/openchrome.xinf
}

md5sums="9b085ca54974f14b454bdeaf8dc1c089  xf86-video-openchrome-0.3.0-pre20120306.tbz
d6906087f0e93ea2d98e553f4dfbcc97  openchrome.xinf"