archrelease: copy trunk to community-any
[arch-community.git] / visitors / trunk / PKGBUILD
blob8c3fe0082da0685b6f42aa9482135ababe59d2ad
1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Maintainer: Roman Kyrylych <roman@archlinux.org>
3 # Contributor: Roman Kyrylych <roman@archlinux.org>
5 pkgname=visitors
6 pkgver=0.7
7 pkgrel=7
8 pkgdesc='A very fast web log analyzer'
9 arch=('x86_64')
10 url="http://www.hping.org/visitors/"
11 license=('GPL2' 'custom')
12 depends=('glibc')
13 optdepends=('perl: for iis2apache.pl')
14 source=(http://www.hping.org/visitors/$pkgname-$pkgver.tar.gz ldflags.patch)
15 sha512sums=('41902a44d802b7318e0a2aec7b2947ca478cac94c97e071fefbae0ba67fe74d2985e7c27bdc64d8789d41ab46586a0478cc8f4b6ed83cb6a32139799cb328a11'
16             '898c3bac8f558d537fa673d1e2556882440dc2783444d01c1dbf5a2dac9c82e06b208cf6d60d4d867166b224716eb5195dbfe19b2e4a35ffa297375efd43b62e')
18 prepare() {
19   cd "$srcdir"/${pkgname}_${pkgver}
20   patch -Np1 -i ${srcdir}/ldflags.patch
23 build() {
24   cd "$srcdir"/${pkgname}_${pkgver}
25   make
28 package() {
29   cd "$srcdir"/${pkgname}_${pkgver}
30   install -D visitors "$pkgdir"/usr/bin/visitors
31   install -D iis2apache.pl "$pkgdir"/usr/bin/iis2apache.pl
32   gzip visitors.1
33   install -Dm644 visitors.1.gz "$pkgdir"/usr/share/man/man1/visitors.1.gz
34   install -Dm644 COPYING "$pkgdir"/usr/share/licenses/visitors/COPYING