diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-09-02 23:29:21 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-09-02 23:29:21 -0300 |
commit | e19513e92d38a19ce1d1d11f4e1c488a2a551e72 (patch) | |
tree | f594d2b8c3b1b659ff9731149717409a6edd9e0c /libre-multilib/lib32-mesa-demos/PKGBUILD | |
parent | 10abf269ca1c3eda8334e515cc7d3f0f92c999dd (diff) | |
parent | 4cbcea3c1078e754ad555410d2fad0d3ed0e3bd3 (diff) | |
download | abslibre-e19513e92d38a19ce1d1d11f4e1c488a2a551e72.tar.gz abslibre-e19513e92d38a19ce1d1d11f4e1c488a2a551e72.tar.bz2 abslibre-e19513e92d38a19ce1d1d11f4e1c488a2a551e72.zip |
Merge branch 'master' of ssh://lukeshu.com:1863/srv/git/mirror/parabola/abslibre
Diffstat (limited to 'libre-multilib/lib32-mesa-demos/PKGBUILD')
-rw-r--r-- | libre-multilib/lib32-mesa-demos/PKGBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/libre-multilib/lib32-mesa-demos/PKGBUILD b/libre-multilib/lib32-mesa-demos/PKGBUILD new file mode 100644 index 000000000..07230a3d7 --- /dev/null +++ b/libre-multilib/lib32-mesa-demos/PKGBUILD @@ -0,0 +1,54 @@ +# $Id: PKGBUILD 117596 2014-08-19 02:28:18Z fyan $ +# Maintainer (Arch): Jan de Groot <jgc@archlinux.org> +# Maintainer (Arch): Andreas Radke <andyrtr@archlinux.org> +# Maintainer: André Silva <emulatorman@parabola.nu> + +_pkgbasename=mesa-demos +pkgname=lib32-$_pkgbasename +pkgver=8.2.0 +pkgrel=2.parabola1 +arch=(x86_64) +pkgdesc="Mesa demos and tools (32-bit), without nonfree demos" +url="http://mesa3d.sourceforge.net" +license=('custom') +replaces=('lib32-mesa-demos-libre') +conflicts=('lib32-mesa-demos-libre') +depends=('lib32-libgl' 'lib32-glew' 'mesa-demos') +makedepends=(gcc-multilib 'lib32-mesa' 'lib32-glew') +source=(https://repo.parabolagnulinux.org/other/mesa-demos-libre/mesa-demos-libre-${pkgver}.tar.bz2 + libre.patch) +md5sums=('67cd419bd5bbaa6436ad98a703d30441' + 'e986d07f36931e895bdbd9c83ed260c8') + +prepare() { + cd "${srcdir}/mesa-demos-${pkgver}" + # remove nonfree demos references (pointblast and spriteblast) + patch -Np1 -i ../libre.patch +} + +build() { + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + cd "${srcdir}/mesa-demos-${pkgver}" + ./configure --prefix=/usr + + make +} + +package() { + depends=('lib32-glew' mesa-demos) + + cd "${srcdir}/mesa-demos-${pkgver}" + make DESTDIR="${pkgdir}" install + + for i in "$pkgdir/usr/bin/"*; do + mv "$i" "$i"32 + done + + rm -r "$pkgdir/usr/share/mesa-demos" + + mkdir -p "$pkgdir/usr/share/licenses" + ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname" +} |