Advertisement
yochananmarqos

glmark2

Mar 19th, 2021
968
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.75 KB | None | 0 0
  1. pkgname=glmark2
  2. pkgver=2021.02
  3. pkgrel=1
  4. pkgdesc="An OpenGL 2.0 and ES 2.0 benchmark"
  5. arch=('x86_64')
  6. url="https://github.com/glmark2/glmark2"
  7. license=('GPL' 'custom')
  8. depends=('egl-wayland' 'libjpeg-turbo' 'libpng' 'libx11' 'mesa' 'systemd-libs')
  9. makedepends=('meson' 'systemd' 'wayland-protocols')
  10. source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
  11. sha256sums=('bebadb78c13aea5e88ed892e5563101ccb745b75f1dc86a8fc7229f00d78cbf1')
  12.  
  13. build() {
  14.   arch-meson "$pkgname-$pkgver" build \
  15.     -Dflavors=drm-gl,drm-glesv2,wayland-gl,wayland-glesv2,x11-gl,x11-glesv2
  16.   meson compile -C build
  17. }
  18.  
  19. package() {
  20.   DESTDIR="$pkgdir" meson install -C build
  21.  
  22.   cd "$pkgname-$pkgver"
  23.   install -Dm644 COPYING.SGI -t "$pkgdir/usr/share/licenses/$pkgname"
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement