IGNOREPATH=/etc/cups:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.2.5 EXTRAS_VER=1.2.0 PROGNAME="GNU Image Manipulation Program $VERSION" DESC="\ gimp (The GNU Image Manipulation Program) \n\ \n\ The GIMP is a powerful tool for the preparation and manipulation of \n\ digital images. The GIMP provides the user with a wide variety of \n\ image manipulation, painting, processing, and rendering tools. The \n\ GIMP's open design and extensible architecture make for a very \n\ powerful end product for photo and image retouching, web graphics \n\ design, or digital illustration." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gimp.org/pub/gimp/ PKGNAME=gimp-$VERSION-s390-$BUILD TAG=OPT compile() { return tar -yxvf $CWD/gimp-$VERSION.tar.bz2 cd gimp-$VERSION/ # This needs to go into /usr or aclocal files are misplaced. CFLAGS=-O2 \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --with-gtk-prefix=/usr \ --enable-threads make } install() { cd $TMP/gimp-$VERSION/ make install mkdir -p /usr/doc/gimp-$VERSION cp -r ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL MAINTAINERS NEWS \ PLUGIN_MAINTAINERS README README.i18n README.perl README.win32 TODO docs \ /usr/doc/gimp-$VERSION cp -r AUTHORS COPYING ChangeLog INSTALL NEWS README \ /usr/doc/gimp-data-extras-${EXTRAS_VER} # we need the gimp installed before we can build this stuff /sbin/ldconfig cd $TMP tar -yxvf $CWD/gimp-data-extras-$EXTRAS_VER.tar.bz2 cd gimp-data-extras-$EXTRAS_VER/ ./configure --prefix=/usr make make install mkdir -p /usr/doc/gimp-data-extras-$EXTRAS_VER cp AUTHORS COPYING ChangeLog INSTALL NEWS README \ /usr/doc/gimp-data-extras-$EXTRAS_VER rm -f /package-perl/usr/lib/perl5/site_perl/5.8.0/s390-linux/perllocal.pod } attributes() { chown -R root.bin $PKG/usr/bin \ $PKG/package-perl/usr/bin chmod 444 $PKG/usr/man/man1/embedxpm.1* \ $PKG/usr/man/man1/xcftopnm.1* \ $PKG/usr/man/man3/* } special() { cd $PKG mv package-perl/usr/bin/* usr/bin/ mv package-perl/usr/lib/perl5 usr/lib/ rm -rf package-perl /package-perl rm -rf usr/lib/perl5/5.8.0/ rm etc/ld.so.cache mkdir -p usr/share/applications/ cp -a $CWD/gimp-1.2.desktop usr/share/applications/ cp -a $CWD/wilber-icon.png usr/share/gimp/1.2/ cd $CTL cat $CWD/slack-desc > slack-desc }