#!/bin/sh # Copyright 2003 Slackware Linux, Inc., Concord, CA, USA # Copyright 2007, 2008 Patrick J. Volkerding, Sebeka, MN, 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. # Set initial variables: CWD=$(pwd) TMP=${TMP:-/tmp/e17-build-dir} rm -rf $TMP mkdir -p $TMP PKG=$TMP/package-e17 rm -rf $PKG mkdir -p $PKG VERSION=0.16.999.043 PKGVER=0.16.999.043 ARCH=${ARCH:-i586} BUILD=${BUILD:-2vl59} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" elif [ "$ARCH" = "s390" ]; then SLKCFLAGS="-O2" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2" fi for file in \ eet-1.0.1.tar.bz2 \ evas-0.9.9.043.tar.bz2 \ ecore-0.9.9.043.tar.bz2 \ e_dbus-0.5.0.043.tar.bz2 \ efreet-0.5.0.043.tar.bz2 \ embryo-0.9.9.043.tar.bz2 \ edje-0.9.9.043.tar.bz2 \ enlightenment-0.16.999.043.tar.bz2 \ ; do ( cd $TMP tar xjf $CWD/src/$file || exit 1 cd $(basename $file .tar.bz2) 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 \ $PACKAGE_SPECIFIC_OPTIONS \ --build=$ARCH-vector-linux # Unset this now -- we're done with it unset PACKAGE_SPECIFIC_OPTIONS # I had a few things blow up with # -j > 1... make || exit 1 make install make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/$(basename $file .tar.bz2) # This will cause errors, but won't miss any docs: cp -a \ AUTHORS BUGS COMPOSITOR COPYING COPYING.LIB COPYING_LIBS FAQ HACKING \ INSTALL NEWS NOTES README README.Kiosk README.Plugins THANKS TODO \ example.gtkrc-2.0 $PKG/usr/doc/$(basename $file .tar.bz2) 2> /dev/null \ || true ) || exit 1 done || exit 1 ( 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 ) # Compress and if needed symlink the man pages: if [ -d $PKG/usr/man ]; then ( cd $PKG/usr/man for manpagedir in $(find . -type d -name "man*") ; do ( cd $manpagedir for eachpage in $( find . -type l -maxdepth 1) ; do ln -s $( readlink $eachpage ).gz $eachpage.gz rm $eachpage done gzip -9 *.? ) done ) fi # handle the xinitrc file mkdir -p $PKG/etc/X11/xinit cat $CWD/xinitrc.enlightenment17 > $PKG/etc/X11/xinit/xinitrc.enlightenment17 # handle the kdm session file if present if [ -f /usr/share/apps/kdm/sessions/enlightenment.desktop ]; then mkdir -p $PKG/usr/share/apps/kdm/sessions cat $CWD/enlightenment.desktop > $PKG/usr/share/apps/kdm/sessions/enlightenment.desktop fi mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makeslapt -l y -c n --tlz $TMP/e17-$PKGVER-$ARCH-$BUILD.tlz