summaryrefslogtreecommitdiffstats
path: root/abs/core/v4l-dvb
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/v4l-dvb')
-rw-r--r--abs/core/v4l-dvb/PKGBUILD45
-rw-r--r--abs/core/v4l-dvb/v4l-dvb.install12
2 files changed, 57 insertions, 0 deletions
diff --git a/abs/core/v4l-dvb/PKGBUILD b/abs/core/v4l-dvb/PKGBUILD
new file mode 100644
index 0000000..3292d27
--- /dev/null
+++ b/abs/core/v4l-dvb/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Cecil Watson<knoppmyth@gmail.com>
+
+pkgname=v4l-dvb
+_kernver=`uname -r`
+pkgver=20141028
+pkgrel=1
+pkgdesc="V4L-DVB device drivers (newer than those included in linux pkg)"
+arch=('i686' 'x86_64')
+url="http://linuxtv.org/"
+license=('GPL2')
+depends=('')
+makedepends=('git' 'linux-headers' 'perl-proc-processtable' 'patchutils')
+options=(!makeflags)
+install=v4l-dvb.install
+_gitroot="git://linuxtv.org/media_build.git"
+_gitname="media_build"
+
+build() {
+ cd "${srcdir}"
+ msg "Connecting to GIT server...."
+
+ if [ -d "${srcdir}/${_gitname}" ] ; then
+ cd ${_gitname} && git pull --rebase
+ else
+ git clone ${_gitroot}
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting make..."
+
+ cd "${srcdir}/${_gitname}/linux"
+ make download untar
+ cd ..
+
+ make
+}
+
+package() {
+ install -dm755 "${srcdir}/usr/lib/modules/$_kernver/updates"
+ cd "${srcdir}/${_gitname}"
+ make DESTDIR="${pkgdir}/usr/lib/modules/$_kernver/updates" install
+ # compress new kernel modules
+ find ${pkgdir}/usr/lib/modules/$_kernver/updates/ -not -name 'media.ko' -name '*.ko' -exec gzip '{}' \;
+}
+md5sums=()
diff --git a/abs/core/v4l-dvb/v4l-dvb.install b/abs/core/v4l-dvb/v4l-dvb.install
new file mode 100644
index 0000000..f7b7197
--- /dev/null
+++ b/abs/core/v4l-dvb/v4l-dvb.install
@@ -0,0 +1,12 @@
+post_install() {
+ echo ">>> Running depmod..."
+ depmod
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ echo ">>> v4l-dvb has been removed"
+}