summaryrefslogtreecommitdiff
path: root/pcr/libvdpau-sunxi-git
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-08-03 17:16:08 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-08-03 17:21:09 -0300
commitfb03f508cc4674e6b310410929eb02b2ae03ec3d (patch)
treee8a0e4cc9eb0afafe61ff598c0830288807abeb8 /pcr/libvdpau-sunxi-git
parentf0a9a611933eefdb795d651190c76263b7d42f0e (diff)
downloadabslibre-fb03f508cc4674e6b310410929eb02b2ae03ec3d.tar.gz
abslibre-fb03f508cc4674e6b310410929eb02b2ae03ec3d.tar.bz2
abslibre-fb03f508cc4674e6b310410929eb02b2ae03ec3d.zip
libvdpau-sunxi-git: add new package to [pcr]
Diffstat (limited to 'pcr/libvdpau-sunxi-git')
-rw-r--r--pcr/libvdpau-sunxi-git/50-cedar.rules1
-rw-r--r--pcr/libvdpau-sunxi-git/50-disp.rules1
-rw-r--r--pcr/libvdpau-sunxi-git/50-g2d.rules1
-rw-r--r--pcr/libvdpau-sunxi-git/50-ion.rules1
-rw-r--r--pcr/libvdpau-sunxi-git/PKGBUILD47
-rwxr-xr-xpcr/libvdpau-sunxi-git/libvdpau.sh5
-rw-r--r--pcr/libvdpau-sunxi-git/modules30
7 files changed, 86 insertions, 0 deletions
diff --git a/pcr/libvdpau-sunxi-git/50-cedar.rules b/pcr/libvdpau-sunxi-git/50-cedar.rules
new file mode 100644
index 000000000..aaf4ac823
--- /dev/null
+++ b/pcr/libvdpau-sunxi-git/50-cedar.rules
@@ -0,0 +1 @@
+KERNEL=="cedar_dev", MODE="0660", GROUP="video"
diff --git a/pcr/libvdpau-sunxi-git/50-disp.rules b/pcr/libvdpau-sunxi-git/50-disp.rules
new file mode 100644
index 000000000..5d9d51211
--- /dev/null
+++ b/pcr/libvdpau-sunxi-git/50-disp.rules
@@ -0,0 +1 @@
+KERNEL=="disp", MODE="0660", GROUP="video"
diff --git a/pcr/libvdpau-sunxi-git/50-g2d.rules b/pcr/libvdpau-sunxi-git/50-g2d.rules
new file mode 100644
index 000000000..c24140b95
--- /dev/null
+++ b/pcr/libvdpau-sunxi-git/50-g2d.rules
@@ -0,0 +1 @@
+KERNEL=="g2d", MODE="0660", GROUP="video"
diff --git a/pcr/libvdpau-sunxi-git/50-ion.rules b/pcr/libvdpau-sunxi-git/50-ion.rules
new file mode 100644
index 000000000..4218b1693
--- /dev/null
+++ b/pcr/libvdpau-sunxi-git/50-ion.rules
@@ -0,0 +1 @@
+KERNEL=="ion", MODE="0660", GROUP="video"
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
+}
diff --git a/pcr/libvdpau-sunxi-git/libvdpau.sh b/pcr/libvdpau-sunxi-git/libvdpau.sh
new file mode 100755
index 000000000..94dd306fd
--- /dev/null
+++ b/pcr/libvdpau-sunxi-git/libvdpau.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+VDPAU_DRIVER=sunxi
+export VDPAU_DRIVER
+VDPAU_OSD=1
+export VDPAU_OSD
diff --git a/pcr/libvdpau-sunxi-git/modules b/pcr/libvdpau-sunxi-git/modules
new file mode 100644
index 000000000..794755cd8
--- /dev/null
+++ b/pcr/libvdpau-sunxi-git/modules
@@ -0,0 +1,30 @@
+# You can define a list modules for a specific kernel version,
+# a released kernel version, a main kernel version or just a list.
+# The most specific versioned variable will take precedence.
+
+# if openrc should make use of /etc/modules-load.d
+# systemd places stuff there
+use_modules_load_d=false
+
+#modules_2_6_23_gentoo_r5="ieee1394 ohci1394"
+#modules_2_6_23="tun ieee1394"
+#modules_2_6="tun"
+#modules_2="ipv6"
+#modules="ohci1394"
+
+# You can give modules a different name when they load - the new name
+# will also be used to pick arguments below.
+#modules="dummy:dummy1"
+
+# Give the modules some arguments if needed, per version if necessary.
+# Again, the most specific versioned variable will take precedence.
+#module_ieee1394_args="debug"
+#module_ieee1394_args_2_6_23_gentoo_r5="debug2"
+#module_ieee1394_args_2_6_23="debug3"
+#module_ieee1394_args_2_6="debug4"
+#module_ieee1394_args_2="debug5"
+
+# You should consult your kernel documentation and configuration
+# for a list of modules and their options.
+
+modules="sunxi_cedar_mod"