summaryrefslogtreecommitdiff
path: root/community/dar/PKGBUILD
blob: ed45120c73ee8c8ae538a32ddd2886fe68bd4dff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: PKGBUILD 49277 2011-06-13 15:55:00Z shusmann $
# Contributor: Aaron Schaefer <aaron@elasticdog.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=dar
pkgver=2.4.0
pkgrel=3
pkgdesc='A full featured command-line backup tool, short for Disk ARchive'
arch=('i686' 'x86_64' 'mips64el')
url='http://dar.linux.free.fr/'
license=('GPL')
depends=('bzip2' 'lzo2' 'libgcrypt')
optdepends=('perl: for running some samples')
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
"patch-2.4.1_interim.patch.gz::http://sourceforge.net/tracker/download.php?group_id=65612&atid=511612&file_id=413935&aid=3312050")
md5sums=('1e0e02d3c90cdaaaf2850eff25599fba'
         '006ab95d969f32771940a3115dea8199')
options=('!libtool')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -p2 < $srcdir/patch-2.4.1_interim.patch
  ./configure --prefix=/usr --sysconfdir=/etc 
  make 
}
package() {
  cd "$srcdir/$pkgname-$pkgver"
  install -d $pkgdir/usr/share/doc/$pkgname
  make DESTDIR="$pkgdir" install 
  cd $pkgdir/usr/share/$pkgname
  mv *.html  $pkgdir/usr/share/doc/$pkgname
  rm -r man
  for _i in html mini-howto samples 
  do
    mv ${_i} $pkgdir/usr/share/doc/$pkgname
  done
}