diff options
Diffstat (limited to 'pcr/glproto-git')
-rw-r--r-- | pcr/glproto-git/PKGBUILD | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/pcr/glproto-git/PKGBUILD b/pcr/glproto-git/PKGBUILD index fed5caa70..0ff8f2840 100644 --- a/pcr/glproto-git/PKGBUILD +++ b/pcr/glproto-git/PKGBUILD @@ -4,8 +4,10 @@ # Contributor: Cilyan Olowen <gaknar at gmail dot com> # Maintainer (Parabola): Márcio Silva <coadde@lavabit.com> +pkgbase=glproto pkgname=glproto-git -pkgver=20120905 +pkgver=$(LC_ALL=C date -u +%Y%m%d) +_pkgver=1.4.16 pkgrel=1 pkgdesc='X11 OpenGL extension wire protocol' arch=( @@ -14,23 +16,19 @@ arch=( mips64el ) url=http://xorg.freedesktop.org/ -license=( - custom -) +license=custom provides=( - ${pkgname%-git} - glproto=1.4.15 + $pkgbase + "$pkgbase=$_pkgver" ) +conflicts=$pkgbase makedepends=( git 'xorg-util-macros>=1.2' ) -conflicts=( - ${pkgname%-git} -) -_gitroot=git://git.freedesktop.org/git/xorg/proto/${pkgname%-git} -_gitname=${pkgname%-git} +_gitroot=git://git.freedesktop.org/git/xorg/proto/$pkgbase +_gitname=$pkgbase build() { cd $srcdir @@ -51,13 +49,13 @@ build() { msg 'Starting make...' cd $srcdir/$_gitname-build - ./autogen.sh --prefix=/usr - make + setarch $CARCH ./autogen.sh --prefix=/usr + setarch $CARCH make } package() { cd $srcdir/$_gitname-build - make DESTDIR=$pkgdir install - install -m755 -d $pkgdir/usr/share/licenses/${pkgname%-git} - install -m644 COPYING $pkgdir/usr/share/licenses/${pkgname%-git} + setarch $CARCH make DESTDIR=$pkgdir install + install -m755 -d $pkgdir/usr/share/licenses/$pkgbase + install -m644 COPYING $pkgdir/usr/share/licenses/$pkgbase } |