updated on Fri Jan 13 00:14:41 UTC 2012
[aur-mirror.git] / km / PKGBUILD
blobbc07bdad614fb001016a49ffc92474103cfe8084
1 # $Id: PKGBUILD,v 1.1 2007/02/12 08:42:07 aaron Exp $
2 # Maintainer: damir <damir@archlinux.org>
3 # Maintainer : Aaron Griffin <aaron@archlinux.org>
5 pkgname=km
6 pkgver=0.6.1
7 pkgrel=1
8 _kernver=2.6.20-ARCH
9 pkgdesc="Video4linux interface to video capture capabilities of Mach64, Rage128 and Radeon cards for the Kernel 2.6"
10 arch=('i686' 'x86_64')
11 license=('GPL')
12 url="http://gatos.sourceforge.net/km.php"
13 replaces=('kernel26-km')
14 install=module.install
15 source=(http://easynews.dl.sourceforge.net/sourceforge/gatos/$pkgname-$pkgver.tgz
16         build-2.6.20.patch)
17 md5sums=('0bec695aaa0b4d9793a5c65e91842771' '7a3ab57fa4ffbc34261d56042bb32ef2')
19 build() {
20   cd $startdir/src/km
22   cp Makefile-2.6 Makefile
23   patch -up1 < ../build-2.6.20.patch
25   make KDIR=/lib/modules/$_kernver/build || return 1
26   make INSTALL_MOD_PATH=$startdir/pkg KDIR=/lib/modules/$_kernver/build \
27       install || return 1
29   sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install