summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@adinet.com.uy>2012-09-08 15:58:33 -0300
committerMárcio Alexandre Silva Delgado <coadde@adinet.com.uy>2012-09-08 15:58:33 -0300
commit6ee05bdc661aa7da4f6b8b520ad46ad216e0c33b (patch)
treefe074557bd3609ce694c23c51e59b05339d548d6
parent1dc4e85ae5edb9ad6989e6036ce0526db4d6ea20 (diff)
downloadabslibre-6ee05bdc661aa7da4f6b8b520ad46ad216e0c33b.tar.gz
abslibre-6ee05bdc661aa7da4f6b8b520ad46ad216e0c33b.tar.bz2
abslibre-6ee05bdc661aa7da4f6b8b520ad46ad216e0c33b.zip
libglu-git: add package to pcr (needed for mesa-git)
-rw-r--r--pcr/libglu-git/PKGBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/pcr/libglu-git/PKGBUILD b/pcr/libglu-git/PKGBUILD
new file mode 100644
index 000000000..46ff7a358
--- /dev/null
+++ b/pcr/libglu-git/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Márcio Silva <coadde@lavabit.com>
+
+pkgname=libglu-git
+pkgver=20120908
+pkgrel=1
+pkgdesc='Mesa GLU utility library'
+arch=(
+ i686
+ x86_64
+ mips64el
+)
+url=http://mesa.freedesktop.org/
+license=(
+ LGPL
+)
+depends=(
+ libgl-git
+)
+makedepends=(
+ git
+ mesa-git
+)
+
+_gitroot=git://cgit.freedesktop.org/mesa/glu/
+_gitname=glu
+
+build() {
+ msg 'Connecting to git.freedesktop.org GIT server....'
+ if [ -d $_gitname ] ; then
+ cd $_gitname && git pull origin
+ else
+ git clone $_gitroot --depth 1
+ fi
+ msg 'GIT checkout done or server timeout'
+ msg 'Starting make...'
+
+ cd $srcdir
+
+ # Cleanup and prepare the build dir
+ [ -d build ] && rm -rf build
+ cp -r $_gitname build
+ cd build
+
+ autoreconf -vfi
+ ./autogen.sh --prefix=/usr
+ make V=0
+}
+
+package() {
+ cd $srcdir/build
+ make DESTDIR=$pkgdir install
+}