updated on Mon Jan 9 08:00:21 UTC 2012
[aur-mirror.git] / mhvtl / PKGBUILD
blob3b633a815923c015b41e8c2615bbe187816a5826
1 # Maintainer: Stanislav GE <ginermail@gmail.com>
3 _srcdirname=markh794-mhvtl-a6b429e
4 pkgname=mhvtl
5 pkgver=0.18_14
6 pkgrel=1
7 pkgdesc='A Virtual Tape & Library system'
8 arch=(i686 x86_64)
9 url=http://sites.google.com/site/linuxvtl2
10 license=(GPL2)
11 depends=(sg3_utils)
12 makedepends=(zlib)
13 source=(http://download.github.com/markh794-$pkgname-${pkgver//_/-}_release-0-ga6b429e.tar.gz
14         mhvtl_destdir.patch)
15 md5sums=('740b1e1b6d33657d26a81eb141250b3e'
16          '5a10891750d6a34efac472aecc3b257f')
17 install=${pkgname}.install
19 build() {
20         # Build
21         cd $srcdir/${_srcdirname}
22         patch -Np0 -i $startdir/${pkgname}_destdir.patch
23         make USR=root GROUP=root all kernel
25         # Install base
26         make USR=root GROUP=root DESTDIR=$pkgdir install
28         # Install kernel module
29         pushd kernel
30         make DESTDIR=$pkgdir install
31         popd
33         # Install manuals
34         install -d $pkgdir/usr/share/man/man{1,5}
35         install -D -m 644 $srcdir/${_srcdirname}/man/*.1 $pkgdir/usr/share/man/man1/
36         install -D -m 644 $srcdir/${_srcdirname}/man/*.5 $pkgdir/usr/share/man/man5/