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

Maxime Gauduin alucryd at archlinux.org
Mon May 11 16:42:39 UTC 2020


    Date: Monday, May 11, 2020 @ 16:42:38
  Author: alucryd
Revision: 626271

upgpkg: vdpauinfo 1.4-1

Modified:
  vdpauinfo/trunk/PKGBUILD

----------+
 PKGBUILD |   33 ++++++++++++++++++++-------------
 1 file changed, 20 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-11 16:40:40 UTC (rev 626270)
+++ PKGBUILD	2020-05-11 16:42:38 UTC (rev 626271)
@@ -4,11 +4,11 @@
 # Contributor: Bart Verhoeven <bartverhoeven at live.com>
 
 pkgname=vdpauinfo
-pkgver=1.3
+pkgver=1.4
 pkgrel=1
 pkgdesc='Command line utility for querying the capabilities of a VDPAU device'
 arch=(x86_64)
-url=https://cgit.freedesktop.org/~aplattner/vdpauinfo
+url=https://gitlab.freedesktop.org/vdpau/vdpauinfo
 license=(custom)
 depends=(
   gcc-libs
@@ -15,16 +15,25 @@
   libvdpau
   libx11
 )
-source=(
-  https://gitlab.freedesktop.org/vdpau/vdpauinfo/uploads/6fa9718c507ef0fb6966170ef55344bf/vdpauinfo-1.3.tar.gz
-  https://gitlab.freedesktop.org/vdpau/vdpauinfo/uploads/6acac6b91cf1d960939c50e25dd4c28d/vdpauinfo-1.3.tar.gz.gpg
-)
+makedepends=(git)
+source=(git+https://gitlab.freedesktop.org/vdpau/vdpauinfo.git#tag=3463ab40a89179e6e199575e8bee9c23ee027377)
 validpgpkeys=(BD68A042C603DDAD9AA354B0F56ACC8F09BA9635) # Aaron Plattner <aplattner at nvidia.com>
-sha256sums=('cfc470758ae6874adabdf5bad0b5bab1c2135c86a73bab9f0acd336f9b6ad268'
-            '2e1d1a81a5ac0e7520ff877ee4a168d3e26dee6cda60f224ac3a516f16ae7d01')
+sha256sums=(SKIP)
 
+pkgver() {
+  cd vdpauinfo
+
+  git describe --tags
+}
+
+prepare() {
+  cd vdpauinfo
+
+  autoreconf -fiv
+}
+
 build() {
-  cd vdpauinfo-${pkgver}
+  cd vdpauinfo
 
   ./configure \
     --prefix=/usr
@@ -32,10 +41,8 @@
 }
 
 package() {
-  cd vdpauinfo-${pkgver}
-
-  make DESTDIR="${pkgdir}" install
-  install -D -m644 ../vdpauinfo-${pkgver}/COPYING "$pkgdir"/usr/share/licenses/vdpauinfo/license
+  make DESTDIR="${pkgdir}" -C vdpauinfo install
+  install -Dm 644 vdpauinfo/COPYING -t "$pkgdir"/usr/share/licenses/vdpauinfo/
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list