updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / bacula-bat / PKGBUILD
blob28e1cc747fc91fa58206eb879ebe4bd7ab134d6e
1 # Maintainer: Dogukan Korkmazturk <d.korkmazturk@gmail.com>
2 # Maintainer: Stephane Travostino <stephane.travostino@gmail.com>
3 # Contributor: Calogero Lo Leggio <kalos@autistici.org>
5 pkgname=bacula-bat
6 pkgver=5.0.0
7 pkgrel=1
8 pkgdesc="Bacula, the Network Backup Tool for Linux, Unix, Mac and Windows [qt console]"
9 arch=(i686 x86_64)
10 url="http://www.bacula.org"
11 license=('GPL')
12 depends=('qt' 'qwt')
13 makedepends=('qt' 'qwt')
14 backup=(etc/bacula/bat.conf)
15 install="bat.install"
16 source=("http://downloads.sourceforge.net/sourceforge/bacula/bacula-$pkgver.tar.gz")
17 md5sums=('68e008d2578a6d9a50af60439db17dcb')
19 build() {
20     cd "$startdir/src/bacula-$pkgver"
22     ./configure --prefix=/usr --sbindir=/usr/bin \
23     --enable-client-only --enable-bat \
24     --with-x --with-tcp-wrappers --with-openssl \
25     --sysconfdir=/etc/ --with-scriptdir=/etc/bacula/scripts \
26     --with-archivedir=/usr/var/bacula/archive
28     make || return 1
30     # install only bat files
31     mkdir -p $startdir/pkg/etc/ $startdir/pkg/usr/bin/ $startdir/pkg/usr/man/man1
32     mkdir -p $startdir/pkg/etc/ $startdir/pkg/etc/bacula
33     install -m755 $startdir/src/bacula-$pkgver/src/qt-console/bat $startdir/pkg/usr/bin/bat
34     install -m644 $startdir/src/bacula-$pkgver/src/qt-console/bat.conf $startdir/pkg/etc/bacula/bat.conf
35     install -m644 $startdir/src/bacula-$pkgver/manpages/bat.1 $startdir/pkg/usr/man/man1/bat.1