summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ee8a288c92aa3fcc00294520869954d9e415c194 (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
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Darshit Shah <darnir@gmail.com>

_gitname=wget2
pkgname=${_gitname}-git
pkgver=0.0.r788.g2406808
pkgrel=1
pkgdesc="Updated version of popular Wget tool"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/wget/wget.html"
license=('GPL3')
depends=('libutil-linux' 'gnutls' 'libidn' 'libpsl' 'gpgme' 'nghttp2')
optdepends=("ca-certificates: HTTPS Downloads")
makedepends=('git' 'rsync')
provides=('wget2')
conflicts=('wget2')
source=("git://git.savannah.gnu.org/wget/${_gitname}.git"
        "git://git.savannah.gnu.org/gnulib.git")
md5sums=('SKIP' 'SKIP')

build() {
  cd $_gitname
  git submodule init
  git config submodule.gnulib.url "$srcdir/gnulib"
  ./bootstrap
  ./configure --prefix=/usr --sysconfdir=/etc
}

package() {
  cd $_gitname
  make DESTDIR="$pkgdir/" install
}

pkgver() {
  cd $_gitname
  #Use the tag from the last commit.
  # XXX: Hack for a decent version number till the first version is tagged
  git tag v0.0 e0452bc || true
  git describe --always --tags --long | sed 's/^v//; s/-/.r/; s/-/./g'
}

check() {
  cd $_gitname
  make check
  make clean
}

# vim:set ts=2 sw=2 tw=0 et: