diff options
author | Alexey Andreyev | 2018-06-02 15:02:42 +0300 |
---|---|---|
committer | Alexey Andreyev | 2018-06-02 15:02:42 +0300 |
commit | 3b6d51b3fa16cf96ef61a980abb1fa08de3b445f (patch) | |
tree | dad28b0057a6af50293a6a36082a7946182e8563 | |
download | aur-3b6d51b3fa16cf96ef61a980abb1fa08de3b445f.tar.gz |
initial
-rw-r--r-- | .SRCINFO | 47 | ||||
-rw-r--r-- | PKGBUILD | 80 |
2 files changed, 127 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cb075d234e17 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,47 @@ +pkgbase = mesa-grate-git + pkgdesc = An open-source implementation of the OpenGL specification. NVidia Tegra 2 grate git + pkgver = r100834.e84d295e03 + pkgrel = 1 + url = https://www.mesa3d.org/ + arch = armv7h + license = custom + makedepends = python2-mako + makedepends = libxml2 + makedepends = libx11 + makedepends = glproto + makedepends = libdrm-grate-git + makedepends = dri2proto + makedepends = dri3proto + makedepends = presentproto + makedepends = libxshmfence + makedepends = libxxf86vm + makedepends = libxdamage + makedepends = wayland + makedepends = wayland-protocols + makedepends = elfutils + makedepends = llvm + makedepends = libomxil-bellagio + makedepends = clang + makedepends = libglvnd + makedepends = lm_sensors + makedepends = meson + makedepends = libvdpau-tegra-git + provides = mesa + provides = opengl-driver + provides = mesa-dri + provides = libglvnd + provides = libgl + provides = libegl + provides = libgles + conflicts = mesa + conflicts = opengl-driver + conflicts = mesa-dri + conflicts = libglvnd + conflicts = libgl + conflicts = libegl + conflicts = libgles + source = git://github.com/grate-driver/mesa.git + sha512sums = SKIP + +pkgname = mesa-grate-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..46fbe1548b13 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,80 @@ +# Maintainer : Alexey Andreyev <aa13q@ya.ru> + +_realname=mesa +pkgname=('mesa-grate-git') +pkgdesc="An open-source implementation of the OpenGL specification. NVidia Tegra 2 grate git" +pkgver=r100834.e84d295e03 +pkgrel=1 +arch=('armv7h') +makedepends=('python2-mako' 'libxml2' 'libx11' 'glproto' 'libdrm-grate-git' 'dri2proto' 'dri3proto' 'presentproto' + 'libxshmfence' 'libxxf86vm' 'libxdamage' 'wayland' 'wayland-protocols' + 'elfutils' 'llvm' 'libomxil-bellagio' 'clang' 'libglvnd' 'lm_sensors' 'meson' 'libvdpau-tegra-git') +url="https://www.mesa3d.org/" +license=('custom') +source=('git://github.com/grate-driver/mesa.git') +sha512sums=('SKIP') +provides=('mesa' 'opengl-driver' 'mesa-dri' 'libglvnd' 'libgl' 'libegl' 'libgles') +conflicts=('mesa' 'opengl-driver' 'mesa-dri' 'libglvnd' 'libgl' 'libegl' 'libgles') + + +pkgver() { + cd "${srcdir}/${_realname}" + ( set -o pipefail + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) 2>/dev/null +} + +prepare() { + cd "${srcdir}/$_realname" + NOCONFIGURE=1 ./autogen.sh +} + +check() { + cd "${srcdir}/$_realname" + make check +} + +build() { + cd "${srcdir}/${_realname}" + ./configure --prefix=/usr \ + --enable-dri \ + --enable-glx \ + --enable-shared-glapi \ + --enable-texture-float \ + --disable-nine \ + --enable-debug \ + --enable-dri3 \ + --enable-egl \ + --enable-gbm \ + --enable-gles1 \ + --enable-gles2 \ + --enable-glx-tls \ + --enable-valgrind=auto \ + --enable-llvm-shared-libs \ + --with-dri-drivers=swrast \ + --with-gallium-drivers=swrast,grate \ + --with-vulkan-drivers=no \ + --with-platforms=x11,drm \ + --disable-nine \ + --disable-llvm \ + --disable-omx-bellagio \ + --disable-va \ + --disable-vdpau \ + --disable-xa \ + --disable-xvmc \ + --disable-gallium-osmesa \ + --disable-libunwind # https://github.com/grate-driver/mesa/issues/6#issuecomment-393329241 + make +} + + +package() { + cd "${srcdir}/${_realname}" + DESTDIR="$pkgdir" make install + cd "${pkgdir}" + mkdir -p usr/lib/arm-linux-gnueabihf/dri/ + mkdir -p usr/lib/arm-linux-gnueabihf/dri/ + # https://github.com/grate-driver/mesa/issues/6#issuecomment-393177315 + ln -s usr/lib/arm-linux-gnueabihf/dri/grate_dri.so usr/lib/arm-linux-gnueabihf/dri/tegra_dri.so +} |