[arch-commits] CVS update of core/support/tiacx (PKGBUILD acx.install)
Tom Killian
tom at archlinux.org
Mon Feb 18 23:02:26 UTC 2008
Date: Monday, February 18, 2008 @ 18:02:26
Author: tom
Path: /home/cvs-core/core/support/tiacx
Added: PKGBUILD (1.1) acx.install (1.1)
upgpkg: tiacx 20080210-1
moved from Unstable to Core
-------------+
PKGBUILD | 22 ++++++++++++++++++++++
acx.install | 23 +++++++++++++++++++++++
2 files changed, 45 insertions(+)
Index: core/support/tiacx/PKGBUILD
diff -u /dev/null core/support/tiacx/PKGBUILD:1.1
--- /dev/null Mon Feb 18 18:02:26 2008
+++ core/support/tiacx/PKGBUILD Mon Feb 18 18:02:26 2008
@@ -0,0 +1,22 @@
+# Maintainer: James Rayner <iphitus at gmail.com>
+
+pkgname=tiacx
+pkgver=20080210
+pkgrel=1
+pkgdesc="OpenSource module for Texas Instruments ACX100/ACX111 wireless chips. For stock arch 2.6 kernel"
+arch=(i686 x86_64)
+url="http://acx100.sourceforge.net/"
+license=('MPL')
+depends=('wireless_tools' 'kernel26' 'tiacx-firmware')
+install=acx.install
+source=(http://heanet.dl.sourceforge.net/sourceforge/acx100/acx-$pkgver.tar.bz2)
+
+_kernver=2.6.24-ARCH
+
+build() {
+ cd $startdir/src/acx-$pkgver
+ make -C /lib/modules/${_kernver}/build M=`pwd` || return 1
+ install -D acx.ko $startdir/pkg/lib/modules/${_kernver}/extra/acx.ko
+ sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
+}
+md5sums=('7d5ce3215708e4e9f95cf567a9ee3a12')
Index: core/support/tiacx/acx.install
diff -u /dev/null core/support/tiacx/acx.install:1.1
--- /dev/null Mon Feb 18 18:02:26 2008
+++ core/support/tiacx/acx.install Mon Feb 18 18:02:26 2008
@@ -0,0 +1,23 @@
+# arg 1: the new package version
+post_install() {
+ KERNEL_VERSION='2.6.23-ARCH'
+ depmod -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'
+ depmod -v $KERNEL_VERSION > /dev/null 2>&1
+
+}
+
+# arg 1: the old package version
+post_remove() {
+ KERNEL_VERSION='2.6.23-ARCH'
+ depmod -v $KERNEL_VERSION > /dev/null 2>&1
+}
+
+op=$1
+shift
+$op $*
More information about the arch-commits
mailing list