PKGBUILD 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Maintainer (Arch): Jan de Groot <jgc@archlinux.org>
  2. # Maintainer (Arch): Andreas Radke <andyrtr@archlinux.org>
  3. # Maintainer (Hyperbola): André Silva <emulatorman@hyperbola.info>
  4. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  5. pkgname='mesa-demos'
  6. pkgver=8.4.0
  7. pkgrel=2
  8. pkgrel+=.parabola1
  9. arch=('x86_64')
  10. arch+=('i686' 'armv7h')
  11. pkgdesc="Mesa demos and tools incl. glxinfo + glxgears"
  12. pkgdesc+=", without nonfree demos"
  13. url="https://www.mesa3d.org/"
  14. license=('custom')
  15. replaces=('mesa-demos-libre')
  16. conflicts=('mesa-demos-libre')
  17. depends=('libgl' 'glew' 'freeglut')
  18. makedepends=('mesa' 'freetype2' 'git')
  19. mksource=(https://mesa.freedesktop.org/archive/demos/mesa-demos-$pkgver.tar.bz2{,.sig})
  20. source=("https://repo.parabola.nu/other/mesa-demos-libre/mesa-demos-libre-${pkgver}.tar.bz2"
  21. 'LICENSE'
  22. 'libre.patch')
  23. mksha512sums=('b72d03cad36e0535ff18dcfb222ec4200064b9264f6da51a6e5f03b0dd912abe188bc1d600b6698de3ce6f63b28d2ce01565886ca8e7079edc4967fbf2fb0957'
  24. 'SKIP')
  25. sha512sums=('0f8c5463ea564c21df34cba64e911d435012bcc36f13eeba6d89c02ef514e19330d10f36348fec63add011b60b75e0ad6ad277e72d55c029ae1999906d71d607'
  26. '25da77914dded10c1f432ebcbf29941124138824ceecaf1367b3deedafaecabc082d463abcfa3d15abff59f177491472b505bcb5ba0c4a51bb6b93b4721a23c2'
  27. 'f4fe1f087554af180962a32df4d8ba4616db292ff82bccf4930115616290e59c15364bac75fb4b9fd82b642be2c9e760dc9bcb27c58a4ea6239382105b4383de')
  28. validpgpkeys=('E390B9700582FAEA959ACAD41EEF53D38A3A9C67') # "Andreas Boll <andreas.boll.dev@gmail.com>"
  29. mksource() {
  30. cd mesa-demos-$pkgver
  31. # remove nonfree demos (pointblast and spriteblast)
  32. rm -v src/demos/{pointblast,spriteblast}.c
  33. }
  34. prepare() {
  35. cd mesa-demos-$pkgver
  36. # remove nonfree demos references (pointblast and spriteblast)
  37. patch -Np1 -i ../libre.patch
  38. }
  39. build() {
  40. cd mesa-demos-$pkgver
  41. ./configure --prefix=/usr \
  42. --disable-gles1 \
  43. --with-system-data-files=/usr/share/mesa-demos
  44. make
  45. }
  46. package() {
  47. cd mesa-demos-$pkgver
  48. make DESTDIR="${pkgdir}" install
  49. # add missing egl files
  50. install -m 0755 src/egl/opengl/{eglgears_x11,eglinfo,eglkms,egltri_x11,peglgears,xeglgears,xeglthreads} "${pkgdir}/usr/bin"
  51. install -m755 -d "${pkgdir}/usr/share/licenses/mesa-demos"
  52. install -m755 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/mesa-demos/"
  53. }