#!/bin/sh # Copyright 2003 Slackware Linux, Inc., Concord, CA, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. TMP=/tmp/xfce-build-dir rm -rf $TMP mkdir -p $TMP PKG=$TMP/package-xfce rm -rf $PKG mkdir -p $PKG CWD=`pwd` VERSION=4.0.6 PKGVER=4.0.6 ARCH=alpha BUILD=4 TARGET=$ARCH-alphaslack-linux ( for file in \ dbh-1.0.20.tar.gz \ libxfce4util-$VERSION.tar.gz \ libxfcegui4-$VERSION.tar.gz \ libxfce4mcs-$VERSION.tar.gz \ xfce-mcs-manager-$VERSION.tar.gz \ xfce4-panel-$VERSION.tar.gz \ gtk-xfce-engine-2.2.5.tar.gz \ xfce-mcs-plugins-$VERSION.tar.gz \ xfce-utils-$VERSION.tar.gz \ xfce4-iconbox-$VERSION.tar.gz \ xfce4-themes-$VERSION.tar.gz \ xfce4-mixer-$VERSION.tar.gz \ xfce4-systray-$VERSION.tar.gz \ xfce4-toys-$VERSION.tar.gz \ xfce4-trigger-launcher-$VERSION.tar.gz \ xfdesktop-$VERSION.tar.gz \ xffm-$VERSION.tar.gz \ xffm-icons-$VERSION.tar.gz \ xfprint-$VERSION.tar.gz \ xfwm4-$VERSION.tar.gz \ xfwm4-themes-$VERSION.tar.gz \ xfcalendar-0.1.9.tar.gz \ ; do ( cd $TMP tar xzf $CWD/$file cd `basename $file .tar.gz` chown -R root.root . find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 666 -exec chmod 644 {} \; find . -perm 664 -exec chmod 644 {} \; ./configure \ --prefix=/usr \ --sysconfdir=/etc/X11 \ --enable-static=no \ --enable-gtkhtml \ --enable-xinerama \ $TARGET make make install make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/`basename $file .tar.gz` cp -a AUTHORS COPYING INSTALL NEWS README TODO $PKG/usr/doc/`basename $file .tar.gz` ( cd $PKG 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 for mandir in `find . -name man -type d` ; do if [ -d $mandir ]; then ( cd $mandir find . -type f -name "*.?" -exec gzip -9f {} \; ) fi done ) ) done ( cd $PKG/usr/bin ln -sf xffm xffstab4 ln -sf xffm xfapps ln -sf xffm xfbook ln -sf xffm xfsamba4 ln -sf xffm xftrash4 ln -sf xffm xfapps4 ln -sf xffm xfbook4 ln -sf xffm xffstab ln -sf xffm xfglob4 ln -sf xffm xftree4 ) chown -R root.bin $PKG/usr/bin ( mkdir -p $PKG/etc/X11/xinit cd $PKG/etc/X11/xinit ln -sf ../xfce4/xinitrc xinitrc.xfce4 chmod 755 ../xfce4/xinitrc ) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/xfce-$PKGVER-$ARCH-$BUILD.tgz ) 2>&1 | tee /tmp/xfce.build.log