[arch-commits] Commit in ffnvcodec-headers (3 files)

Maxime Gauduin alucryd at archlinux.org
Sun May 13 09:33:02 UTC 2018


    Date: Sunday, May 13, 2018 @ 09:33:01
  Author: alucryd
Revision: 324146

archrelease: copy trunk to extra-any

Added:
  ffnvcodec-headers/repos/
  ffnvcodec-headers/repos/extra-any/
  ffnvcodec-headers/repos/extra-any/PKGBUILD
    (from rev 324145, ffnvcodec-headers/trunk/PKGBUILD)

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Copied: ffnvcodec-headers/repos/extra-any/PKGBUILD (from rev 324145, ffnvcodec-headers/trunk/PKGBUILD)
===================================================================
--- repos/extra-any/PKGBUILD	                        (rev 0)
+++ repos/extra-any/PKGBUILD	2018-05-13 09:33:01 UTC (rev 324146)
@@ -0,0 +1,30 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Daniel Bermond < yahoo-com: danielbermond >
+
+pkgname=ffnvcodec-headers
+pkgver=8.1.24.2
+pkgrel=2
+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')
+source=("https://github.com/FFmpeg/nv-codec-headers/releases/download/n${pkgver}/nv-codec-headers-${pkgver}.tar.gz")
+sha256sums=('2b339b2493f5b63b285dd660be05102af7d4ff2de9fcf3af94e48b5f91a3ca57')
+
+build() {
+  cd nv-codec-headers-n${pkgver}
+
+  make PREFIX='/usr'
+  sed -n '4,25p' include/ffnvcodec/nvEncodeAPI.h > LICENSE # Extract license
+  sed -i '1,22s/^.\{,3\}//' LICENSE # Delete C comments
+}
+
+package() {
+  cd nv-codec-headers-n${pkgver}
+
+  make PREFIX='/usr' DESTDIR="${pkgdir}" install
+  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/ffnvcodec-headers/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list