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

Jan de Groot jgc at archlinux.org
Sat Nov 11 22:50:32 UTC 2017


    Date: Saturday, November 11, 2017 @ 22:50:31
  Author: jgc
Revision: 309570

upgpkg: libvdpau 1.1.1+3+ga21bf7a-1

Update to git snapshot, fixes FS#56175

Modified:
  libvdpau/trunk/PKGBUILD

----------+
 PKGBUILD |   37 ++++++++++++++++++++++++++-----------
 1 file changed, 26 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-11 19:58:30 UTC (rev 309569)
+++ PKGBUILD	2017-11-11 22:50:31 UTC (rev 309570)
@@ -2,27 +2,42 @@
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 
 pkgname=libvdpau
-pkgver=1.1.1
-pkgrel=2
+pkgver=1.1.1+3+ga21bf7a
+pkgrel=1
 pkgdesc="Nvidia VDPAU library"
 arch=(i686 x86_64)
-url='http://cgit.freedesktop.org/~aplattner/libvdpau'
-depends=('gcc-libs' 'libxext')
+url='https://www.freedesktop.org/wiki/Software/VDPAU/'
+depends=('libxext')
 license=('custom')
-source=(http://people.freedesktop.org/~aplattner/vdpau/${pkgname}-${pkgver}.tar.bz2{,.sig})
-makedepends=('dri2proto')
-sha256sums=('857a01932609225b9a3a5bf222b85e39b55c08787d0ad427dbd9ec033d58d736'
-            'SKIP')
-validpgpkeys=('BD68A042C603DDAD9AA354B0F56ACC8F09BA9635') # Aaron Plattner
+_commit=a21bf7aa438f5dd40d0a300a3167aa3d6f26dccc  # master
+source=("git+https://anongit.freedesktop.org/git/vdpau/libvdpau#commit=$_commit")
+makedepends=('dri2proto' git)
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^libvdpau-//;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+check() {
+  cd $pkgname
+  make check
+}
+
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${srcdir}/$pkgname"
   ./configure --prefix=/usr --sysconfdir=/etc
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${srcdir}/$pkgname"
   make DESTDIR="${pkgdir}" install
 
   install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"



More information about the arch-commits mailing list