--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/cgi.h
+-rw-r--r-- root/root usr/include/session.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libcgi.a
+-rwxr-xr-x root/root usr/lib/libcgi.so
--- /dev/null
+# Description: CGI library for C.
+# URL: http://libcgi.sourceforge.net/
+# Packager: Ivan Lyangouzov, tzong at crux dot spb dot ru
+# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+
+name=libcgi
+version=1.0
+release=1
+source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.gz)
+
+build() {
+ cd $name-$version
+ install -d $PKG/usr/lib $PKG/usr/include
+ sed -e 's|va_copy(bkp, str);|va_copy(bkp, ptr);|' \
+ -i src/string.c
+
+ ./configure \
+ --prefix=/usr \
+ --disable-nls
+
+ make
+ make prefix=$PKG/usr install
+}