summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 85f2bbce98ab6394392c983b66c70d3d188a2bbc (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: spider-mario <spidermario@free.fr>
pkgname=xvc-git
pkgver=v1.0.r7.3e1db91
pkgrel=1
pkgdesc="Modern software-defined video compression format"
arch=('x86_64')
url="https://xvc.io/"
license=('LGPL2.1')
depends=('gcc-libs')
makedepends=('git' 'cmake')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/divideon/xvc.git')
sha512sums=('SKIP')

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

build() {
	mkdir -p build
	cd build
	cmake -DCMAKE_INSTALL_PREFIX=/usr "$srcdir"/xvc
	make
}

check() {
	cd build
	make test
}

package() {
	cd build
	make DESTDIR="$pkgdir/" install
}