summaryrefslogtreecommitdiff
path: root/community/libcgi/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/libcgi/PKGBUILD')
-rw-r--r--community/libcgi/PKGBUILD38
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
+}