summaryrefslogtreecommitdiffstats
path: root/abs/core/v4l-dvb/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-10-30 18:07:56 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-10-30 18:07:56 (GMT)
commit0010440158dc9d912f6a6969db5398086c0a7108 (patch)
tree394f4fc2b7cfd6786911154d3b9ded1f21411871 /abs/core/v4l-dvb/PKGBUILD
parentc478ae9b8647058bc9abc08fbd95e80731268068 (diff)
downloadlinhes_pkgbuild-0010440158dc9d912f6a6969db5398086c0a7108.zip
linhes_pkgbuild-0010440158dc9d912f6a6969db5398086c0a7108.tar.gz
linhes_pkgbuild-0010440158dc9d912f6a6969db5398086c0a7108.tar.bz2
v4l-dvb: update latest dvb drivers
Diffstat (limited to 'abs/core/v4l-dvb/PKGBUILD')
-rw-r--r--abs/core/v4l-dvb/PKGBUILD45
1 files changed, 45 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=()