IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=0.14.1 PROGNAME="GNU gettext tools $VERSION" DESC="\ gettext-tools \n\ \n\ The GNU gettext-tools package is useful for authors and maintainers of \n\ internationalized software, or for anyone compiling programs that \n\ use the gettext functions. This package provides the needed tools and \n\ library functions for the handling of messages in different languages. \n\ Some other GNU packages use the gettext program (included in this \n\ package) to internationalize the messages given by shell scripts." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/gnu/gettext/ PKGNAME=gettext-tools-$VERSION-s390-$BUILD TAG=ADD compile() { tar -yxvf $CWD/gettext-$VERSION.tar.bz2 cd gettext-$VERSION/ chown -R root.root . CFLAGS="-O2" \ ./configure --prefix=/usr make } install() { cd gettext-tools make install mandir=/usr/man DESTDIR=/package-gettext ( cd /package-gettext/usr/man/man1/ rm -f *.gz gzip -9 *.1 ) ( cd /package-gettext/usr/info rm -f *.gz gzip -9 * ) ( cd /package-gettext/usr/share/ mv doc .. cd ../doc mv gettext gettext-tools-$VERSION cd gettext-tools-$VERSION # These take up a ton of space otherwise tar cf examples.tar examples bzip2 -9 examples.tar rm -rf examples # Move the HTML docs into a subdirectory: mkdir html mv *.html html # This file isn't in the package, but it's in one you have to install, or there will be # bigger problems than this dead link: rm -f ABOUT-NLS ; ln -sf /usr/share/gettext/ABOUT-NLS . ) cp -a AUTHORS ../COPYING INSTALL NEWS README TODO \ /package-gettext/usr/doc/gettext-tools-$VERSION } attributes() { chown -R root.bin $PKG/package-gettext/usr/bin/ } special() { cd $PKG mv package-gettext/* ./ rmdir package-gettext/ cd $CTL cat $CWD/slack-desc.gettext-tools > slack-desc sed -e 's%package-gettext/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new } subpacks() { repack gettext }