summaryrefslogtreecommitdiff
path: root/pcr/libvdpau-sunxi-git/PKGBUILD
blob: 04db80814a1ddb45fc555c602c2f77f2a013b929 (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
44
45
46
47
# Maintainer (Arch): Jens Kuske <jenskuske@gmail.com>
# Contributor (Arch): smotocel69 <smotocel69@gmail.com>
# Maintainer: André Silva <emulatorman@parabola.nu>
pkgname=libvdpau-sunxi-git
pkgver=r99.427fa6b
pkgrel=3
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}"
	'50-cedar.rules'
	'50-disp.rules'
	'50-g2d.rules'
	'50-ion.rules'
	'libvdpau.sh'
	'sunxi-cedar.conf')
md5sums=('SKIP'
         'd606a1d188034616875eb82651a7abcb'
         '728532c6c8b3581c0b3e94ff8cd8a568'
         '17f989c2db2809cae9dd9bcf2b5cd2c1'
         '7b8147257ca77a4bbbcdaedffd6c431b'
         'ed91a5c6cde4cc9a3ee93d804c71897a'
         '20c5959ffde7e1c2940703399a245b34')

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

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

package() {
	cd ${pkgname%-git}
	make DESTDIR="$pkgdir/" install
	install -dm755 $pkgdir/etc/{udev/rules.d,{modules-load,profile}.d}
	install -Dm644 $srcdir/50-{cedar,disp,g2d,ion}.rules $pkgdir/etc/udev/rules.d
	install -Dm755 $srcdir/libvdpau.sh $pkgdir/etc/profile.d
	install -Dm644 $srcdir/sunxi-cedar.conf $pkgdir/etc/modules-load.d
}