mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
|
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
|
||
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
||
|
# Maintainer: JJDaNiMoTh <jjdanimoth.aur@gmail.com>
|
||
|
# Contributor: Tino Reichardt <milky-archlinux@mcmilk.de>
|
||
|
|
||
|
pkgname=sarg
|
||
|
pkgver=2.2.5
|
||
|
pkgrel=1
|
||
|
pkgdesc="Squid Analysis Report Generator"
|
||
|
arch=('i686' 'x86_64')
|
||
|
url="http://sarg.sourceforge.net"
|
||
|
license=('GPL')
|
||
|
depends=('gd' 'glibc')
|
||
|
source=(http://downloads.sourceforge.net/sourceforge/sarg/$pkgname-$pkgver.tar.gz \
|
||
|
sarg-2.2.3.1-paths.diff.gz)
|
||
|
md5sums=('0f4481e375dedf9ab8c682c9407162ff'
|
||
|
'844fdaf98fe6249109a905db870005b1')
|
||
|
|
||
|
build() {
|
||
|
cd $startdir/src/$pkgname-$pkgver
|
||
|
patch -p1 < ../sarg-2.2.3.1-paths.diff || return 1
|
||
|
|
||
|
./configure \
|
||
|
--prefix="/etc" \
|
||
|
--sysconfdir="/etc/sarg" \
|
||
|
--enable-bindir="/usr/bin" \
|
||
|
--enable-mandir="/usr/man" \
|
||
|
--enable-sysconfdir="/etc/sarg" \
|
||
|
--enable-htmldir="/home/httpd/html"
|
||
|
|
||
|
make || return 1
|
||
|
make \
|
||
|
BINDIR="$startdir/pkg/usr/bin" \
|
||
|
MANDIR="$startdir/pkg/usr/man/man1" \
|
||
|
SYSCONFDIR="$startdir/pkg/etc/sarg" \
|
||
|
HTMLDIR="$startdir/pkg/home/httpd/html" \
|
||
|
install || return 1
|
||
|
|
||
|
mkdir -p $pkgdir/usr/share
|
||
|
mv $pkgdir/usr/man $pkgdir/usr/share/
|
||
|
}
|