From 0010440158dc9d912f6a6969db5398086c0a7108 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 30 Oct 2014 18:07:56 +0000 Subject: v4l-dvb: update latest dvb drivers --- abs/core/v4l-dvb/PKGBUILD | 45 +++++++++++++++++++++++++++ abs/core/v4l-dvb/v4l-dvb.install | 12 ++++++++ abs/not_built/core/v4l-dvb/PKGBUILD | 49 ------------------------------ abs/not_built/core/v4l-dvb/v4l-dvb.install | 12 -------- 4 files changed, 57 insertions(+), 61 deletions(-) create mode 100644 abs/core/v4l-dvb/PKGBUILD create mode 100644 abs/core/v4l-dvb/v4l-dvb.install delete mode 100644 abs/not_built/core/v4l-dvb/PKGBUILD delete mode 100644 abs/not_built/core/v4l-dvb/v4l-dvb.install 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 + +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" +} diff --git a/abs/not_built/core/v4l-dvb/PKGBUILD b/abs/not_built/core/v4l-dvb/PKGBUILD deleted file mode 100644 index f19c2fa..0000000 --- a/abs/not_built/core/v4l-dvb/PKGBUILD +++ /dev/null @@ -1,49 +0,0 @@ -# Maintainer: Cecil Watson - -pkgname=v4l-dvb -_kernver=`uname -r` -pkgver=20120904 -pkgrel=1 -pkgdesc="V4L-DVB device drivers (newer than those included in kernel26)" -arch=('i686' 'x86_64') -url="http://linuxtv.org/" -license=('GPL2') -depends=('kernel26') -makedepends=('git' 'kernel26-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 .. - -# Build with 3.0-ARCH kernel -# sed -i -e "s/KERNELRELEASE\ :=/KERNELRELEASE\ :=\ ${_kernver}/" \ -# -e "s/\$(KERNELRELEASE)/${_kernver}/" \ -# "${srcdir}/${_gitname}"/v4l/Makefile{,.sound} - - make -} - -package() { - cd "${srcdir}/${_gitname}" - make DESTDIR="${pkgdir}/lib/modules/$_kernver/updates" install - # compress new kernel modules - find ${pkgdir}/lib/modules/$_kernver/updates/ -not -name 'media.ko' -name '*.ko' -exec gzip '{}' \; -} -md5sums=() diff --git a/abs/not_built/core/v4l-dvb/v4l-dvb.install b/abs/not_built/core/v4l-dvb/v4l-dvb.install deleted file mode 100644 index f7b7197..0000000 --- a/abs/not_built/core/v4l-dvb/v4l-dvb.install +++ /dev/null @@ -1,12 +0,0 @@ -post_install() { - echo ">>> Running depmod..." - depmod -} - -post_upgrade() { - post_install -} - -post_remove() { - echo ">>> v4l-dvb has been removed" -} -- cgit v0.12