PKGBUILD 1.04 KB
Newer Older
1 2 3
#
# Chakra Packages for Chakra, part of chakra-project.org
#
4
# maintainer abveritas@chakra-project.org
5

6
_extramodules=extramodules-3.7-CHAKRA
philm's avatar
philm committed
7 8 9
_kver="$(cat /lib/modules/${_extramodules}/version)"

pkgname=vhba-module
10
pkgver=20120422
11
pkgrel=7
12
pkgdesc="Kernel module that emulates SCSI devices"
abveritas's avatar
abveritas committed
13
arch=('x86_64')
14 15
url="http://cdemu.sourceforge.net/"
license=('GPL2')
16
depends=('linux>=3.7' 'linux<3.8')
philm's avatar
philm committed
17
makedepends=('linux-headers')
18
install=vhba-module.install
19 20
source=("http://sourceforge.net/projects/cdemu/files/vhba-module/vhba-module-$pkgver.tar.bz2"
        '60-vhba.rules')
21
md5sums=('d97372da1d270d1605742b2995fb6678'
22
         '071cd160f50ef6b062b6e3262d5b1e76')
23 24

build() {
25
  cd "$srcdir/$pkgname-$pkgver"
26

philm's avatar
philm committed
27 28 29 30 31
  make -j1 KDIR=/usr/src/linux-${_kver}
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
32

philm's avatar
philm committed
33
  install -D vhba.ko "$pkgdir/lib/modules/${_extramodules}/vhba.ko"
34 35 36 37 38
  sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" \
          "${startdir}/vhba-module.install"

  install -Dm644 "$srcdir/60-vhba.rules" \
	  "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules"
39
}