summaryrefslogtreecommitdiffstats
path: root/main/xf86-video-nouveau/APKBUILD
blob: afb46d00a9852cda188ce2e1e9c7117fa5eb77cf (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
# Contributor:
# Maintainer:
pkgname=xf86-video-nouveau
_gitdate=20110506
pkgver=0.0.16_git${_gitdate}
pkgrel=1
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"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://dev.alpinelinux.org/~nenolod/xf86-video-nouveau-${_gitdate}.tar.bz2"

_builddir="${srcdir}/${pkgname}-${_gitdate}"

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"
	./autogen.sh --prefix=/usr || return 1
	make || return 1
}

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

md5sums="f48ffca3436988f5ffe915d7b47192a9  xf86-video-nouveau-20110506.tar.bz2"