aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86-video-nouveau/APKBUILD
blob: 0c6b3c4a1d25e5841edc45991e8e78d655122e7e (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-nouveau
pkgver=1.0.12
pkgrel=0
pkgdesc="Open-source X.org drivers for nVidia video cards"
url="http://nouveau.freedesktop.org/"
arch="all"
license="MIT"
depends="mesa-dri-nouveau"
depends_dev=
makedepends="randrproto renderproto videoproto xextproto libdrm-dev
	xorg-server-dev util-macros xf86driproto eudev-dev"
install=""
subpackages="$pkgname-doc"
source="http://xorg.freedesktop.org/archive/individual/driver/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$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"
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="dc79910c7b9e32321cefc7af250c7765  xf86-video-nouveau-1.0.12.tar.bz2"
sha256sums="0ea057ad7fc31caba2d4e46c7e418fe2b3c762b04fb8d382f53383397fd8391e  xf86-video-nouveau-1.0.12.tar.bz2"
sha512sums="dd3be4b89d4b39f02b7cbf058be90e6777adc61a580c0987e737056ff85ed2685e7d6a7848b2c7ab8957810e057d7693c5dd2c425f88609670e02ea8368d77e9  xf86-video-nouveau-1.0.12.tar.bz2"