updated on Sat Jan 21 12:00:39 UTC 2012
[aur-mirror.git] / dirvish / PKGBUILD
blob5327caf79431b42cfbe8cce6a77fcee91aea26a1
1 # Maintainer: enderst <enderst@gmail.com>
2 # Contributor: troxy <aurpkg.20.troxor at spamgourmet dot com>
3 pkgname=dirvish
4 pkgver=1.2.1
5 pkgrel=4
6 pkgdesc="A fast,disk based, rotating network backup system."
7 arch=('i686' 'x86_64')
8 url="http://www.dirvish.org"
9 license=('OSL-2.0')
10 depends=(perl rsync perl-getopt-mixed perl-time-modules perl-time-period)
11 source=(http://www.dirvish.org/dirvish-$pkgver.tgz)
12 md5sums=('f3a127525dd2ef94bf79cd5614f6e147')
14 build() {
16   
17   cd $startdir/src/
18   mkdir -p $startdir/pkg/usr/sbin
19   mkdir -p $startdir/pkg/etc/dirvish
20   mkdir -p $startdir/pkg/usr/share/man/man5
21   mkdir -p $startdir/pkg/usr/share/man/man8
23   for f in dirvish dirvish-runall dirvish-expire dirvish-locate
24   do
25     echo "#!`which perl`" > $f
26         echo -e "\$CONFDIR = \"/etc/dirvish\";\n" >> $f
27     cat $f.pl >>$f
28     cat loadconfig.pl >>$f
29     install -m 755 $f $startdir/pkg/usr/sbin/$f || return 1
30   done
32   for f in dirvish.8 dirvish-runall.8 dirvish-expire.8 dirvish-locate.8 
33   do
34     install -m 644 $f $startdir/pkg/usr/share/man/man8/$f || return 1
35   done
36   install -m 644 dirvish.conf.5 $startdir/pkg/usr/share/man/man5/dirvish.conf.5 || return 1