blob: b2fa1aa7e286d07dc059cad4d69e4852973b09eb (
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
40
41
42
|
# Maintainer: Norbert Preining <norbert@preining.info>
_UpstreamPkgName=NVEnc
pkgname=${_UpstreamPkgName,,}
pkgver=7.74
pkgrel=1
pkgdesc="NVIDIA Video Codec based command line encoder"
arch=('x86_64')
url="https://github.com/rigaya/$_UpstreamPkgName"
license=('MIT')
# While cuda and nvidia are not strictly necessary accoring the ldd
# the program will not work at all without them installed.
depends=('cuda>=10' 'ffmpeg' 'libass' 'vapoursynth' 'libdovi')
makedepends=('git' 'gcc13' 'cargo-c')
source=(git+${url}.git#tag=${pkgver}
git+https://github.com/tplgy/cppcodec.git
ldflags-adjustments.patch)
sha256sums=('484c5c5dd3c0bb2a192e78da5d0768d343fce3045b0a666fbfbd03a7e6505dd4'
'SKIP'
'9032a642a66219efe9413cee1cb371ca3f46de254c6b50f3605df3f385ec53a5')
prepare() {
cd $_UpstreamPkgName
patch --forward --strip=1 --input="${srcdir}/ldflags-adjustments.patch"
}
build() {
cd $_UpstreamPkgName
git submodule init
git config --local submodule.cppcodec "$srcdir/cppcodec"
git submodule update cppcodec
CXX=g++-13 ./configure --prefix=/usr
make
}
package() {
cd $_UpstreamPkgName
make PREFIX="$pkgdir/usr" install
# since it is MIT we need to install a license file
install -Dm 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" NVEnc_license.txt
# install documentation
install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}" NVEncC_Options.* Readme.*
}
|