summaryrefslogtreecommitdiff
path: root/libre/lib32-mesa-demos-libre/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-09-25 11:18:43 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-09-25 11:18:43 -0300
commit4949c3ac058a38d9f873271d67589d43d76e4e53 (patch)
tree97c999ddf50ba70a74b7fea5c67b0181023a1925 /libre/lib32-mesa-demos-libre/PKGBUILD
parentda5e8d15fb9b67dec97d7f640cc10ac3b01dc5a8 (diff)
downloadabslibre-4949c3ac058a38d9f873271d67589d43d76e4e53.tar.gz
abslibre-4949c3ac058a38d9f873271d67589d43d76e4e53.tar.bz2
abslibre-4949c3ac058a38d9f873271d67589d43d76e4e53.zip
lib32-mesa-demos-libre: adding new package to add [libre] repo
Diffstat (limited to 'libre/lib32-mesa-demos-libre/PKGBUILD')
-rw-r--r--libre/lib32-mesa-demos-libre/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/libre/lib32-mesa-demos-libre/PKGBUILD b/libre/lib32-mesa-demos-libre/PKGBUILD
new file mode 100644
index 000000000..30b3e19c5
--- /dev/null
+++ b/libre/lib32-mesa-demos-libre/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 94667 2010-10-09 11:21:35Z andyrtr $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
+
+_pkgbasename=mesa-demos-libre
+pkgname=lib32-$_pkgbasename
+pkgver=8.0.1
+pkgrel=2
+arch=(x86_64)
+pkgdesc="Mesa demos and tools (32-bit), libre"
+url="http://mesa3d.sourceforge.net"
+license=('custom')
+depends=('lib32-glew>=1.5.6' mesa-demos)
+provides=("lib32-mesa-demos=$pkgver")
+replaces=('lib32-mesa-demos')
+conflicts=('lib32-mesa-demos')
+makedepends=(gcc-multilib)
+source=(ftp://ftp.freedesktop.org/pub/mesa/demos/${pkgver}/mesa-demos-${pkgver}.tar.bz2)
+md5sums=('320c2a4b6edc6faba35d9cb1e2a30bf4')
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd "${srcdir}/mesa-demos-${pkgver}"
+ patch -Np1 -i "${srcdir}/mesa-demos-libre.patch"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/mesa-demos-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ for i in "$pkgdir/usr/bin/"*; do
+ mv "$i" "$i"32
+ done
+
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s mesa-demos "$pkgdir/usr/share/licenses/lib32-mesa-demos"
+}