aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86-video-nouveau/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-11-10 15:26:18 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-10 15:29:04 +0000
commitc6425053179bbc9555103bb9c859140734bc64fd (patch)
tree48aedc8e38c8bf0658215b20e78558032cbc5675 /main/xf86-video-nouveau/APKBUILD
parentddd11952eadcab077df4a2bfd69bef85e6c23acf (diff)
downloadaports-c6425053179bbc9555103bb9c859140734bc64fd.tar.bz2
aports-c6425053179bbc9555103bb9c859140734bc64fd.tar.xz
main/xf86-video-nouveau: rebuild against xorg-server-1.18
Diffstat (limited to 'main/xf86-video-nouveau/APKBUILD')
-rw-r--r--main/xf86-video-nouveau/APKBUILD33
1 files changed, 25 insertions, 8 deletions
diff --git a/main/xf86-video-nouveau/APKBUILD b/main/xf86-video-nouveau/APKBUILD
index af6505b660..7e6e14eca6 100644
--- a/main/xf86-video-nouveau/APKBUILD
+++ b/main/xf86-video-nouveau/APKBUILD
@@ -1,8 +1,9 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-nouveau
#_gitdate=20111010
-pkgver=1.0.11
-pkgrel=3
+pkgver=1.0.11_git20150913
+_ver=${pkgver%_git*}
+pkgrel=0
pkgdesc="Open-source X.org drivers for nVidia video cards"
url="http://nouveau.freedesktop.org/"
arch="all"
@@ -11,12 +12,15 @@ depends="mesa-dri-nouveau"
depends_dev=
makedepends="randrproto renderproto videoproto xextproto libdrm-dev
xorg-server-dev util-macros libtool autoconf automake xf86driproto
- eudev-dev"
+ eudev-dev
+ automake autoconf libtool"
install=""
subpackages="$pkgname-doc"
-source="http://xorg.freedesktop.org/releases/individual/driver/xf86-video-nouveau-$pkgver.tar.bz2"
+source="http://xorg.freedesktop.org/releases/individual/driver/xf86-video-nouveau-${_ver}.tar.bz2
+ git.patch
+ "
-_builddir="$srcdir"/xf86-video-nouveau-$pkgver
+_builddir="$srcdir"/xf86-video-nouveau-$_ver
mksource() {
mkdir /tmp/${pkgname}-${_gitdate}
@@ -26,6 +30,16 @@ mksource() {
git archive --prefix=xf86-video-nouveau-${_gitdate}/ --format=tar HEAD | bzip2 > /tmp/${pkgname}-${_gitdate}/${pkgname}-${_gitdate}.tar.bz2)
}
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ autoreconf -vif
+}
+
build() {
cd "$_builddir"
export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
@@ -42,6 +56,9 @@ package() {
make DESTDIR="$pkgdir" install || return 1
}
-md5sums="a0d2932d84ba10c4933c8332c9afe157 xf86-video-nouveau-1.0.11.tar.bz2"
-sha256sums="f84fe2b2787f3ea9419eac3aa86462b929a551b3dbc4de550cc83b67f3216848 xf86-video-nouveau-1.0.11.tar.bz2"
-sha512sums="4ceffc711798b98a5ee67d9df33d1a4f1d2b7d100605ea04b2e689debf745bc5a4f8907b602d1689ec6ed6400b2fc0ffe0eb0f7e7787bd2dd3cd5db1d14e90ee xf86-video-nouveau-1.0.11.tar.bz2"
+md5sums="a0d2932d84ba10c4933c8332c9afe157 xf86-video-nouveau-1.0.11.tar.bz2
+93561d95226bc2d5ea811f4277424f43 git.patch"
+sha256sums="f84fe2b2787f3ea9419eac3aa86462b929a551b3dbc4de550cc83b67f3216848 xf86-video-nouveau-1.0.11.tar.bz2
+c90d9643179d589300a45ac6fe330c44dc46faf382f0e646a8eff0791f53e903 git.patch"
+sha512sums="4ceffc711798b98a5ee67d9df33d1a4f1d2b7d100605ea04b2e689debf745bc5a4f8907b602d1689ec6ed6400b2fc0ffe0eb0f7e7787bd2dd3cd5db1d14e90ee xf86-video-nouveau-1.0.11.tar.bz2
+3ec5d839d0591f1c8525b661dc195b873bd9a992ce10000afeebdec37849b19a14e4230f4230286efa7753e5c5b86968e7a560268ca55af5d70b9f37e929be75 git.patch"