#!/bin/bash # # gtkspell.SlackBuild # code: Vicious ( michal@scxd.info ) set -e # PACKAGE GENERAL INFO [ EDIT] PKGNAME=gtkspell VERSION=2.0.11 BUILD=1X ARCH=i686 URL=http://gtkspell.sourceforge.net/download/gtkspell-$VERSION.tar.gz CWD=`pwd` TMP=/tmp/$PKGNAME rm -rf $TMP mkdir -p $TMP $TMP/package $TMP/package/install # PACKAGE DESCRIPTION [ EDIT] cat << SLACKDESC > $TMP/package/install/slack-desc |-----handy-ruler------------------------------------------------------| $PKGNAME: gtkspell (gtk spelling library) $PKGNAME: $PKGNAME: GtkSpell provides word-processor-style highlighting and replacement $PKGNAME: of misspelled words in a GtkTextView widget. Right-clicking a $PKGNAME: misspelled word pops up a menu of suggested replacements. $PKGNAME: $PKGNAME: $PKGNAME: $PKGNAME: $PKGNAME: Package prepared by slawul ( slawek@scxd.info ) SLACKDESC # step 1 : DOWNLOAD SOURCE ( wget -c $URL -P $CWD ) # step 2 : UNPACK SOURCE AND COMPILE tar zxvf $CWD/$PKGNAME-$VERSION.tar.gz -C $TMP chown root:root $TMP -R cd $TMP/$PKGNAME-$VERSION CFLAGS=${CFLAGS:--O2 -march=i686 -mcpu=i686} ./configure \ --prefix=/usr \ --disable-gtk-doc make make install DESTDIR=$TMP/package # step 3 : STRIP BINARIES && GZIP MANUALS ( cd $TMP/package find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) ( gzip $TMP/package/usr/man/man?/* ) # step 4 : CREATE PACKAGE && CLEAN TMP cd $TMP/package makepkg -l y -c n $CWD/$PKGNAME-$VERSION-$ARCH-$BUILD.tgz rm -rf $TMP