updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / slbackup / PKGBUILD
blobf0e19324f17c2f3905d8fa24e7ded7c5f6a3283b
1 # Contributor: Snorre Jensen snojen@gmail.com
3 pkgname=slbackup
4 pkgver=0.0.12
5 pkgrel=1
6 pkgdesc="Framework for rdiff-backup to make it easy to set up a backup solution"
7 arch=('any')
8 url="http://slbackup.alioth.debian.org/"
9 license=('GPL')
10 depends=(rdiff-backup perl-config-general perl-net-dns)
11 makedepends=()
12 optdepends=('ssh')
13 install=${pkgname}.install
14 source=(https://alioth.debian.org/frs/download.php/3220/${pkgname}_${pkgver}.orig.tar.gz)
16 md5sums=('8e8816d4cb1b1abc1bcca0a453614c33')
18 build() {
19     cd $startdir/src/${pkgname}-${pkgver}
20     mkdir -p $pkgdir/etc/${pkgname}/pre.d
21     mkdir -p $pkgdir/etc/${pkgname}/post.d
22     mkdir -p $pkgdir/etc/cron.d
23     mkdir -p $pkgdir/usr/share/${pkgname}
24     mkdir -p $pkgdir/usr/share/perl5/core_perl
25     mkdir -p $pkgdir/usr/share/doc/${pkgname}
26     mkdir -p $pkgdir/var/log/${pkgname}/
27     cp conf/${pkgname}-cron $pkgdir/usr/share/doc/${pkgname}/
28     cp src/${pkgname}-cron $pkgdir/usr/share/${pkgname}/
29     cp src/SLBackup.pm $pkgdir/usr/share/perl5/core_perl/
30     cp -r docs/* $pkgdir/usr/share/doc/${pkgname}/
31     cp CHANGELOG $pkgdir/usr/share/doc/${pkgname}/
32     cp TODO $pkgdir/usr/share/doc/${pkgname}/
33     cp COPYING $pkgdir/usr/share/doc/${pkgname}/
34     cp conf/${pkgname}.conf $pkgdir/usr/share/doc/${pkgname}/
36    cd $pkgdir