summaryrefslogtreecommitdiff
path: root/libre/mesa-demos-libre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/mesa-demos-libre/PKGBUILD')
-rw-r--r--libre/mesa-demos-libre/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/libre/mesa-demos-libre/PKGBUILD b/libre/mesa-demos-libre/PKGBUILD
new file mode 100644
index 000000000..46f7a75e8
--- /dev/null
+++ b/libre/mesa-demos-libre/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Joseph Yaworski <jy@dervormund.info>
+
+pkgname='mesa-demos-libre'
+pkgver=8.0.1
+pkgrel=1
+arch=(i686 x86_64)
+pkgdesc="Mesa demos and tools, libre"
+url="http://mesa3d.sourceforge.net"
+license=('custom')
+depends=('glew>=1.5.6')
+provides=("mesa-demos=$pkgver")
+replaces=('mesa-demos')
+conflicts=('mesa<7.9', 'mesa-demos')
+source=(http://repo.parabolagnulinux.org/other/$pkgname-$pkgver.tar.bz2
+ mesa-demos-libre.patch
+ LICENSE)
+
+mksource() {
+
+ wget ftp://ftp.freedesktop.org/pub/mesa/demos/${pkgver}/mesa-demos-${pkgver}.tar.bz2 \
+ -O - | tar xvf -
+
+ pushd mesa-demos-$pkgver
+ patch -Np1 -i ../mesa-demos-libre.patch
+ popd
+
+ tar cjf ${pkgname}-${pkgver}.tar.bz2 mesa-demos-${pkgver}/
+
+}
+
+build() {
+ cd "${srcdir}/mesa-demos-${pkgver}"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/mesa-demos-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -m755 -d "${pkgdir}/usr/share/licenses/mesa-demos"
+ install -m755 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/mesa-demos/"
+}
+md5sums=('665a4ad12bff27ca2b655dd16554d36c'
+ '1858e95d40ac9e5e0b59753ce9e673e3'
+ '5c65a0fe315dd347e09b1f2826a1df5a')