# Description: CGI library for C
# URL: https://libcgi.sourceforge.net/
# Maintainer: unmaintained

name=libcgi
version=1.0
release=2
source=(https://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.gz)

build() {
  cd $name-$version

  export CFLAGS="$CFLAGS -fPIC"
  install -d $PKG/usr/lib $PKG/usr/include

  ./configure \
    --prefix=/usr \
    --disable-nls

  make
  make prefix=$PKG/usr install
}
