summaryrefslogtreecommitdiff
path: root/pcr/libvdpau-sunxi-git/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/libvdpau-sunxi-git/PKGBUILD')
-rw-r--r--pcr/libvdpau-sunxi-git/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/pcr/libvdpau-sunxi-git/PKGBUILD b/pcr/libvdpau-sunxi-git/PKGBUILD
new file mode 100644
index 000000000..0d1ce1a24
--- /dev/null
+++ b/pcr/libvdpau-sunxi-git/PKGBUILD
@@ -0,0 +1,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=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}"
+ '50-cedar.rules'
+ '50-disp.rules'
+ '50-g2d.rules'
+ '50-ion.rules'
+ 'libvdpau.sh'
+ 'modules')
+md5sums=('SKIP'
+ 'd606a1d188034616875eb82651a7abcb'
+ '728532c6c8b3581c0b3e94ff8cd8a568'
+ '17f989c2db2809cae9dd9bcf2b5cd2c1'
+ '7b8147257ca77a4bbbcdaedffd6c431b'
+ 'ed91a5c6cde4cc9a3ee93d804c71897a'
+ '33dc94b61c4aef01dda70af331514eeb')
+
+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,{conf,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/modules $pkgdir/etc/conf.d
+}