diff options
author | Chocobo1 | 2024-04-04 16:18:00 +0800 |
---|---|---|
committer | Chocobo1 | 2024-04-04 16:30:24 +0800 |
commit | 65bc53bb11f9f157c3808f9c5ffd7eaad6b1b089 (patch) | |
tree | 89455d80984cd3329868dc2c5c3a14eba1b5486f | |
parent | e6970d86978ae926fea9ff9b056105df8d48db75 (diff) | |
download | aur-libglvnd-git.tar.gz |
upgpkg: libglvnd-git 1.7.0.r10.g908086d-1
-rw-r--r-- | .SRCINFO | 36 | ||||
-rw-r--r-- | LICENSE | 26 | ||||
-rw-r--r-- | PKGBUILD | 62 |
3 files changed, 57 insertions, 67 deletions
@@ -1,28 +1,32 @@ pkgbase = libglvnd-git pkgdesc = The GL Vendor-Neutral Dispatch library - pkgver = 1.3.0.r34.g42a25c1 + pkgver = 1.7.0.r10.g908086d pkgrel = 1 - url = https://github.com/NVIDIA/libglvnd + url = https://gitlab.freedesktop.org/glvnd/libglvnd + arch = i686 arch = x86_64 - license = custom:BSD-like - makedepends = libxext + license = MIT + makedepends = git makedepends = libx11 - makedepends = xorgproto - makedepends = python makedepends = meson - makedepends = git - provides = libgl + makedepends = python + makedepends = xorgproto + depends = glibc + depends = libxext + depends = mesa + depends = opengl-driver + provides = libglvnd=1.7.0.r10.g908086d provides = libegl + provides = libgl provides = libgles - provides = libglvnd=1.3.0.r34.g42a25c1 + provides = libEGL.so + provides = libGL.so + provides = libGLdispatch.so + provides = libGLESv2.so + provides = libGLX.so + provides = libOpenGL.so conflicts = libglvnd source = git+https://gitlab.freedesktop.org/glvnd/libglvnd.git - source = LICENSE - sha512sums = SKIP - sha512sums = bf0f4a7e04220a407400f89226ecc1f798cc43035f2538cc8860e5088e1f84140baf0d4b0b28f66e4b802d4d6925769a1297c24e1ba39c1c093902b2931781a5 + sha256sums = SKIP pkgname = libglvnd-git - depends = libxext - depends = mesa - depends = opengl-driver - diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 57bc4f48f8b0..000000000000 --- a/LICENSE +++ /dev/null @@ -1,26 +0,0 @@ -Copyright (c) 2013, NVIDIA CORPORATION. - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and/or associated documentation files (the -"Materials"), to deal in the Materials without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Materials, and to -permit persons to whom the Materials are furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be included -unaltered in all copies or substantial portions of the Materials. -Any additions, deletions, or changes to the original source files -must be clearly indicated in accompanying documentation. - -If only executable code is distributed, then the accompanying -documentation must state that "this software is based in part on the -work of the Khronos Group." - -THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
\ No newline at end of file @@ -1,39 +1,51 @@ -# Maintainer: Rafał Kozdrój <kozeid2@gmail.com> -# Contributor: Felix Yan <felixonmars@archlinux.org> +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> -_pkgname=libglvnd -pkgname=$_pkgname-git -pkgver=1.3.0.r34.g42a25c1 +pkgname=libglvnd-git +pkgver=1.7.0.r10.g908086d pkgrel=1 pkgdesc="The GL Vendor-Neutral Dispatch library" -arch=('x86_64') -url="https://github.com/NVIDIA/libglvnd" -license=('custom:BSD-like') -makedepends=('libxext' 'libx11' 'xorgproto' 'python' 'meson' 'git') -provides=('libgl' 'libegl' 'libgles' "$_pkgname=$pkgver") -conflicts=("$_pkgname") -source=("git+https://gitlab.freedesktop.org/glvnd/libglvnd.git" - LICENSE) -sha512sums=('SKIP' - 'bf0f4a7e04220a407400f89226ecc1f798cc43035f2538cc8860e5088e1f84140baf0d4b0b28f66e4b802d4d6925769a1297c24e1ba39c1c093902b2931781a5') +arch=('i686' 'x86_64') +url="https://gitlab.freedesktop.org/glvnd/libglvnd" +license=('MIT') +depends=('glibc' 'libxext' 'mesa' 'opengl-driver') +makedepends=('git' 'libx11' 'meson' 'python' 'xorgproto') +provides=("libglvnd=$pkgver" 'libegl' 'libgl' 'libgles' 'libEGL.so' 'libGL.so' 'libGLdispatch.so' 'libGLESv2.so' 'libGLX.so' 'libOpenGL.so') +conflicts=('libglvnd') +source=("git+https://gitlab.freedesktop.org/glvnd/libglvnd.git") +sha256sums=('SKIP') + pkgver() { - cd $_pkgname - git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + cd "libglvnd" + + _tag=$(git tag -l --sort -v:refname | grep -E '^v?[0-9\.]+$' | head -n1) + _rev=$(git rev-list --count $_tag..HEAD) + _hash=$(git rev-parse --short HEAD) + printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//' } build() { - arch-meson $_pkgname build \ - -D gles1=false + cd "libglvnd" + + meson setup \ + --buildtype=plain \ + --prefix="/usr" \ + -Dgles1="false" \ + "_build" + meson compile -C "_build" +} + +check() { + cd "libglvnd" - ninja -C build + meson test -C "_build" } package() { - # libglvnd needs mesa for indirect rendering - depends=('libxext' 'mesa' 'opengl-driver') + cd "libglvnd" + + meson install -C "_build" --destdir "$pkgdir" - DESTDIR="$pkgdir" ninja -C build install - - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + sed -n '/Copyright (c) 2013, NVIDIA/,/DEALINGS IN THE MATERIALS./p' "README.md" > "LICENSE" + install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/libglvnd" } |