[arch-commits] CVS update of extra/modules/gspcav1 (ChangeLog PKGBUILD gspcav1.install)
Varun Acharya
varun at archlinux.org
Mon Jan 7 13:44:08 UTC 2008
Date: Monday, January 7, 2008 @ 08:44:08
Author: varun
Path: /home/cvs-extra/extra/modules/gspcav1
Added: ChangeLog (1.1) PKGBUILD (1.1) gspcav1.install (1.1)
gspcav1 adopted and moved to extra
-----------------+
ChangeLog | 10 ++++++++++
PKGBUILD | 27 +++++++++++++++++++++++++++
gspcav1.install | 30 ++++++++++++++++++++++++++++++
3 files changed, 67 insertions(+)
Index: extra/modules/gspcav1/ChangeLog
diff -u /dev/null extra/modules/gspcav1/ChangeLog:1.1
--- /dev/null Mon Jan 7 08:44:08 2008
+++ extra/modules/gspcav1/ChangeLog Mon Jan 7 08:44:08 2008
@@ -0,0 +1,10 @@
+2008-01-07 Varun Acharya <varun at archlinux.org>
+
+ * Adopted and moved to extra
+ * showimg-0.9.5-5
+
+
+2008-01-05 Douglas Soares de Andrade <dsa at aur.archlinux.org>
+
+ * Updated for x86_64
+
Index: extra/modules/gspcav1/PKGBUILD
diff -u /dev/null extra/modules/gspcav1/PKGBUILD:1.1
--- /dev/null Mon Jan 7 08:44:08 2008
+++ extra/modules/gspcav1/PKGBUILD Mon Jan 7 08:44:08 2008
@@ -0,0 +1,27 @@
+# $Id: PKGBUILD,v 1.1 2008/01/07 13:44:08 varun Exp $
+# Maintainer: Varun Acharya <varun at archlinux.org>
+# Contributor: Giovanni Scafora <linuxmania at gmail.com>
+# Contributor: Daniel Isenmann <daniel.isenmann at gmx.de>
+
+_kernver=2.6.23-ARCH
+pkgname=gspcav1
+pkgver=1.00.20
+pkgrel=1
+pkgdesc="A kernel module with support to 260 USB webcams"
+arch=('i686' 'x86_64')
+url="http://mxhaard.free.fr"
+license=('GPL2')
+depends=('kernel26>=2.6.11')
+install=gspcav1.install
+source=(http://mxhaard.free.fr/spca50x/Download/$pkgname-20071224.tar.gz)
+md5sums=('14853ba1f4edc1e685039fca56e5ebf2')
+
+build() {
+ cd $startdir/src/$pkgname-20071224
+ sed -i -e "s/KERNEL_VERSION = .*/KERNEL_VERSION = ${_kernver}/" Makefile
+ make || return 1
+
+ #Install kernel module
+ install -D -m644 gspca.ko $startdir/pkg/lib/modules/$_kernver/kernel/drivers/media/video/usbvideo/gspca.ko
+ sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
+}
Index: extra/modules/gspcav1/gspcav1.install
diff -u /dev/null extra/modules/gspcav1/gspcav1.install:1.1
--- /dev/null Mon Jan 7 08:44:09 2008
+++ extra/modules/gspcav1/gspcav1.install Mon Jan 7 08:44:08 2008
@@ -0,0 +1,30 @@
+# arg 1: the new package version
+post_install()
+{
+ KERNEL_VERSION='2.6.23-ARCH'
+ /sbin/depmod -ae -v $KERNEL_VERSION > /dev/null 2>&1
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade()
+{
+ KERNEL_VERSION='2.6.23-ARCH'
+ /sbin/depmod -ae -v $KERNEL_VERSION > /dev/null 2>&1
+}
+
+# arg 1: the old package version
+pre_remove() {
+ /sbin/rmmod gspca > /dev/null 2>&1
+}
+
+# arg 1: the old package version
+post_remove()
+{
+ KERNEL_VERSION='2.6.23-ARCH'
+ /sbin/depmod -ae -v $KERNEL_VERSION > /dev/null 2>&1
+}
+
+op=$1
+shift
+$op $*
More information about the arch-commits
mailing list