blob: ab0c52be23c5299bc51fb192b1eb15c82b833c42 (
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
|
# Maintainer : Daniel Bermond <dbermond@archlinux.org>
# Contributor: dummyx <dummyxa at gmail dot com>
pkgname=vvenc
pkgver=1.12.1
pkgrel=1
pkgdesc='A H.266/VVC (Versatile Video Coding) encoder'
arch=('x86_64')
url='https://github.com/fraunhoferhhi/vvenc/'
license=('BSD-3-Clause-Clear')
depends=('gcc-libs')
makedepends=('cmake')
source=("https://github.com/fraunhoferhhi/vvenc/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('ba353363779e8f835200f319c801b052a97d592ebc817b52c41bdce093fa2fe2')
build() {
cmake -B build -S "${pkgname}-${pkgver}" \
-G 'Unix Makefiles' \
-DBUILD_SHARED_LIBS:BOOL='ON' \
-DCMAKE_BUILD_TYPE:STRING='None' \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-DCMAKE_SKIP_RPATH:BOOL='YES' \
-DVVENC_INSTALL_FULLFEATURE_APP:BOOL='ON' \
-Wno-dev
cmake --build build
}
check() {
export LD_LIBRARY_PATH="${srcdir}/build/source/Lib/vvenc"
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
cp -dr --no-preserve='ownership' build/source/Lib/vvenc/*.so* "${pkgdir}/usr/lib"
install -D -m755 build/source/App/{vvencapp/vvencapp,vvencFFapp/vvencFFapp} -t "${pkgdir}/usr/bin"
install -D -m644 "${pkgname}-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|