[arch-commits] Commit in ffnvcodec-headers8.1/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Mon Apr 13 12:52:35 UTC 2020


    Date: Monday, April 13, 2020 @ 12:52:33
  Author: alucryd
Revision: 613637

upgpkg: ffnvcodec-headers8.1 8.1.24.11-1

Modified:
  ffnvcodec-headers8.1/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-13 12:50:44 UTC (rev 613636)
+++ PKGBUILD	2020-04-13 12:52:33 UTC (rev 613637)
@@ -2,7 +2,7 @@
 # Contributor: Daniel Bermond <danielbermond at yahoo.com>
 
 pkgname=ffnvcodec-headers8.1
-pkgver=8.1.24.9
+pkgver=8.1.24.11
 pkgrel=1
 pkgdesc='FFmpeg version of headers required to interface with Nvidias codec APIs'
 arch=(any)
@@ -10,12 +10,20 @@
 license=(MIT)
 makedepends=(git)
 source=(
-  git+https://git.videolan.org/git/ffmpeg/nv-codec-headers.git#tag=n${pkgver}
+  git+https://git.videolan.org/git/ffmpeg/nv-codec-headers.git#tag=0cd5c2b7c30d580d09348c92d8facd7a39957f01
   ffnvcodec-install.patch
 )
-sha256sums=('SKIP'
-            '248dc04818d010c470a2dc4436bd4091f6e2ef3e09d1b3fcb4d52ed08cd7809b')
+sha256sums=(
+  SKIP
+  248dc04818d010c470a2dc4436bd4091f6e2ef3e09d1b3fcb4d52ed08cd7809b
+)
 
+pkgver() {
+  cd nv-codec-headers
+
+  git describe --tags | sed 's/^n//'
+}
+
 prepare() {
   cd nv-codec-headers
 
@@ -23,13 +31,13 @@
 }
 
 build() {
-  make PREFIX='/usr' -C nv-codec-headers
+  make PREFIX=/usr -C nv-codec-headers
   sed -n '4,25p' nv-codec-headers/include/ffnvcodec/nvEncodeAPI.h > LICENSE # Extract license
   sed -i '1,22s/^.\{,3\}//' LICENSE # Delete C comments
 }
 
 package() {
-  make PREFIX='/usr' DESTDIR="${pkgdir}" -C nv-codec-headers install
+  make PREFIX=/usr DESTDIR="${pkgdir}" -C nv-codec-headers install
   install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/ffnvcodec-headers8.1/
 }
 



More information about the arch-commits mailing list