[arch-commits] Commit in ffnvcodec-headers/repos (staging-any staging-any/PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Sun Mar 6 15:44:29 UTC 2022


    Date: Sunday, March 6, 2022 @ 15:44:28
  Author: felixonmars
Revision: 439075

archrelease: copy trunk to staging-any

Added:
  ffnvcodec-headers/repos/staging-any/
  ffnvcodec-headers/repos/staging-any/PKGBUILD
    (from rev 439073, ffnvcodec-headers/trunk/PKGBUILD)

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

Copied: ffnvcodec-headers/repos/staging-any/PKGBUILD (from rev 439073, ffnvcodec-headers/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2022-03-06 15:44:28 UTC (rev 439075)
@@ -0,0 +1,33 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Daniel Bermond <danielbermond at yahoo.com>
+
+pkgname=ffnvcodec-headers
+pkgver=11.1.5.1
+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)
+makedepends=(git)
+_tag=84483da70d903239d4536763fde8c7e6c4e80784
+source=(git+https://git.videolan.org/git/ffmpeg/nv-codec-headers.git#tag=${_tag})
+sha256sums=(SKIP)
+
+pkgver() {
+  cd nv-codec-headers
+
+  git describe --tags | sed 's/^n//'
+}
+
+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-headers/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list