summaryrefslogtreecommitdiffstats
path: root/abs/core/v4l-dvb/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2011-11-10 15:38:14 (GMT)
committerBritney Fransen <brfransen@gmail.com>2011-11-10 15:38:14 (GMT)
commitbe96d3ebb565e4a910d50f36ded3d9cd68615acb (patch)
treefdc937f12200220bd09526b9ddc2cc409f276591 /abs/core/v4l-dvb/PKGBUILD
parentab2f21200aef65b575bb080edd472d3a789495c2 (diff)
downloadlinhes_pkgbuild-be96d3ebb565e4a910d50f36ded3d9cd68615acb.zip
linhes_pkgbuild-be96d3ebb565e4a910d50f36ded3d9cd68615acb.tar.gz
linhes_pkgbuild-be96d3ebb565e4a910d50f36ded3d9cd68615acb.tar.bz2
v4l-dvb: change to use git as hg isn't used anymore
Diffstat (limited to 'abs/core/v4l-dvb/PKGBUILD')
-rw-r--r--abs/core/v4l-dvb/PKGBUILD60
1 files changed, 41 insertions, 19 deletions
diff --git a/abs/core/v4l-dvb/PKGBUILD b/abs/core/v4l-dvb/PKGBUILD
index c5b96fc..29dec98 100644
--- a/abs/core/v4l-dvb/PKGBUILD
+++ b/abs/core/v4l-dvb/PKGBUILD
@@ -1,28 +1,50 @@
-# $Id: PKGBUILD 5936 2008-07-21 20:24:16Z thomas $
-# Maintainer: Cecil Watson<knoppmyth@gmail.com>
+# Maintainer: Nicky726 (Nicky726 <at> gmail <dot> com)
pkgname=v4l-dvb
-_kernver=2.6.36-LinHES
-pkgver=1
-pkgrel=18
-pkgdesc="V4L-DVB drivers from mercurial"
+pkgver=20111110
+pkgrel=1
+pkgdesc="V4L-DVB device drivers git version"
arch=('i686' 'x86_64')
-license=('GPL2')
url="http://linuxtv.org/"
-depends=('kernel26')
-makedepends=(kernel-headers)
+license=('GPL')
+depends=('linux-api-headers' 'perl-proc-processtable' 'patchutils')
+makedepends=('git')
+options=(!makeflags)
install=v4l-dvb.install
-source=('http://linuxtv.org/hg/v4l-dvb/archive/tip.tar.gz' 'hdpvr.diff')
+_gitroot="git://linuxtv.org/media_build.git"
+_gitname="media_build"
+source=(config)
build() {
- cd $startdir/src/v4l-dvb*/
- patch -p1 < ../hdpvr.diff
- make KERNDIR=/lib/modules/$_kernver/build \
- DESTDIR=$startdir/pkg KERNELRELEASE=$_kernver all || return 1
- make KERNDIR=/lib/modules/$_kernver/build \
- DESTDIR=$startdir/pkg KERNELRELEASE=$_kernver install || return 1
- rm -fr $startdir/pkg/lib/modules/$_kernver/modules*
+ 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
+ _kernver=`uname -r`
+ sed -i -e "s/KERNELRELEASE\ :=/KERNELRELEASE\ :=\ ${_kernver}/" \
+ -e "s/\$(KERNELRELEASE)/${_kernver}/" \
+ "${srcdir}/${_gitname}"/v4l/Makefile{,.sound}
+ # Use alternate config, because cx23885 module won't build
+# cp "${srcdir}/config" "${srcdir}/${_gitname}/v4l/.config"
+ make
+}
+
+package() {
+ install -dm755 "${srcdir}/lib/modules/$(uname -r)/updates"
+ cd "${srcdir}/${_gitname}"
+ make DESTDIR="${pkgdir}/lib/modules/$(uname -r)/updates" install
}
-md5sums=('d2631ec2051bb00bc3f379f35b002450'
- '336b14da668a7b79d55624a769b28f63')
+md5sums=('927cc1fcddc2a71a7fde97322237c7a8')