aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86-video-nouveau/APKBUILD
blob: 315bae0e401cf3fcc4aecedb714646ee40162490 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-nouveau
#_gitdate=20111010
pkgver=1.0.9
pkgrel=0
pkgdesc="Open-source X.org drivers for nVidia video cards"
url="http://nouveau.freedesktop.org/"
arch="all"
license="MIT"
depends=""
depends_dev=
makedepends="pkgconfig randrproto renderproto videoproto xextproto libdrm-dev
	xorg-server-dev util-macros libtool autoconf automake xf86driproto
	udev-dev"
install=""
subpackages="$pkgname-doc"
source="http://xorg.freedesktop.org/releases/individual/driver/xf86-video-nouveau-$pkgver.tar.bz2"

_builddir="$srcdir"/xf86-video-nouveau-$pkgver

mksource() {
	mkdir /tmp/${pkgname}-${_gitdate}
	(cd /tmp/${pkgname}-${_gitdate};
	git clone -v --depth 1 git://anongit.freedesktop.org/nouveau/xf86-video-nouveau;
	cd xf86-video-nouveau;
	git archive --prefix=xf86-video-nouveau-${_gitdate}/ --format=tar HEAD | bzip2 > /tmp/${pkgname}-${_gitdate}/${pkgname}-${_gitdate}.tar.bz2)
}

build() {
	cd "$_builddir"
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1
}

md5sums="8b2c0df5de3929597ade8c5ddb489a44  xf86-video-nouveau-1.0.9.tar.bz2"
sha256sums="b247c800e532fad1c80a5666d8ca0d4e5712064b6d7a3b030b32206a8de04482  xf86-video-nouveau-1.0.9.tar.bz2"
sha512sums="61118a57c3918b516d250fdba917cc32d85576aa46fe84b4632e6cb1cd0e00dba76cd36667d66821361d75ddd6cc1c91a7f4d13ce0bce79e1ff2f19297474de1  xf86-video-nouveau-1.0.9.tar.bz2"