diff options
author | Marco Cecchetti <mrc.ildp@gmail.com> | 2010-05-12 23:28:16 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:28:16 +0200 |
commit | b517768799aa2db4da3596daafaca46abe37afdd (patch) | |
tree | 465680eab891f59e53aea88884a5d2e9bc0b6a1a /desktop/avant-window-navigator/avant-window-navigator.SlackBuild | |
parent | a837870fd88cdfb683f8568bd8806fef06c6e5e1 (diff) | |
download | slackbuilds-b517768799aa2db4da3596daafaca46abe37afdd.tar.gz |
desktop/avant-window-navigator: Added to 12.2 repository
Diffstat (limited to 'desktop/avant-window-navigator/avant-window-navigator.SlackBuild')
-rw-r--r-- | desktop/avant-window-navigator/avant-window-navigator.SlackBuild | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/desktop/avant-window-navigator/avant-window-navigator.SlackBuild b/desktop/avant-window-navigator/avant-window-navigator.SlackBuild new file mode 100644 index 0000000000..50294bca46 --- /dev/null +++ b/desktop/avant-window-navigator/avant-window-navigator.SlackBuild @@ -0,0 +1,94 @@ +#!/bin/sh +# Slackware build script for avant-window-navigator +# Written by Marco Cecchetti (mrc.ildp@gmail.com) + +PRGNAM=avant-window-navigator +VERSION=${VERSION:-0.3.2} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-static=no \ + --with-desktop=xfce4 \ + --enable-gtk-doc \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS ChangeLog COPYING* INSTALL NEWS README TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +( cd $PKG/usr/doc/$PRGNAM-$VERSION + ln -s ../../share/gtk-doc/html/libawn html +) + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +# Handle the schemas and such (hopefully) properly +GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" +for RAWNAME in $(find $PKG/etc/gconf/schemas -name "*.schemas") ; do + SCHEMA=$(basename $RAWNAME) + cat << EOF >> $PKG/install/doinst.sh +GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \ +chroot . gconftool-2 --makefile-install-rule /etc/gconf/schemas/$SCHEMA 1>/dev/null +EOF +done +for RAWNAME in $(find $PKG/etc/gconf/schemas -name "*.entries") ; do + ENTRY=$(basename $RAWNAME) + cat << EOF >> $PKG/install/doinst.sh +GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \ +chroot . gconftool-2 --direct \ + --config-source=$GCONF_CONFIG_SOURCE \ + --load /etc/gconf/schemas/$ENTRY 1>/dev/null +EOF +done +unset GCONF_CONFIG_SOURCE + +cd $PKG +/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |