summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12e4afc8673f7f3e36463f0b221e75d352bdf9e8 (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
# Contributor: Florian Dejonckheere <florian at floriandejonckheere dot be>
# Maintainer: Florian Dejonckheere <florian at floriandejonckheere dot be>

pkgname=jsvm-git
_gitname=jsvm
pkgver=3d01c8b
pkgrel=2
pkgdesc='Reference software for the Scalable Video Coding codec'
arch=('i686' 'x86_64')
url='http://www.hhi.fraunhofer.de/de/kompetenzfelder/image-processing/research-groups/image-video-coding/svc-extension-of-h264avc/jsvm-reference-software.html'
license=('custom')
depends=('gcc-libs')
makedepends=('git')
provides=('jsvm')
source=("git+https://github.com/floriandejonckheere/${_gitname}.git"
	"git+https://github.com/floriandejonckheere/${_gitname}-patch.git")
md5sums=('SKIP'
	'SKIP')

pkgver(){
	cd "${srcdir}/${_gitname}"
	git describe --always | sed 's|-|.|g'
}

prepare(){
	cd "${srcdir}/${_gitname}"
	# GCC quirks
	git apply "../${_gitname}-patch/jsvm.patch"
}

build(){
	cd "${srcdir}/${_gitname}/JSVM/H264Extension/build/linux"
	make
}

package(){
	cd "${srcdir}/${_gitname}"
	install -Dm644 copyright.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	cd "${srcdir}/${_gitname}/bin"
	for FILE in $(ls); do
		install -Dm755 "${FILE}" "${pkgdir}/usr/bin/${FILE}"
	done
}