updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / weighttp-git / PKGBUILD
blob3305788f5670b817d2c909fbf2ec791c710d5f44
1 # Maintainer: Leif Warner <abimelech@gmail.com>
2 pkgname=weighttp-git
3 pkgver=20111227
4 pkgrel=1
5 pkgdesc="A lightweight and small benchmarking tool for webservers."
6 arch=('i686' 'x86_64')
7 url="http://redmine.lighttpd.net/projects/weighttp/wiki"
8 license=('custom')
9 depends=('libev')
10 makedepends=('git' 'python2')
11 provides=('weighttp')
12 conflicts=('weighttp')
14 _gitroot=git://git.lighttpd.net/weighttp
15 _gitname=weighttp
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [[ -d "$_gitname" ]]; then
22     cd "$_gitname" && git pull origin
23     msg "The local files are updated."
24   else
25     git clone "$_gitroot" "$_gitname"
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting build..."
31   rm -rf "$srcdir/$_gitname-build"
32   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
35   #
36   # BUILD HERE
37   #
38   python2 waf configure --prefix=/usr
39   python2 waf build
42 package() {
43   cd "$srcdir/$_gitname-build"
44   DESTDIR="$pkgdir" python2 waf install
45   install -D COPYING "$pkgdir/usr/share/licenses/$_gitname/COPYING"
48 # vim:set ts=2 sw=2 et: