From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/libcgi/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 community/libcgi/PKGBUILD (limited to 'community/libcgi/PKGBUILD') diff --git a/community/libcgi/PKGBUILD b/community/libcgi/PKGBUILD new file mode 100644 index 000000000..1cbb0ed35 --- /dev/null +++ b/community/libcgi/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 21582 2010-07-16 19:26:13Z tdziedzic $ +# Contributor: Jaroslaw Swierczynski + +pkgname=libcgi +pkgver=1.0 +pkgrel=5 +pkgdesc='A powerful and easy to use library for writing CGI applications in C' +arch=('i686' 'x86_64') +url='http://libcgi.sourceforge.net/' +license=('GPL') +depends=('glibc') +source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz") +md5sums=('110af367081d33c7ed6527a1a60fc274') + +build() { + cd ${pkgname}-${pkgver} + + sed -i "s/\(hextable\['e'\] = \)13/\114/" src/cgi.c + + #Arch64 Fix + if [ "$CARCH" = "x86_64" ]; then + export CFLAGS="$CFLAGS -fPIC" + export CXXFLAGS="$CFLAGS" + fi + + ./configure \ + --prefix=/usr + + make +} + +package() { + cd ${pkgname}-${pkgver} + + mkdir -p ${pkgdir}/usr/{lib,include} + + make prefix=${pkgdir}/usr install +} -- cgit v1.2.3-54-g00ecf