1 # $Id: PKGBUILD 21582 2010-07-16 19:26:13Z tdziedzic $
2 # Contributor: Jaroslaw Swierczynski <swiergot@juvepoland.com>
7 pkgdesc='A powerful and easy to use library for writing CGI applications in C'
9 url='http://libcgi.sourceforge.net/'
12 source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz")
13 md5sums=('110af367081d33c7ed6527a1a60fc274')
16 cd ${pkgname}-${pkgver}
18 sed -i "s/\(hextable\['e'\] = \)13/\114/" src/cgi.c
21 if [ "$CARCH" = "x86_64" ]; then
22 export CFLAGS="$CFLAGS -fPIC"
23 export CXXFLAGS="$CFLAGS"
33 cd ${pkgname}-${pkgver}
35 mkdir -p ${pkgdir}/usr/{lib,include}
37 make prefix=${pkgdir}/usr install