Repository 32bit  Forum
Repository 64bit  Wiki

Enlightenment DR17 from svn

Da Slacky.eu.

Semplice script che scarica enlightenment da svn, lo compila e lo pacchettizza e installa ;)

    #!/bin/sh
    #e17 Slackware Builder
    #This simple script download lastest trunk from e17's SVN, package and install it ;)
    #You can select if you want a basiliar or a full-of-all installation
    #Compatible with Slackware 12.2 and (i hope) later
    #Copyright jimmy_page_89 ( email jimmy_page_89 AT hotmail DOT it )
    #Thanks to Conraid for SVN help :D

    echo "##e17 Slackware Builder##"
    echo "##Author: jimmy_page_89##"
    TMP=${TMP:-/tmp/e17}
    TAG=1jim
    CWD=`pwd`
    OUTPUT=$CWD/e17-slackware-pkgs-1jim
    ARCH=`uname -m`
    JOBS="-j3"

    if [ "$ARCH" = "i486" ]; then
       SLKCFLAGS="-O2 -march=i486 -mtune=i686"
       LIBDIRSUFFIX=""
       SLKLDFLAGS=""
    elif [ "$ARCH" = "i686" ]; then
       SLKCFLAGS="-O2 -march=i686 -mtune=i686"
       LIBDIRSUFFIX=""
       SLKLDFLAGS=""
    elif [ "$ARCH" = "x86_64" ]; then
       SLKCFLAGS="-O2 -fPIC"
       LIBDIRSUFFIX="64"
       SLKLDFLAGS="-L/usr/lib64"
    fi

    echo "checking dependencies..."
    if [ ! -d $OUTPUT ];then
       mkdir -p $OUTPUT
    fi
    mkdir -p $TMP
    cd $OUTPUT
    for j in lua libast libmpd;
    do
    if [ ! -e /var/log/packages/$j-* ];then
       echo "Please install $j, exiting..."
       exit 1
    fi
    done
    echo "Start Downloading..."
    cd $TMP
    svn co http://svn.enlightenment.org/svn/e || exit 1
    wget http://www.slackbuilds.org/slackbuilds/12.2/desktop/enlightenment/xinitrc.enlightenment17 || exit 1
    cd e/trunk
    VERSION=r$(LANG=en_US svn info | awk '/Revision:/{print $2}')

    for i in BINDINGS BROKEN devs DOCS E16 packaging PROTO SCRIPTS THEMES web;
    do
       rm -rf $i || exit 1
    done

    mkdir -p $OUTPUT || exit 1
    for i in imlib2 eina eet imlib2_loaders imlib2_tools evas ecore efreet embryo edje e_dbus e exml esmart eterm ethumb emotion;
    do
    if [ ! -e $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz ];then
       echo "Building $i..."
       cd $i
       if [ "$i" = "eterm" ];then
           cd Eterm
       fi
       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 {} \;

       PKG=$TMP/package-$i
       mkdir -p $PKG || exit 1
       LDFLAGS="$SLKLDFLAGS" \
       CFLAGS="$SLKCFLAGS" \
       CXXFLAGS="$SLKCFLAGS" \
       ./autogen.sh \
       --prefix=/usr \
       --libdir=/usr/lib${LIBDIRSUFFIX} \
       --sysconfdir=/etc \
         --localstatedir=/var \
         --mandir=/usr/man \
         --disable-static || exit 1

       make $JOBS|| exit 1
       make install DESTDIR=$PKG || exit 1
       ( 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/$i || exit 1
       cp -a AUTHORS COPYING INSTALL NEWS README $PKG/usr/doc/$i
       if [ "$i" = "e" ];then
          mkdir -p $PKG/etc/X11/xinit
          cp $TMP/xinitrc.enlightenment17 $PKG/etc/X11/xinit/
       fi

       mkdir -p $PKG/install
       echo "       |-----handy-ruler------------------------------------------------------|" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "$i: $i svn build - $VERSIO - $VERSION" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "" >> $PKG/install/slack-desc
       echo "if [ -x /usr/bin/update-mime-database ]; then
      /usr/bin/update-mime-database /usr/share/mime &> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       echo "if [ -x /usr/bin/update-desktop-database ]; then
      /usr/bin/update-desktop-database 1> /dev/null 2> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       echo "if [ -x /usr/bin/gtk-update-icon-cache ]; then
      /usr/bin/gtk-update-icon-cache  -f -q /usr/share/icons/hicolor 1> /dev/null 2> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       cd $PKG
       makepkg -l y -c n $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz || exit 1
       upgradepkg --install-new $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz
       rm -rf $TMP/package-$i || exit 1
       cd $TMP/e/trunk
    fi
    done

    cd $TMP/e/trunk/OLD
    for i in etk etk_extra engrave enhance edata ecore_li edb emphasis epsilon evolve exhibit e_utils epeg;
    do
    if [ ! -e $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz ];then
       echo "Building $i..."
       cd $i
       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 {} \;

       PKG=$TMP/package-$i
       mkdir -p $PKG || exit 1
       if [ "$i" = "evfs" ];then
         mv debian/changelog debian/changelog.in
       fi
       LDFLAGS="$SLKLDFLAGS" \
       CFLAGS="$SLKCFLAGS" \
       CXXFLAGS="$SLKCFLAGS" \
       ./autogen.sh \
       --prefix=/usr \
       --libdir=/usr/lib${LIBDIRSUFFIX} \
       --sysconfdir=/etc \
         --localstatedir=/var \
         --mandir=/usr/man \
         --disable-static || exit 1

       make $JOBS || exit 1
       make install DESTDIR=$PKG || exit 1
       ( 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/$i || exit 1
       cp -a AUTHORS COPYING INSTALL NEWS README $PKG/usr/doc/$i
       mkdir -p $PKG/install
       echo "       |-----handy-ruler------------------------------------------------------|" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "$i: $i svn build - $VERSIO - $VERSION" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "" >> $PKG/install/slack-desc
       echo "if [ -x /usr/bin/update-mime-database ]; then
      /usr/bin/update-mime-database /usr/share/mime &> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       echo "if [ -x /usr/bin/update-desktop-database ]; then
      /usr/bin/update-desktop-database 1> /dev/null 2> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       echo "if [ -x /usr/bin/gtk-update-icon-cache ]; then
      /usr/bin/gtk-update-icon-cache  -f -q /usr/share/icons/hicolor 1> /dev/null 2> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       cd $PKG
       makepkg -l y -c n $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz || exit 1
       upgradepkg --install-new $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz
       rm -rf $TMP/package-$i || exit 1
       cd $TMP/e/trunk/OLD
    fi
    done

    cd $TMP/e/trunk
    i=ewl;
    if [ ! -e $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz ];then
       echo "Building $i..."
       cd $i
       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 {} \;

       PKG=$TMP/package-$i
       mkdir -p $PKG || exit 1
       #make clean
       ECORE_EVAS_LIBS="$SLKLDFLAGS -lecore_evas -lecore_x -lecore_input -lecore_txt -levas -lecore -leina" \
       ECORE_XCB_LIBS="$SLKLDFLAGS -lxcb -lecore_x -lecore_input -lecore_txt -levas -lecore -leina" \
       ECORE_X_LIBS="$SLKLDFLAGS -lecore_x -lecore_input -lecore_txt -levas -lecore -leina" \
       ECORE_LIBS="$SLKLDFLAGS -lecore_txt -lecore_file -lecore_con -lgnutls -lcurl -lecore -leina" \
       EDJE_LIBS="$SLKLDFLAGS -ledje -lecore_imf_evas -llua -lm -lembryo -lecore_job -leet -lecore_imf -levas -lecore -leina" \
       EFREET_LIBS="$SLKLDFLAGS -lefreet -lefreet_mime -lecore_file -lecore_con -lgnutls -lcurl -lecore -leina" \
       EMOTION_LIBS="$SLKLDFLAGS -lemotion -levas -leina" \
       EVAS_LIBS="$SLKLDFLAGS -levas -leina" \
       EPSILON_LIBS="$SLKLDFLAGS -lepsilon" \
       LDFLAGS="$SLKLDFLAGS" \
       CFLAGS=" $SLKCFLAGS" \
       CXXFLAGS="$SLKCFLAGS" \
       ./autogen.sh \
       --prefix=/usr \
       --libdir=/usr/lib${LIBDIRSUFFIX} \
       --sysconfdir=/etc \
         --localstatedir=/var \
         --mandir=/usr/man \
       --libexecdir=/usr/lib${LIBDIRSUFFIX} \
         --disable-static || exit 1

       make $JOBS|| exit 1
       make install DESTDIR=$PKG || exit 1
       ( 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/$i || exit 1
       cp -a AUTHORS COPYING INSTALL NEWS README $PKG/usr/doc/$i

       mkdir -p $PKG/install
       echo "       |-----handy-ruler------------------------------------------------------|" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "$i: $i svn build - $VERSIO - $VERSION" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "" >> $PKG/install/slack-desc
       echo "if [ -x /usr/bin/update-mime-database ]; then
      /usr/bin/update-mime-database /usr/share/mime &> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       echo "if [ -x /usr/bin/update-desktop-database ]; then
      /usr/bin/update-desktop-database 1> /dev/null 2> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       echo "if [ -x /usr/bin/gtk-update-icon-cache ]; then
      /usr/bin/gtk-update-icon-cache  -f -q /usr/share/icons/hicolor 1> /dev/null 2> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       cd $PKG
       makepkg -l y -c n $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz || exit 1
       upgradepkg --install-new $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz
       rm -rf $TMP/package-$i || exit 1
       cd $TMP/e/trunk
    fi
    for i in estickies exquisite expedite emotion emprint;
    do
    if [ ! -e $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz ];then
       echo "Building $i..."
       cd $i
       if [ "$i" = "eterm" ];then
           cd Eterm
       fi
       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 {} \;

       PKG=$TMP/package-$i
       mkdir -p $PKG || exit 1
       LDFLAGS="$SLKLDFLAGS" \
       CFLAGS="$SLKCFLAGS" \
       CXXFLAGS="$SLKCFLAGS" \
       ./autogen.sh \
       --prefix=/usr \
       --libdir=/usr/lib${LIBDIRSUFFIX} \
       --sysconfdir=/etc \
         --localstatedir=/var \
         --mandir=/usr/man \
         --disable-static || exit 1

       make $JOBS|| exit 1
       make install DESTDIR=$PKG || exit 1
       ( 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/$i || exit 1
       cp -a AUTHORS COPYING INSTALL NEWS README $PKG/usr/doc/$i

       mkdir -p $PKG/install
       echo "       |-----handy-ruler------------------------------------------------------|" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "$i: $i svn build - $VERSIO - $VERSION" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "" >> $PKG/install/slack-desc
       echo "if [ -x /usr/bin/update-mime-database ]; then
      /usr/bin/update-mime-database /usr/share/mime &> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       echo "if [ -x /usr/bin/update-desktop-database ]; then
      /usr/bin/update-desktop-database 1> /dev/null 2> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       echo "if [ -x /usr/bin/gtk-update-icon-cache ]; then
      /usr/bin/gtk-update-icon-cache  -f -q /usr/share/icons/hicolor 1> /dev/null 2> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       cd $PKG
       makepkg -l y -c n $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz || exit 1
       upgradepkg --install-new $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz
       rm -rf $TMP/package-$i || exit 1
       cd $TMP/e/trunk
    fi
    done

    cd TMP/st
    for i in elementary elementary-alarm elementary-presenter elementary-sms waker;
    do
    if [ ! -e $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz ];then
       echo "Building $i..."
       cd $i
       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 {} \;

       PKG=$TMP/package-$i
       mkdir -p $PKG || exit 1
       LDFLAGS="$SLKLDFLAGS" \
       CFLAGS="$SLKCFLAGS" \
       CXXFLAGS="$SLKCFLAGS" \
       ./autogen.sh \
       --prefix=/usr \
       --libdir=/usr/lib${LIBDIRSUFFIX} \
       --sysconfdir=/etc \
         --localstatedir=/var \
         --mandir=/usr/man \
         --disable-static || exit 1

       make $JOBS|| exit 1
       make install DESTDIR=$PKG || exit 1
       ( 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/$i || exit 1
       cp -a AUTHORS COPYING INSTALL NEWS README $PKG/usr/doc/$i

       mkdir -p $PKG/install
       echo "       |-----handy-ruler------------------------------------------------------|" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "$i: $i svn build - $VERSIO - $VERSION" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "" >> $PKG/install/slack-desc
       echo "if [ -x /usr/bin/update-mime-database ]; then
      /usr/bin/update-mime-database /usr/share/mime &> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       echo "if [ -x /usr/bin/update-desktop-database ]; then
      /usr/bin/update-desktop-database 1> /dev/null 2> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       echo "if [ -x /usr/bin/gtk-update-icon-cache ]; then
      /usr/bin/gtk-update-icon-cache  -f -q /usr/share/icons/hicolor 1> /dev/null 2> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       cd $PKG
       makepkg -l y -c n $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz || exit 1
       upgradepkg --install-new $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz
       rm -rf $TMP/package-$i || exit 1
       cd $TMP/e/trunk/TMP/st
    fi
    done
    cd $TMP/e/trunk
    i=exalt
    if [ ! -e $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz ];then
       echo "Building $i..."
       cd $i
       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 {} \;

       PKG=$TMP/package-$i
       mkdir -p $PKG || exit 1
       LDFLAGS="$SLKLDFLAGS" \
       CFLAGS="$SLKCFLAGS" \
       CXXFLAGS="$SLKCFLAGS" \
       ./autogen.sh \
       --prefix=/usr \
       --libdir=/usr/lib${LIBDIRSUFFIX} \
       --sysconfdir=/etc \
         --localstatedir=/var \
         --mandir=/usr/man \
         --disable-static || exit 1

       make $JOBS|| exit 1
       make install DESTDIR=$PKG || exit 1
       ( 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/$i || exit 1
       cp -a AUTHORS COPYING INSTALL NEWS README $PKG/usr/doc/$i

       mkdir -p $PKG/install
       echo "       |-----handy-ruler------------------------------------------------------|" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "$i: $i svn build - $VERSIO - $VERSION" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "" >> $PKG/install/slack-desc
       echo "if [ -x /usr/bin/update-mime-database ]; then
      /usr/bin/update-mime-database /usr/share/mime &> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       echo "if [ -x /usr/bin/update-desktop-database ]; then
      /usr/bin/update-desktop-database 1> /dev/null 2> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       echo "if [ -x /usr/bin/gtk-update-icon-cache ]; then
      /usr/bin/gtk-update-icon-cache  -f -q /usr/share/icons/hicolor 1> /dev/null 2> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       cd $PKG
       makepkg -l y -c n $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz || exit 1
       upgradepkg --install-new $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz
       rm -rf $TMP/package-$i || exit 1
       cd $TMP/e/trunk
    fi
    cd E-MODULES-EXTRA
    for i in alarm bling calendar configmenu cpu deskshow diskio drawer efm-nav efm-path emu exalt-client execwatch flame forecasts iiirk language mail mem moon \
    mpdule net news notification penguins photo places rain screenshot skel slideshow snow taskbar tclock tiling uptime weather winselector wlan;
    do
    if [ ! -e $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz ];then
       echo "Building $i..."
       cd $i
       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 {} \;

       PKG=$TMP/package-$i
       mkdir -p $PKG || exit 1
       LDFLAGS="$SLKLDFLAGS" \
       CFLAGS="$SLKCFLAGS" \
       CXXFLAGS="$SLKCFLAGS" \
       ./autogen.sh \
       --prefix=/usr \
       --libdir=/usr/lib${LIBDIRSUFFIX} \
       --sysconfdir=/etc \
         --localstatedir=/var \
         --mandir=/usr/man \
         --disable-static || exit 1

       make $JOBS || exit 1
       make install DESTDIR=$PKG || exit 1
       ( 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/$i || exit 1
       cp -a AUTHORS COPYING INSTALL NEWS README $PKG/usr/doc/$i

       mkdir -p $PKG/install
       echo "       |-----handy-ruler------------------------------------------------------|" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "$i: $i svn build - $VERSIO - $VERSION" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "$i" >> $PKG/install/slack-desc
       echo "" >> $PKG/install/slack-desc
       echo "if [ -x /usr/bin/update-mime-database ]; then
      /usr/bin/update-mime-database /usr/share/mime &> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       echo "if [ -x /usr/bin/update-desktop-database ]; then
      /usr/bin/update-desktop-database 1> /dev/null 2> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       echo "if [ -x /usr/bin/gtk-update-icon-cache ]; then
      /usr/bin/gtk-update-icon-cache  -f -q /usr/share/icons/hicolor 1> /dev/null 2> /dev/null
    fi" >> $PKG/install/doinst.sh
       echo "" >> $PKG/install/doinst.sh
       cd $PKG
       makepkg -l y -c n $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz || exit 1
       upgradepkg --install-new $OUTPUT/$i-$VERSION-$ARCH-$TAG.tgz
       rm -rf $TMP/package-$i || exit 1
       cd $TMP/e/trunk/E-MODULES-EXTRA
    fi
    done

    echo "Installation Complete!"
    rm -rf $TMP
Strumenti personali
Namespace

Varianti