APKBUILD 1.3 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-r128
3
pkgver=6.9.2
4
pkgrel=1
Natanael Copa's avatar
Natanael Copa committed
5
6
pkgdesc="ATI Rage128 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
depends=
11
12
13
14
makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
	videoproto renderproto xineramaproto libdrm-dev xf86driproto glproto
	mesa-dev expat-dev
	"
Natanael Copa's avatar
Natanael Copa committed
15

16
source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
Natanael Copa's avatar
Natanael Copa committed
17

18
19
20
21
22
23
24
_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

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

package() {
38
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
39
	make DESTDIR="$pkgdir" install || return 1
40
	rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1
Natanael Copa's avatar
Natanael Copa committed
41
42
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
43
44
45
md5sums="2e906d856a1c477bde000254b142445c  xf86-video-r128-6.9.2.tar.bz2"
sha256sums="8b2d295f1842d07304a75da1cfb9bf139b320a6539970eaf8d5ecc010cd36ee0  xf86-video-r128-6.9.2.tar.bz2"
sha512sums="7f8dc174ff8cff6d109a62610b255c3f3a99e6fbdc38373da3efb88a960a25fe3124dbdb6a9379de6b45edaedb3aae44a183a5604f80bbb488dbb98faebc2fb3  xf86-video-r128-6.9.2.tar.bz2"