updated on Wed Jan 18 04:00:29 UTC 2012
[aur-mirror.git] / wget-bzr / PKGBUILD
blob58e7c3ecf6900895eac3a711fb33f95bb4826ada
1 # AUR Maintainer: Andreas B. Wagner <AndreasBWagner@gmail.com>
2 # AUR Maintainer: Caleb Cushing <xenoterracide@gmail.com>
3 # Arch Maintainer: Allan McRae <allan@archlinux.org>
4 # Contributor: Judd Vinet <jvinet@zeroflux.org>
6 pkgname='wget-bzr'
7 pkgver=2454
8 pkgrel=2
9 pkgdesc="A network utility to retrieve files from the Web"
10 arch=('i686' 'x86_64')
11 url="http://www.gnu.org/software/wget/wget.html"
12 license=('GPLv3')
13 groups=('base')
14 depends=('glibc' 'openssl')
15 makedepends=('bzr')
16 provides=('wget')
17 conflicts=('wget')
18 optdepends=('ca-certificates: HTTPS downloads')
19 backup=("etc/wgetrc")
20 install=wget.install
22 _bzrtrunk="http://bzr.savannah.gnu.org/r/wget/trunk/"
23 _bzrmod="wget"
25 build() {
26         cd "$srcdir"
27         msg "Connecting to Bazaar server...."
29         if [ -d $_bzrmod ] ; then
30                 cd ${_bzrmod} && bzr --no-plugins pull ${_bzrtrunk} -r ${pkgver}
31                 msg "The local files are updated."
32         else
33                 bzr --no-plugins branch ${_bzrtrunk} ${_bzrmod} -q -r ${pkgver}
34         fi
36         msg "Bazaar checkout done or server timeout"
37         msg "Starting make..."
39         rm -rf "$srcdir/$_bzrmod-build"
40         cp -r "$srcdir/$_bzrmod" "$srcdir/$_bzrmod-build"
41         cd "$srcdir/$_bzrmod-build"
43         #
44         # BUILD HERE
45         #
46         ./bootstrap
47         ./configure --prefix=/usr
48         make || return 1
49         make check || return 1
52 package() {
53         cd "$srcdir/$_bzrmod-build"
54         make DESTDIR="$pkgdir/" install