diff options
author | Britney Fransen <brfransen@gmail.com> | 2019-01-28 20:33:55 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2019-01-28 20:33:55 (GMT) |
commit | 0634e79ccc4721b0b1ea7412df8ab662d7178f89 (patch) | |
tree | 1d81ebdf6291f036803dd286910ced517f057f9e | |
parent | 88513ec2f25fc52acbfe81f67ca3efe8485c6685 (diff) | |
download | linhes_pkgbuild-0634e79ccc4721b0b1ea7412df8ab662d7178f89.zip linhes_pkgbuild-0634e79ccc4721b0b1ea7412df8ab662d7178f89.tar.gz linhes_pkgbuild-0634e79ccc4721b0b1ea7412df8ab662d7178f89.tar.bz2 |
ffnvcodec-headers: initial inclusion. dep of ffmpeg
-rw-r--r-- | abs/extra/ffnvcodec-headers/PKGBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/abs/extra/ffnvcodec-headers/PKGBUILD b/abs/extra/ffnvcodec-headers/PKGBUILD new file mode 100644 index 0000000..c496cda --- /dev/null +++ b/abs/extra/ffnvcodec-headers/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Maxime Gauduin <alucryd@archlinux.org> +# Contributor: Daniel Bermond <danielbermond@yahoo.com> + +pkgname=ffnvcodec-headers +pkgver=8.2.15.6 +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}") +sha256sums=('SKIP') + +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: |