summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@adinet.com.uy>2012-09-05 14:33:22 -0300
committerMárcio Alexandre Silva Delgado <coadde@adinet.com.uy>2012-09-05 14:33:22 -0300
commiteb36c31c7170231d486bf21e714ce1e55cd49a6f (patch)
tree303e6994991e29a914f08375419309abd3767049
parent178b7c2aa64b59749d8f3fb78786305eeafe8408 (diff)
downloadabslibre-eb36c31c7170231d486bf21e714ce1e55cd49a6f.tar.gz
abslibre-eb36c31c7170231d486bf21e714ce1e55cd49a6f.tar.bz2
abslibre-eb36c31c7170231d486bf21e714ce1e55cd49a6f.zip
glproto-git: add package to pcr
-rw-r--r--pcr/glproto-git/PKGBUILD63
1 files changed, 63 insertions, 0 deletions
diff --git a/pcr/glproto-git/PKGBUILD b/pcr/glproto-git/PKGBUILD
new file mode 100644
index 000000000..fed5caa70
--- /dev/null
+++ b/pcr/glproto-git/PKGBUILD
@@ -0,0 +1,63 @@
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+# Contributor: Alexander Baldeck <alexander@archlinux.org>
+# Maintainer: kfgz <kfgz at interia pl>
+# Contributor: Cilyan Olowen <gaknar at gmail dot com>
+# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
+
+pkgname=glproto-git
+pkgver=20120905
+pkgrel=1
+pkgdesc='X11 OpenGL extension wire protocol'
+arch=(
+ i686
+ x86_64
+ mips64el
+)
+url=http://xorg.freedesktop.org/
+license=(
+ custom
+)
+provides=(
+ ${pkgname%-git}
+ glproto=1.4.15
+)
+makedepends=(
+ git
+ 'xorg-util-macros>=1.2'
+)
+conflicts=(
+ ${pkgname%-git}
+)
+
+_gitroot=git://git.freedesktop.org/git/xorg/proto/${pkgname%-git}
+_gitname=${pkgname%-git}
+
+build() {
+ cd $srcdir
+ msg 'Connecting to git.freedesktop.org GIT server....'
+
+ if [ -d $srcdir/$_gitname ] ; then
+ cd $_gitname && git pull origin
+ msg 'The local files are updated.'
+ else
+ git clone $_gitroot
+ fi
+
+ msg 'GIT checkout done or server timeout'
+
+ msg 'Creating build directory'
+ if [ -d $srcdir/$_gitname-build ]; then rm -rf $srcdir/$_gitname-build; fi
+ cp -R $srcdir/$_gitname $srcdir/$_gitname-build
+
+ msg 'Starting make...'
+ cd $srcdir/$_gitname-build
+ ./autogen.sh --prefix=/usr
+ 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}
+}