summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d219dba550c8da47ca8e76d8ba7b92d96955a17 (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
43
# Maintainer: Thomas Schneider <maxmusterm@gmail.com>
pkgname=svt-vp9-git
pkgver=r6.e92a57c
pkgrel=1
pkgdesc="The Scalable Video Technology for VP9 Encoder (SVT-VP9 Encoder) is an VP9-compliant encoder library core."
arch=('x86_64' 'i686')
url="https://github.com/OpenVisualCloud/SVT-VP9"
license=('GPL')
groups=()
depends=()
makedepends=('cmake' 'gcc' 'yasm' 'git')
checkdepends=()
optdepends=()
provides=('svt-vp9')
conflicts=()
replaces=('svt-vp9')
backup=()
options=()
install=
changelog=
source=(svt-vp9::git+https://github.com/OpenVisualCloud/SVT-VP9.git)
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	mkdir -p build
	cd build
	cmake .. -DCMAKE_BUILD_TYPE='Release' \
	-DCMAKE_INSTALL_PREFIX='/usr'
#	-DBUILD_TESTING=False
	make
}

package() {
	cd "$srcdir/${pkgname%-git}"/build
	make DESTDIR="$pkgdir/" install
}