From def6cbb63a42977c3e5b29c2aef3aa1e56befc77 Mon Sep 17 00:00:00 2001 From: Gwenhael Le moine Date: Thu, 13 Jan 2011 11:48:51 +0700 Subject: [PATCH] Added --- l/cgi-util/cgi-util.SlackBuild | 71 ++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100755 l/cgi-util/cgi-util.SlackBuild diff --git a/l/cgi-util/cgi-util.SlackBuild b/l/cgi-util/cgi-util.SlackBuild new file mode 100755 index 00000000..95fd4227 --- /dev/null +++ b/l/cgi-util/cgi-util.SlackBuild @@ -0,0 +1,71 @@ +#!/bin/sh -x + +# variables +VERSION=2.2.1 +BUILD=1 +PACKAGER=cyco + +TMP=/tmp/$PACKAGER +CWD=$(pwd) +OUTPUT=/tmp + +PRGNAM=$(basename $CWD) +PKG=$TMP/pkg-$PRGNAM + +ARCH=$(uname -m) + +REPOSITORY=/home/cycojesus/projets/packages/repositories/$PRGNAM +PREFIX=/usr + +# nettoyage préalable +rm -fr $PKG $TMP/$PRGNAM-$VERSION + +mkdir -p $PKG + +# mise en place +cd $TMP + +[ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] && wget -c ftp://ftp.tuxpaint.org/unix/www/cgi-util/$PRGNAM-$VERSION.tar.gz -O $CWD/$PRGNAM-$VERSION.tar.gz +tar xf $CWD/$PRGNAM-$VERSION.tar.gz + +( cd $TMP/$PRGNAM-$VERSION + make LIBDIR=$PREFIX/lib$(echo "${ARCH}" | grep -o 64) INCDIR=$PREFIX/include + + mkdir -p $PKG$PREFIX/lib$(echo "${ARCH}" | grep -o 64) $PKG$PREFIX/include + make install LIBDIR=$PKG$PREFIX/lib$(echo "${ARCH}" | grep -o 64) INCDIR=$PKG$PREFIX/include +) + +# correction +( cd $PKG + chown -R root:root * + find $PKG$PREFIX/man -name "*.?" -type f -exec gzip -9 {} \; +) + +# embaumement +mkdir -p $PKG/install + +cat < $PKG/install/slack-desc +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +$PRGNAM: $PRGNAM (CGI C library) +$PRGNAM: +$PRGNAM: cgi-util is a powerful, small C library that allows you to create +$PRGNAM: CGI ("Common Gateway Interface") programs for websites. +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: http://www.newbreedsoftware.com/cgi-util/ +$PRGNAM: +EOF + +# empaquetage +cd $PKG +makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$PACKAGER.txz