core/vhba-module/PKGBUILD

37 lines
950 B
Bash
Raw Normal View History

2016-09-25 18:01:16 +08:00
# Source global configuration
source ../linux.conf
pkgname=vhba-module
2015-06-07 20:01:17 +08:00
pkgver=20140928
2016-10-03 02:43:41 +08:00
pkgrel=8
2011-01-07 00:02:18 +08:00
pkgdesc="Kernel module that emulates SCSI devices"
2012-11-17 09:58:41 +08:00
arch=('x86_64')
2010-05-22 05:51:58 +08:00
url="http://cdemu.sourceforge.net/"
license=('GPL2')
2014-10-04 06:28:08 +08:00
depends=("linux=${_kernelver}")
makedepends=("linux-headers=${_kernelver}")
2010-05-22 05:51:58 +08:00
install=vhba-module.install
source=("http://sourceforge.net/projects/cdemu/files/vhba-module/vhba-module-$pkgver.tar.bz2"
'60-vhba.rules')
2015-06-07 20:01:17 +08:00
md5sums=('967007230bb028424216d9b35da422c0'
'4dc37dc348b5a2c83585829bde790dcc')
2014-06-16 05:41:21 +08:00
prepare() {
cd $pkgname-$pkgver
}
2010-05-22 05:51:58 +08:00
build() {
cd "$pkgname-$pkgver"
make KDIR=/usr/lib/modules/$_kver/build
}
package() {
cd $pkgname-$pkgver
install -Dm644 vhba.ko "$pkgdir/usr/lib/modules/${_extramodules}/vhba.ko"
install -Dm644 ../60-vhba.rules "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules"
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" \
"${startdir}/vhba-module.install"
2010-05-22 05:51:58 +08:00
}