updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / libcgi / PKGBUILD
blob1cbb0ed35180114a43bf79b58ce36fdc393ccf43
1 # $Id: PKGBUILD 21582 2010-07-16 19:26:13Z tdziedzic $
2 # Contributor: Jaroslaw Swierczynski <swiergot@juvepoland.com>
4 pkgname=libcgi
5 pkgver=1.0
6 pkgrel=5
7 pkgdesc='A powerful and easy to use library for writing CGI applications in C'
8 arch=('i686' 'x86_64')
9 url='http://libcgi.sourceforge.net/'
10 license=('GPL')
11 depends=('glibc')
12 source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz")
13 md5sums=('110af367081d33c7ed6527a1a60fc274')
15 build() {
16   cd ${pkgname}-${pkgver}
18   sed -i "s/\(hextable\['e'\] = \)13/\114/" src/cgi.c
20   #Arch64 Fix
21    if [ "$CARCH" = "x86_64" ]; then
22       export CFLAGS="$CFLAGS -fPIC"
23       export CXXFLAGS="$CFLAGS"
24    fi
26   ./configure \
27     --prefix=/usr
29   make
32 package() {
33   cd ${pkgname}-${pkgver}
35   mkdir -p ${pkgdir}/usr/{lib,include}
37   make prefix=${pkgdir}/usr install