#!/bin/bash # # rppppoek.SlackBuild # code: Vicious ( michal@scxd.info ) set -e # PACKAGE GENERAL INFO [ EDIT] PKGNAME=rppppoek VERSION=0.40 BUILD=1X ARCH=i686 URL=http://download.berlios.de/segfaultskde/rppppoek-$VERSION.tar.bz2 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: rppppoek ( Roaring Penguin PPPoE Kontrol ) $PKGNAME: $PKGNAME: Roaring Penguin PPPoE Kontrol is a little tool that docks to the KDE3 $PKGNAME: system tray. It provides you with a simple contextmenu, including $PKGNAME: entries to connect to your provider, disconnect again and get your $PKGNAME: current dynamic IP address, assigned to you by your provider. $PKGNAME: The IP can also be copied to the clipboard. $PKGNAME: $PKGNAME: $PKGNAME: Package prepared by Vicious ( michal@scxd.info ) SLACKDESC # step 1 : DOWNLOAD SOURCE ( wget -c $URL -P $CWD ) # step 2 : UNPACK SOURCE AND COMPILE tar jxvf $CWD/$PKGNAME-$VERSION.tar.bz2 -C $TMP chown root:root $TMP -R cd $TMP/$PKGNAME-$VERSION CFLAGS=${CFLAGS:--O2 -march=i686 -mcpu=i686} ./configure \ --prefix=/opt/kde \ --disable-debug \ --mandir=/usr/man \ --sysconfdir=/etc 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