diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/libcgi/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/libcgi/PKGBUILD')
-rw-r--r-- | community/libcgi/PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
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 <swiergot@juvepoland.com> + +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 +} |