updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / reoback / PKGBUILD
blob7ef7416d772f6bc7057c92e35d1c86e776a7b52d
1 # Contributor: markiza@gmail.com
3 pkgname=reoback
4 pkgver=1.0
5 pkgrel=3
6 arch=('i686' 'x86_64')
7 pkgdesc="REOBack is a backup solution designed for Linux users and system administrators."
8 license=('GPL')
9 depends=('perl' 'tar' 'gzip')
10 makedepends=('')
11 options=('') 
12 url="http://reoback.sourceforge.net/"
13 source=("http://dfn.dl.sourceforge.net/sourceforge/reoback/$pkgname-1.0_r3.tar.gz http://surfnet.dl.sourceforge.net/sourceforge/reoback/$pkgname-1.0_r3.tar.gz")
14 md5sums=('864f8f44f2124be113838b85c405ffe1')
15 install=$pkgname.install
16 DOK="BUGS CHANGES LICENSE INSTALL MANUALS README TODO"
18 build() {
19   mkdir -p $startdir/pkg/etc/$pkgname
20   mkdir -p $startdir/pkg/usr/bin
21   mkdir -p $startdir/pkg/usr/share/$pkgname
22   mkdir -p $startdir/pkg/var/lib/$pkgname/tmp
23   mkdir -p $startdir/pkg/var/lib/$pkgname/data
25   cp $startdir/src/$pkgname-$pkgver/conf/*.conf $startdir/pkg/etc/reoback
26   cp $startdir/src/$pkgname-$pkgver/reoback.pl $startdir/pkg/usr/bin
27   cat $startdir/src/$pkgname-$pkgver/run_reoback.sh | sed -e 's/\/home\/sforge\/reoback\/settings.conf/\/etc\/reoback\/settings.conf/'  >  $startdir/src/tmp1
28   cat $startdir/src/tmp1 | sed -e 's/\/home\/sforge\/reoback\/reoback.pl/\/usr\/bin\/reoback.pl/' > $startdir/pkg/usr/bin/run_reoback.sh
29   chmod 755 $startdir/pkg/usr/bin/run_reoback.sh
30   rm -f $startdir/src/tmp1
31   for I in $DOK; do
32     cp -r $startdir/src/$pkgname-$pkgver/docs/$I $startdir/pkg/usr/share/$pkgname
33   done
34   install -D -m644 $startdir/src/$pkgname-$pkgver/docs/man/$pkgname.1.gz $startdir/pkg/usr/man/man1/$pkgname.1.gz
35   install -D -m644 $startdir/src/$pkgname-$pkgver/docs/man/$pkgname.pl.1.gz $startdir/pkg/usr/man/man1/$pkgname.pl.1.gz