summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 68eda4f0e3bf4b269326fe54468dac67dc65bc58 (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
# Maintainer: Jens Kuske <jenskuske@gmail.com>
# Contributor: smotocel69 <smotocel69@gmail.com>
pkgname=libvdpau-sunxi-git
pkgver=0.4.r6.c2fb693
pkgrel=1
pkgdesc="VDPAU driver for Allwinner sunxi SoCs"
arch=('armv7h')
url="https://github.com/linux-sunxi/libvdpau-sunxi"
license=('LGPL')
depends=('libx11' 'libcedrus-git' 'pixman')
makedepends=('git' 'libvdpau')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/linux-sunxi/${pkgname%-git}")
md5sums=('SKIP')

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

build() {
	cd "$srcdir/${pkgname%-git}"
	make
}

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