mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
36 lines
1.6 KiB
Bash
36 lines
1.6 KiB
Bash
|
# $Id: PKGBUILD 42192 2009-06-11 18:39:18Z tpowa $
|
||
|
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
|
||
|
|
||
|
_kernver=2.6.30-ARCH;
|
||
|
|
||
|
pkgname=slmodem
|
||
|
pkgver=2.9.11
|
||
|
pkgrel=46
|
||
|
|
||
|
pkgdesc="Drivers for the Smartlink winmodems. For stock arch 2.6 kernel "
|
||
|
arch=(i686)
|
||
|
license=('custom:"Smartlink"')
|
||
|
url="http://linmodems.technion.ac.il/packages/smartlink/"
|
||
|
depends=('kernel26>=2.6.30' 'kernel26<2.6.31' 'slmodem-utils')
|
||
|
install=slmodem.install
|
||
|
source=(http://linmodems.technion.ac.il/packages/smartlink/slmodem-2.9.11-20080126.tar.gz \
|
||
|
http://linmodems.technion.ac.il/packages/smartlink/ungrab-winmodem-20080126.tar.gz
|
||
|
kernel-2.6.24.patch)
|
||
|
|
||
|
build() {
|
||
|
cd $startdir/src/ungrab-winmodem-20080126
|
||
|
make KERNEL_DIR=/lib/modules/${_kernver}/build || return 1
|
||
|
install -D -m644 ungrab-winmodem.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/net/ungrab-winmodem.ko
|
||
|
cd $startdir/src/$pkgname-$pkgver-20080126
|
||
|
patch -Np0 -i ../kernel-2.6.24.patch || return 1
|
||
|
sed 's|^obj-m := slamr.o slusb.o|obj-m := slamr.o|' -i drivers/Makefile
|
||
|
make KERNEL_DIR=/lib/modules/${_kernver}/build SUPPORT_ALSA=1 DESTDIR=$startdir/pkg drivers || return 1
|
||
|
# Install kernel modules
|
||
|
install -D -m 644 drivers/slamr.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/net/slamr.ko
|
||
|
#install -D -m 644 drivers/slusb.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/usb/net/slusb.ko
|
||
|
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/slmodem.install
|
||
|
}
|
||
|
md5sums=('8670dd7e1e1a46296ac4c80f7ac0471d'
|
||
|
'25244ef3924566866f4fae2feca78218'
|
||
|
'5a5e313a5040fcff7bf11c33f008e61e')
|