blob: 2e30c19e05d0840a2af76db5a67468b8dbc8fd9c (
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
|
# Maintainer: Norbert Preining <norbert@preining.info>
_UpstreamPkgName=NVEnc
pkgname=${_UpstreamPkgName,,}
pkgver=9.40
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' 'onnxruntime-opt-cuda')
makedepends=('git' 'gcc' 'cargo-c' 'meson' 'ninja')
source=(git+${url}.git#tag=${pkgver} onnxruntime-find.patch)
sha256sums=('c5c934465383a0bf1bd2fc5d92a6aefdab0306cf7296ced3e1600ebe2963efd9'
'206794b06a69ee057638efeaa124e1ca92282ce8a2efa8799cfd4094b4819bd5')
build() {
#export CXX='g++-15' CC='gcc-15'
unset LDFLAGS
cd $_UpstreamPkgName
patch -p1 <$srcdir/onnxruntime-find.patch
git submodule init
git submodule update
meson setup ./build --prefix=/usr --buildtype=release -Denable_vapoursynth=false -Dlibass_static=false
ninja -C build
}
package() {
cd $_UpstreamPkgName
DESTDIR="$pkgdir" meson install -C build
# 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.*
}
|