diff options
author | pf packet | 2015-06-08 19:09:01 +0900 |
---|---|---|
committer | pf packet | 2015-06-08 19:09:01 +0900 |
commit | 19b132bd700cd54d80a045a20dc3e6f4e5289331 (patch) | |
tree | 76cc35eb6cc7998a9bade5b0a39b574c0a17ba3c /PKGBUILD | |
download | aur-19b132bd700cd54d80a045a20dc3e6f4e5289331.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6c0408c2d278 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Ryo Munakata <afpacket@gmail.com> +pkgname=glmark2-git +pkgver=r823.e1969fb +pkgrel=1 +pkgdesc="OpenGL (ES) 2.0 benchmark (X11, Wayland, DRM)" +arch=('i686' 'x86_64') +url="https://launchpad.net/glmark2" +license=('GPL3') +depends=('libjpeg-turbo' 'libpng12' 'libx11' 'libxcb' 'libgl' 'wayland') +makedepends=('git' 'python2') +conflicts=('glmark2') +provides=('glmark2') +source=("$pkgname"::'git://github.com/glmark2/glmark2.git') +md5sums=('SKIP') + +# GLMARK2 features +GM2_FLAVORS="x11-gl,x11-glesv2,wayland-gl,wayland-glesv2,drm-gl,drm-glesv2" + +pkgver() { + cd "${srcdir}/${pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${pkgname}" + python2 ./waf configure \ + --prefix=/usr \ + --with-flavors=${GM2_FLAVORS} + python2 ./waf -j4 +} + +package() { + cd "${srcdir}/${pkgname}" + DESTDIR="${pkgdir}" python2 ./waf install +} |