[arch-commits] Commit in lib32-libglvnd/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Nov 9 09:03:37 UTC 2017


    Date: Thursday, November 9, 2017 @ 09:03:36
  Author: felixonmars
Revision: 265816

upgpkg: lib32-libglvnd 1.0.0-1

Modified:
  lib32-libglvnd/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-09 09:03:14 UTC (rev 265815)
+++ PKGBUILD	2017-11-09 09:03:36 UTC (rev 265816)
@@ -2,18 +2,16 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=lib32-libglvnd
-pkgver=0.2.999+g4ba53457
-_commit=4ba5345742d6c98b528ac28fb7127006d2cc3f75
-pkgrel=2
+pkgver=1.0.0
+pkgrel=1
 pkgdesc="The GL Vendor-Neutral Dispatch library"
 arch=('x86_64')
 url="https://github.com/NVIDIA/libglvnd"
 license=('custom:BSD-like')
-makedepends=('lib32-libx11' 'lib32-libxext' 'glproto' 'git' 'python')
+makedepends=('lib32-libx11' 'lib32-libxext' 'glproto' 'python')
 provides=('lib32-libgl' 'lib32-libegl' 'lib32-libgles')
-#source=("git+https://github.com/NVIDIA/libglvnd.git#tag=v$pkgver"
-source=("git+https://github.com/NVIDIA/libglvnd.git#commit=$_commit")
-sha1sums=('SKIP')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/NVIDIA/libglvnd/archive/v$pkgver.tar.gz")
+sha512sums=('c6040b0a508a6b74d7113f8e375fcaf93ec6f2875504953f30e2882e58e22f954bd4027a7d9ab8ac41abef266039e5834fdaf4ce2a69d5d98acf3bbdd54f04b6')
 
 build() {
   export CC='gcc -m32'
@@ -20,7 +18,7 @@
   export CXX='g++ -m32'
   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
 
-  cd libglvnd
+  cd libglvnd-$pkgver
   ./autogen.sh
   ./configure --prefix=/usr --libdir=/usr/lib32/ --build=i686-unknown-linux-gnu
   make
@@ -29,11 +27,12 @@
 package() {
   # lib32-libglvnd needs lib32-mesa for indirect rendering
   depends=('lib32-libxext' 'libglvnd' 'lib32-mesa' 'lib32-opengl-driver')
-  cd libglvnd
-  make DESTDIR="${pkgdir}" install
 
-  rm -r "$pkgdir/usr/include"
+  cd libglvnd-$pkgver
+  make DESTDIR="$pkgdir" install
 
-  mkdir -p "$pkgdir/usr/share/licenses"
-  ln -s libglvnd "$pkgdir/usr/share/licenses/$pkgname"
+  rm -r "$pkgdir"/usr/include
+
+  mkdir -p "$pkgdir"/usr/share/licenses
+  ln -s libglvnd "$pkgdir"/usr/share/licenses/$pkgname
 }


More information about the arch-commits mailing list