[arch-commits] Commit in ffnvcodec-headers8.1 (5 files)

Maxime Gauduin alucryd at archlinux.org
Tue Apr 30 09:52:21 UTC 2019


    Date: Tuesday, April 30, 2019 @ 09:52:20
  Author: alucryd
Revision: 456715

archrelease: copy trunk to community-any

Added:
  ffnvcodec-headers8.1/repos/
  ffnvcodec-headers8.1/repos/community-any/
  ffnvcodec-headers8.1/repos/community-any/.SRCINFO
    (from rev 456714, ffnvcodec-headers8.1/trunk/.SRCINFO)
  ffnvcodec-headers8.1/repos/community-any/PKGBUILD
    (from rev 456714, ffnvcodec-headers8.1/trunk/PKGBUILD)
  ffnvcodec-headers8.1/repos/community-any/ffnvcodec-install.patch
    (from rev 456714, ffnvcodec-headers8.1/trunk/ffnvcodec-install.patch)

-------------------------+
 .SRCINFO                |   13 +++++++++++++
 PKGBUILD                |   36 ++++++++++++++++++++++++++++++++++++
 ffnvcodec-install.patch |   32 ++++++++++++++++++++++++++++++++
 3 files changed, 81 insertions(+)

Copied: ffnvcodec-headers8.1/repos/community-any/.SRCINFO (from rev 456714, ffnvcodec-headers8.1/trunk/.SRCINFO)
===================================================================
--- repos/community-any/.SRCINFO	                        (rev 0)
+++ repos/community-any/.SRCINFO	2019-04-30 09:52:20 UTC (rev 456715)
@@ -0,0 +1,13 @@
+pkgbase = ffnvcodec-headers
+	pkgdesc = FFmpeg version of headers required to interface with Nvidias codec APIs
+	pkgver = 9.0.18.1
+	pkgrel = 1
+	url = https://git.videolan.org/?p=ffmpeg/nv-codec-headers.git
+	arch = any
+	license = MIT
+	makedepends = git
+	source = git+https://git.videolan.org/git/ffmpeg/nv-codec-headers.git#tag=n9.0.18.1
+	sha256sums = SKIP
+
+pkgname = ffnvcodec-headers
+

Copied: ffnvcodec-headers8.1/repos/community-any/PKGBUILD (from rev 456714, ffnvcodec-headers8.1/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD	                        (rev 0)
+++ repos/community-any/PKGBUILD	2019-04-30 09:52:20 UTC (rev 456715)
@@ -0,0 +1,36 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Daniel Bermond <danielbermond at yahoo.com>
+
+pkgname=ffnvcodec-headers8.1
+pkgver=8.1.24.9
+pkgrel=1
+pkgdesc='FFmpeg version of headers required to interface with Nvidias codec APIs'
+arch=(any)
+url=https://git.videolan.org/?p=ffmpeg/nv-codec-headers.git
+license=(MIT)
+makedepends=(git)
+source=(
+  git+https://git.videolan.org/git/ffmpeg/nv-codec-headers.git#tag=n${pkgver}
+  ffnvcodec-install.patch
+)
+sha256sums=('SKIP'
+            '248dc04818d010c470a2dc4436bd4091f6e2ef3e09d1b3fcb4d52ed08cd7809b')
+
+prepare() {
+  cd nv-codec-headers
+
+  patch -Np1 -i ../ffnvcodec-install.patch
+}
+
+build() {
+  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
+  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/ffnvcodec-headers8.1/
+}
+
+# vim: ts=2 sw=2 et:

Copied: ffnvcodec-headers8.1/repos/community-any/ffnvcodec-install.patch (from rev 456714, ffnvcodec-headers8.1/trunk/ffnvcodec-install.patch)
===================================================================
--- repos/community-any/ffnvcodec-install.patch	                        (rev 0)
+++ repos/community-any/ffnvcodec-install.patch	2019-04-30 09:52:20 UTC (rev 456715)
@@ -0,0 +1,32 @@
+diff -rupN nv-codec-headers.orig/ffnvcodec.pc.in nv-codec-headers/ffnvcodec.pc.in
+--- nv-codec-headers.orig/ffnvcodec.pc.in	2019-04-30 11:44:46.313950977 +0200
++++ nv-codec-headers/ffnvcodec.pc.in	2019-04-30 11:47:35.311985459 +0200
+@@ -1,5 +1,5 @@
+ prefix=@@PREFIX@@
+-includedir=${prefix}/include
++includedir=${prefix}/include/ffnvcodec8.1
+ 
+ Name: ffnvcodec
+ Description: FFmpeg version of Nvidia Codec SDK headers
+diff -rupN nv-codec-headers.orig/Makefile nv-codec-headers/Makefile
+--- nv-codec-headers.orig/Makefile	2019-04-30 11:44:46.313950977 +0200
++++ nv-codec-headers/Makefile	2019-04-30 11:48:37.275820562 +0200
+@@ -11,13 +11,13 @@ else
+ endif
+ 
+ install: all
+-	$(INSTALL) -m 0755 -d '$(DESTDIR)$(PREFIX)/include/ffnvcodec'
+-	$(INSTALL) -m 0644 include/ffnvcodec/*.h '$(DESTDIR)$(PREFIX)/include/ffnvcodec'
+-	$(INSTALL) -m 0755 -d '$(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig'
+-	$(INSTALL) -m 0644 ffnvcodec.pc '$(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig'
++	$(INSTALL) -m 0755 -d '$(DESTDIR)$(PREFIX)/include/ffnvcodec8.1/ffnvcodec'
++	$(INSTALL) -m 0644 include/ffnvcodec/*.h '$(DESTDIR)$(PREFIX)/include/ffnvcodec8.1/ffnvcodec'
++	$(INSTALL) -m 0755 -d '$(DESTDIR)$(PREFIX)/$(LIBDIR)/ffnvcodec8.1/pkgconfig'
++	$(INSTALL) -m 0644 ffnvcodec.pc '$(DESTDIR)$(PREFIX)/$(LIBDIR)/ffnvcodec8.1/pkgconfig'
+ 
+ uninstall:
+-	rm -rf '$(DESTDIR)$(PREFIX)/include/ffnvcodec' '$(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig/ffnvcodec.pc'
++	rm -rf '$(DESTDIR)$(PREFIX)/include/ffnvcodec8.1' '$(DESTDIR)$(PREFIX)/$(LIBDIR)/ffnvcodec8.1/pkgconfig/ffnvcodec.pc'
+ 
+ .PHONY: all install uninstall
+ 


More information about the arch-commits mailing list