diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-01-30 00:04:40 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-01-30 00:04:40 -0200 |
commit | 7f584677fc99d77beced5dec9634731ef0d6805c (patch) | |
tree | 63779aa7bc407097e3ace5758551a660624322a7 /libre-multilib/lib32-mesa-demos-libre/PKGBUILD | |
parent | 7c74ceedeecf15b299328cf03f0c7bf498d60cf8 (diff) | |
download | abslibre-7f584677fc99d77beced5dec9634731ef0d6805c.tar.gz abslibre-7f584677fc99d77beced5dec9634731ef0d6805c.tar.bz2 abslibre-7f584677fc99d77beced5dec9634731ef0d6805c.zip |
move lib32-{libclc-svn,{mesa-demos,sdl}-libre} from [libre] to [libre-multilib]
Diffstat (limited to 'libre-multilib/lib32-mesa-demos-libre/PKGBUILD')
-rw-r--r-- | libre-multilib/lib32-mesa-demos-libre/PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/libre-multilib/lib32-mesa-demos-libre/PKGBUILD b/libre-multilib/lib32-mesa-demos-libre/PKGBUILD new file mode 100644 index 000000000..83557c0a9 --- /dev/null +++ b/libre-multilib/lib32-mesa-demos-libre/PKGBUILD @@ -0,0 +1,46 @@ +# $Id: PKGBUILD 94584 2013-07-27 15:01:38Z lcarlier $ +# Maintainer: Jan de Groot <jgc@archlinux.org> +# Maintainer: Andreas Radke <andyrtr@archlinux.org> +# Maintainer (Parabola): André Silva <emulatorman@parabola.nu> + +_pkgbasename=mesa-demos-libre +pkgname=lib32-$_pkgbasename +pkgver=8.1.0 +pkgrel=3 +arch=(x86_64) +pkgdesc="Mesa demos and tools (32-bit), without nonfree demos" +url="http://mesa3d.sourceforge.net" +license=('custom') +provides=("lib32-mesa-demos=$pkgver") +replaces=('lib32-mesa-demos') +conflicts=('lib32-mesa-demos') +makedepends=(gcc-multilib 'lib32-mesa' 'lib32-glew') +source=(https://repo.parabolagnulinux.org/other/mesa-demos-libre/mesa-demos-libre-${pkgver}.tar.bz2) +md5sums=('18225619a97e6900afd2b48a89dcbd4e') + +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-libre) + + 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 mesa-demos "$pkgdir/usr/share/licenses/lib32-mesa-demos" +} |