DOCS="AUTHORS COPYING NEWS README README.cvs-commits TODO \ tmpdocs/tutorial tmpdocs/examples" IGNOREPATH=/boot:/dev:/home:/mnt:/proc:/root:/tmp:/var STRIPLIB=y STRIPBIN=y SETATTR=y VERSION=1.2.10 PROGNAME="The Gimp Toolkit" # |-----handy-ruler------------------------------------------------------| SLACKDESC="\ gtkplus: gtk+-$VERSION\n\ gtkplus:\n\ gtkplus: GTK+, which stands for the Gimp ToolKit, is a library for creating\n\ gtkplus: graphical user interfaces for the X Window System. This library is\n\ gtkplus: needed for GIMP (the GNU Image Manipulation Program) and programs\n\ gtkplus: comprising the GNOME project (most of the things in this GTK package\n\ gtkplus: series).\n\ gtkplus:\n\ gtkplus:\n\ gtkplus:\n\ gtkplus:" # maintainer ARCH=i586 BUILD=4rob MAINTAINER="Robert Stan " SOURCE=http:/www.gtk.org/ LOCATION=ftp://ftp.linuxpackages.net/pub/Slackware-8/robert/gnome1/ # package name PKGNAME="gtkplus-${VERSION}-${ARCH}-${BUILD}" # compiler flags PKGOPT="-O2 -fomit-frame-pointer -march=$ARCH" compile() { tar xvzf $CWD/gtk+-$VERSION.tar.gz ; cd gtk+-$VERSION for patch in `ls $CWD/*.patch.bz2` ; do bzip2 -cd $patch | patch -p1 ; done CFLAGS=$PKGOPT ./configure \ --prefix=/opt/gnome \ --sysconfdir=/etc/opt/gnome \ --with-xinput=xfree \ --enable-debug=no \ || exit 1 CFLAGS=$PKGOPT make -j2 || exit 1 } install() { make install # Make cleaned-up versions of examples and tutorial for installation ./mkinstalldirs tmpdocs/tutorial ginstall -m 0644 docs/html/gtk_tut.html docs/html/gtk_tut-[0-9]*.html docs/html/*.gif tmpdocs/tutorial for dir in examples/* ; do if [ -d $dir ] ; then ./mkinstalldirs tmpdocs/$dir for file in $dir/* ; do case $file in *pre1.2.7) ;; *) ginstall -m 0644 $file tmpdocs/$dir ;; esac done fi done mkdir -p /usr/doc/gtk+-$VERSION cp -a $DOCS /usr/doc/gtk+-$VERSION } attributes() { echo } special() { # Package description echo -e $SLACKDESC > $CTL/slack-desc echo -e $SLACKDESC > $CWD/$PKGNAME.txt } subpacks() { echo }