PKGBUILD 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # $Id: PKGBUILD 186203 2016-08-09 13:55:48Z lcarlier $
  2. # Maintainer (arch): Jan de Groot <jgc@archlinux.org>
  3. # Maintainer (arch): Andreas Radke <andyrtr@archlinux.org>
  4. # Contributor: André Silva <emulatorman@hyperbola.info>
  5. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  6. _pkgbasename=mesa-demos
  7. pkgname=lib32-$_pkgbasename
  8. pkgver=8.3.0
  9. pkgrel=3.parabola1
  10. arch=(x86_64)
  11. pkgdesc="Mesa demos and tools (32-bit), without nonfree demos"
  12. url="http://mesa3d.sourceforge.net"
  13. license=('custom')
  14. replaces=('lib32-mesa-demos-libre')
  15. conflicts=('lib32-mesa-demos-libre')
  16. depends=('lib32-libgl' 'lib32-glew' 'mesa-demos')
  17. makedepends=(gcc-multilib 'lib32-mesa')
  18. source=(https://repo.parabola.nu/other/mesa-demos-libre/mesa-demos-libre-${pkgver}.tar.bz2
  19. libre.patch)
  20. md5sums=('b7708b773178fa0d661a28c580e60aee'
  21. '3e5ea3684ce3a1d285df1cdfb2c61dae')
  22. prepare() {
  23. cd "${srcdir}/mesa-demos-${pkgver}"
  24. # remove nonfree demos references (pointblast and spriteblast)
  25. patch -Np1 -i ../libre.patch
  26. }
  27. build() {
  28. export CC="gcc -m32"
  29. export CXX="g++ -m32"
  30. export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  31. cd "${srcdir}/mesa-demos-${pkgver}"
  32. ./configure --prefix=/usr \
  33. --without-glut
  34. make
  35. }
  36. package() {
  37. depends=('lib32-glew' mesa-demos)
  38. cd "${srcdir}/mesa-demos-${pkgver}"
  39. make DESTDIR="${pkgdir}" install
  40. for i in "$pkgdir/usr/bin/"*; do
  41. mv "$i" "$i"32
  42. done
  43. rm -r "$pkgdir/usr/share/mesa-demos"
  44. mkdir -p "$pkgdir/usr/share/licenses"
  45. ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
  46. }