blob: d9ccce10956df8d227a397407985d5d0e66c9582 (
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.77
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=('e224346bfbd8331c80776f237ccc285a206eafe6a6e07806da2935168d8e752f'
'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.*
}
|