updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bacula-wx-console / PKGBUILD
blob5ec77cb6862a2fda483a90c4a792bcd6e431a82e
1 # Contributor: Calogero Lo Leggio <kalos@autistici.org>
3 pkgname=bacula-wx-console
4 pkgver=2.2.8
5 pkgrel=2
6 pkgdesc="Bacula, the Network Backup Tool for Linux, Unix, Mac and Windows [WX console]"
7 arch=(i686 x86_64)
8 url="http://www.bacula.org"
9 license=('GPL')
10 depends=('wxgtk')
11 makedepends=('wxgtk')
12 backup=(etc/bwx-console.conf)
13 source=("http://downloads.sourceforge.net/sourceforge/bacula/bacula-$pkgver.tar.gz")
14 md5sums=('4547d0bf9f976d5d9ea5f21a7bd078ee')
16 build() {
17   cd "$startdir/src/bacula-$pkgver"
19   ./configure --prefix=/usr --sbindir=/usr/bin \
20     --enable-client-only --enable-bwx-console \
21     --with-x --with-tcp-wrappers --with-openssl \
22     --sysconfdir=/etc/ --with-scriptdir=/etc/bacula/scripts \
23     --with-archivedir=/usr/var/bacula/archive
25   make || return 1
27   # install only wx-console files
28   mkdir -p $startdir/pkg/etc/ $startdir/pkg/usr/bin/ $startdir/pkg/usr/man/man1
29   install -m755 $startdir/src/bacula-$pkgver/src/wx-console/bwx-console $startdir/pkg/usr/bin/bwx-console
30   install -m644 $startdir/src/bacula-$pkgver/src/wx-console/bwx-console.conf $startdir/pkg/etc/bwx-console.conf
31   install -m644 $startdir/src/bacula-$pkgver/manpages/bacula-bwxconsole.1 $startdir/pkg/usr/man/man1/bacula-bwxconsole.1