summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: de9439c4ac62cf9ed19f1deda709a085342e8a05 (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
# Maintainer: Marius Lindvall <(firstname) {cat} varden {dog} info>

pkgname=vvenc-git
pkgver=0.2.0.0.r0.g58282d7
pkgrel=1
pkgdesc="Fraunhofer Versatile Video Encoder (VVenC)"
arch=('x86_64')
url='https://github.com/fraunhoferhhi/vvenc'
license=('custom')
depends=('gcc-libs')
makedepends=('git' 'cmake>=3.12' 'gcc>=7')
provides=('vvenc')
conflicts=('vvenc')
source=("git+https://github.com/fraunhoferhhi/vvenc.git")
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/vvenc"
	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${srcdir}/vvenc"
	export CFLAGS+=" ${CPPFLAGS}"
	export CXXFLAGS+=" ${CPPFLAGS}"
	make install-release-shared
}

package() {
	cd "${srcdir}/vvenc"
	cp -r "install" "$pkgdir/usr"
	mkdir -p "$pkgdir/usr/share/licenses/vvenc"
	install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/vvenc/"
}