[arch-commits] CVS update of extra/multimedia/ivtv (PKGBUILD ivtv.install)

Paul Mattal paul at archlinux.org
Mon Feb 4 20:47:00 UTC 2008


    Date: Monday, February 4, 2008 @ 15:47:00
  Author: paul
    Path: /home/cvs-extra/extra/multimedia/ivtv

Modified: PKGBUILD (1.36 -> 1.37) ivtv.install (1.9 -> 1.10)

upgpkg: ivtv 1.0.3-1
update to 1.0.3, resplit


--------------+
 PKGBUILD     |   40 ++++++++++++++++++++++++++++++++++++++++
 ivtv.install |   31 +++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)


Index: extra/multimedia/ivtv/PKGBUILD
diff -u /dev/null extra/multimedia/ivtv/PKGBUILD:1.37
--- /dev/null	Mon Feb  4 15:47:00 2008
+++ extra/multimedia/ivtv/PKGBUILD	Mon Feb  4 15:47:00 2008
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD,v 1.37 2008/02/04 20:47:00 paul Exp $
+# Contributor: Sasha Zbrozek <kleptophobiac at gmail.com>
+# Maintainer: Paul Mattal <paul at archlinux.org>
+
+pkgname=ivtv
+pkgver=1.0.3
+pkgrel=1
+_kernver=2.6.23-ARCH
+pkgdesc="Non-mainline kernel drivers and userspace utilities for Hauppauge PVR cards"
+arch=(i686 x86_64)
+license=('GPL')
+install=$pkgname.install
+url="http://ivtvdriver.org"
+source=("http://dl.ivtvdriver.org/ivtv/archive/1.0.x/ivtv-$pkgver.tar.gz") 
+depends=('udev>=070')
+md5sums=('2c0e04a861cb7409ea82a2935b1e0050')
+
+build() {
+  # SET UP
+  cd $startdir/src/ivtv-$pkgver || return 1
+
+  # don't call depmod here
+  sed -i 's|/sbin/depmod -a||' driver/Makefile i2c-drivers/Makefile || return 1
+
+  # install the utils in /usr/bin, not /usr/local/bin
+  sed -i "s%PREFIX = /usr/local%PREFIX = /usr%g" utils/Makefile || return 1
+
+  # build
+  make INSTALLDIR=/usr/bin || return 1
+
+  # install
+  make DESTDIR=$startdir/pkg install || return 1
+
+  # remove all but the kernel modules
+  rm -rf $startdir/pkg/usr || return 1
+
+  # tweak the install script for the right kernel version
+  sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
+  	$startdir/$pkgname.install || return 1
+}
Index: extra/multimedia/ivtv/ivtv.install
diff -u /dev/null extra/multimedia/ivtv/ivtv.install:1.10
--- /dev/null	Mon Feb  4 15:47:00 2008
+++ extra/multimedia/ivtv/ivtv.install	Mon Feb  4 15:47:00 2008
@@ -0,0 +1,31 @@
+pre_install() {
+	/bin/true
+}
+
+post_install() {
+  # updating module dependencies
+  echo ">>> Updating module dependencies. Please wait ..."
+  KERNEL_VERSION=2.6.23-ARCH
+  depmod -v $KERNEL_VERSION > /dev/null 2>&1
+  /bin/true
+}
+
+post_upgrade() {
+  # updating module dependencies
+  echo ">>> Updating module dependencies. Please wait ..."
+  KERNEL_VERSION=2.6.23-ARCH
+  depmod -v $KERNEL_VERSION > /dev/null 2>&1
+  /bin/true
+}
+
+post_remove() {
+  # updating module dependencies
+  echo ">>> Updating module dependencies. Please wait ..."
+  KERNEL_VERSION=2.6.23-ARCH
+  depmod -v $KERNEL_VERSION > /dev/null 2>&1
+  /bin/true
+}
+
+op=$1
+shift
+$op $*




More information about the arch-commits mailing list