VERSION=0.10.38 BUILD=1 ARCH=i386 TAG=ADD PKGNAME=gettext MAINTAINER="tg" IGNOREPATH=/tmp:/proc:/dev:/root:/var:/a:/home:/usr/local STRIPLIB=y STRIPBIN=y PROGNAME="GNU gettext" DESC="\ GNU gettext-$VERSION\n\ \n\ The GNU gettext package is useful for authors and maintainers of\n\ internationalized software, or for anyone compiling programs that\n\ use it. GNU gettext provides the needed tools and library functions\n\ for the handling of messages in different languages. Some other GNU\n\ packages use the gettext program (included in this package) to\n\ internationalize the messages given by shell scripts." compile() { # First, back up the good libintl.h and locale.alias, since # 'make install' will stomp on them. We don't include these # libintl headers or libraries, since glibc already provides them. mkdir -p $TMP/real-headers cp -a /usr/include/libintl.h $TMP/real-headers cp -a /usr/share/locale/locale.alias $TMP/real-headers # Build tar xvzf $CWD/gettext-$VERSION.tar.gz cd gettext-$VERSION ./configure --prefix=/usr \ --with-included-gettext \ $ARCH-slackware-linux make CFLAGS=-O2 } install() { # Install software make CFLAGS=-O2 install mkdir -p /usr/doc/gettext-$VERSION cp ABOUT-NLS AUTHORS BUGS COPYING ChangeLog DISCLAIM INSTALL \ NEWS README README-alpha README.gemtext THANKS TODO \ /usr/doc/gettext-$VERSION # Remove library that glibc2 makes obsolete rm /usr/lib/libintl.la rm /usr/lib/libintl.a # Restore headers we saved cp -a $TMP/real-headers/libintl.h /usr/include/libintl.h cp -a $TMP/real-headers/locale.alias /usr/share/locale/locale.alias }