IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=0.78 GAIMENC=2.26 PROGNAME="gaim $VERSION" DESC="\ gaim \n\ \n\ Gaim allows you to talk to anyone using a variety of messaging \n\ protocols, including AIM (Oscar and TOC), ICQ, IRC, Yahoo!, MSN \n\ Messenger, Jabber, Gadu-Gadu, Napster, and Zephyr. These protocols \n\ are implemented using a modular, easy to use design. To use a \n\ protocol, just load the plugin for it. \n\ \n\ Gaim is NOT affiliated with or endorsed by AOL." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/gaim PKGNAME=gaim-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/gaim-$VERSION.tar.bz2 cd gaim-$VERSION/ chown -R root.root . if [ ! -r configure ]; then sh autogen.sh fi CFLAGS=-O2 CXXFLAGS=-O2 \ ./configure --prefix=/usr \ --program-prefix="" \ --program-suffix="" \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make cd $TMP tar -yxvf $CWD/gaim-encryption-$GAIMENC.tar.bz2 cd gaim-encryption-$GAIMENC/ ./configure --prefix=/usr \ --disable-static \ --with-gaim=../gaim-$VERSION \ --program-prefix="" \ --program-suffix="" \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { cd $TMP/gaim-$VERSION/ make install DESTDIR=/package-gaim mkdir -p /package-gaim/usr/doc/gaim-$VERSION cp -a ABOUT-NLS AUTHORS COPYING ChangeLog HACKING NEWS README doc/FAQ doc/CREDITS \ /package-gaim/usr/doc/gaim-$VERSION cd $TMP/gaim-encryption-$GAIMENC/ make install DESTDIR=/package-gaim ( cd /package-gaim/usr/man/man1 rm -f *.gz gzip -9 *.1 ) find /package-gaim -name perllocal.pod | xargs rm -f } attributes() { chown -R root.bin $PKG/package-gaim/usr/bin/ } special() { cd $PKG mv package-gaim/* ./ rmdir package-gaim cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-gaim/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }