core/ndiswrapper-lts/PKGBUILD

44 lines
1.3 KiB
Bash
Raw Normal View History

2011-02-26 04:12:50 +08:00
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
2012-02-21 00:56:55 +08:00
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
# Find the kernel name inside the chroot
_extramodules=extramodules-`pacman -Q linux-lts | cut -c11-13 | sed 's/linux-lts //g'`-CHAKRA-LTS
_kver="$(cat /lib/modules/${_extramodules}/version)"
2011-02-26 04:12:50 +08:00
pkgname=ndiswrapper-lts
pkgver=1.57
2012-02-21 00:56:55 +08:00
pkgrel=2
pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For linux-testing."
2011-02-26 04:12:50 +08:00
license=('GPL')
arch=(i686 x86_64)
url="http://ndiswrapper.sourceforge.net"
install="ndiswrapper.install"
2012-02-21 02:26:21 +08:00
depends=('linux-lts>=3.0' 'linux-lts<3.1' 'ndiswrapper')
2012-02-21 00:56:55 +08:00
makedepends=('linux-lts-headers')
source=(http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz)
md5sums=('7a401dc540938bf07893c67f418b6152')
2011-02-26 04:12:50 +08:00
2012-02-21 00:56:55 +08:00
build() {
cd "$srcdir/ndiswrapper-$pkgver"
make KVERS=$_kver
}
package() {
2012-02-21 00:56:55 +08:00
cd "$srcdir/ndiswrapper-$pkgver"
make INST_DIR="lib/modules/$_extramodules" \
KVERS=$_kver DESTDIR="$pkgdir/" install
2011-02-26 04:12:50 +08:00
2012-02-21 02:26:21 +08:00
# rm ndiswrapper
rm -R "$pkgdir/usr" "$pkgdir/sbin"
2012-02-21 00:56:55 +08:00
gzip "$pkgdir/lib/modules/$_extramodules/ndiswrapper.ko"
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" ${startdir}/*.install
}