blob: 7bbe1771a25007ad485776505f6343319cf230b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
# NOTE:
# In order to build the package, you need to manually download the SDK
# file from NVIDIA's website (registration required). Place the downloaded
# file in the PKGBUILD directory and run makepkg.
# Download website:
# https://developer.nvidia.com/nvidia-video-codec-sdk/download
pkgbase=nvidia-sdk
pkgname=('nvidia-sdk' 'nvidia-sdk-doc')
pkgver=12.2.72
pkgrel=1
pkgdesc='NVIDIA Video Codec SDK (NVDECODE and NVENCODE APIs)'
arch=('any')
url='https://developer.nvidia.com/nvidia-video-codec-sdk/'
license=('LicenseRef-Custom')
makedepends=('poppler')
source=("local://Video_Codec_SDK_${pkgver}.zip")
sha256sums=('fc3e05cd2a194fb93e2e9f11f8844f678401f4df5c9d017632d68c992e818a6e')
prepare() {
pdftotext -layout "Video_Codec_SDK_${pkgver}/LicenseAgreement.pdf"
}
package_nvidia-sdk() {
install -d -m755 "${pkgdir}/usr/include"
install -D -m644 "Video_Codec_SDK_${pkgver}/LicenseAgreement.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cp -dr --no-preserve='ownership' "Video_Codec_SDK_${pkgver}/Interface" "${pkgdir}/usr/include/nvidia-sdk"
}
package_nvidia-sdk-doc() {
pkgdesc+=' (documentation)'
install -d -m755 "${pkgdir}/usr/share/doc"
cp -dr --no-preserve='ownership' "Video_Codec_SDK_${pkgver}/Doc" "${pkgdir}/usr/share/doc/${pkgbase}"
install -D -m644 "Video_Codec_SDK_${pkgver}/Deprecation_Notices.pdf" -t "${pkgdir}/usr/share/doc/${pkgbase}"
install -D -m644 "Video_Codec_SDK_${pkgver}/LicenseAgreement.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|