b0VIM 7.1 I,Krootdarth/home/kidd/picaxo/27.03.2008-20.41/src/picaxo.SlackBuild 3210#"! Utp{y|4ad44{^[ & % $  L #  o n m P "   j    v `  }spon`2yS0RQP@rqp_( J=nG[4"find . -pfind . -pfind . -perm 444 -exec chmod 644 {} \;find . -perm 600 -exec chmod 644 {} \;find . -perm 666 -exec chmod 644 {} \;find . -perm 774 -exec chmod 644 {} \;find . -perm 2755 -exec chmod 755 {} \;find . -perm 775 -exec chmod 755 {} \;find . -perm 2777 -exec chmod 755 {} \;find . -perm 777 -exec chmod 755 {} \;find . -perm 664 -exec chmod 644 {} \;chown -R root:root .echo "Setting permissions..."#-----------------------------------------#SET PERMISSIONS#-----------------------------------------------------#patch -p1 <#-----------------------------------------------------# Put any Patches herecd $TMP/$NAME#-----------------------------------------------------tar xvf $CWD/$NAME-$VERSION.tar.* || exit 1echo "Extracting source..."#-----------------------------------------------------#EXTRACT SOURCESrm -rf $NAMEcd $TMPmkdir -p $PKGrm -rf $PKG#--------------------------------------------fi wget $LINKthenif [ ! -f $CWD/$NAME-$VERSION.tar.* ]#--------------------------------------------#GET THE SOURCE#--------------------------------------------export LDFLAGS="$LDFLAGS $LDFLAG_OPTIONS"export CXXFLAGS=$CFLAGSexport CFLAGS="$SLKCFLAGS $CFLAG_OPTIONS"fi CONFIGURE_TRIPLET="powerpc-slackware-linux" SLKCFLAGS="-O2"elif [ "$ARCH" = "powerpc" ]; then CONFIGURE_TRIPLET="x86_64-pc-linux" SLKCFLAGS="-O2 -fpic"elif [ "$ARCH" = "x86_64" ]; then CONFIGURE_TRIPLET="i486-slackware-linux" SLKCFLAGS="-O2 -march=i586 -mtune=i686" ARCH=i586if [[ "$ARCH" = i?86 ]]; then#--------------------------------------------#CFLAGS SETUPfi exit 1 VL_PACKAGER="YOUR NAME HERE"' You may also export VL_PACKAGER, or call this script with Change the word "YOURNAME" to your VectorLinux packager name. Please edit VL_PACKAGER=${VL_PACKAGER:-YOURNAME} in this script. echo 'Who are you?if [ $VL_PACKAGER = "YOURNAME" ]; thenfi exit 1 echo "Requiredbuilder not installed, or not executable."if [ ! -x /usr/bin/requiredbuilder ]; thenfi exit 1 echo "You are not authorized to run this script. Please login as root"if [ $UID != 0 ]; then#--------------------------------------------PKG=$TMP/package-$NAMETMP=$RELEASEDIR/tmpmkdir -p $RELEASEDIR/tmpcd $CWDRELEASEDIR=$(pwd)cd ../CWD=$(pwd)#--------------------------------------------#SETUP PACKAGING ENVIRONMENT#----------------------------------------------------------------------------LDFLAG_OPTIONS=${LDFLAG_OPTIONS:-""}CONFIG_OPTIONS=${CONFIG_OPTIONS:-""}ARCH=${ARCH:-"$(uname -m)"}BUILD=${BUILD:-"$BUILDNUM""$VL_VERSION"}VL_VERSION=${VL_VERSION:-"$(ls /var/log/packages/|grep vlconfig2|cut -d "-" -f4|cut -c 2-5)"}BUILDNUM=${BUILDNUM:-"1"}#----------------------------------------------------------------------------#SYSTEM VARIABLESLINK=${LINK:-"http://gigi.nullneuron.net/comp/picaxo/picaxo-27.03.2008-20.41.tar.gz"} #Enter URL for package here!VL_PACKAGER=${VL_PACKAGER:-"LM"} #Enter your Name!SHORTVERSION=${SHORTVERSION:-"27.03.2008"} #Enter package Version!VERSION=${VERSION:-"27.03.2008-20.41"} #Enter package Version!NAME="picaxo" #Enter package Name!# Comment out second to last line to keep this dir intact.# build will be in a temp dir created in "NAME" dir, and then removed on exit.# and slack-required will be found in "VERSION" dir. The extraction and# With all sources in "src" Your Vector Linux .tlz package, slack-desc,# This script assumes it will be launched within "/NAME/VERSION/src" dir.#!/usr/bin/bashad 4kXDD<3 4 n O % $ k U S N L     R : # vim: set tabstop=4 shiftwidth=4 foldmethod=marker : ###--------------------------------------------------------------echo "Package Complete"echo "Cleaning up temp files..." && rm -rf $TMPcd $CWDmakepkg -l y -c n $RELEASEDIR/$NAME-$SHORTVERSION-$ARCH-$BUILD.tlzecho "Creating package $NAME-$VERSION-$ARCH-$BUILD.tlz"#fi##cat $RELEASEDIR/slack-required > $PKG/install/slack-required##EOF##sdl >= 1.2.13-i486-2#aaa_base >= 12.1.0-noarch-2 | glibc-solibs >= 2.7-i486-10#cat >> $RELEASEDIR/slack-required << EOF#if ! (test -f $CWD/slack-required) then#if slack-required not created, create onerequiredbuilder -v -y -s $RELEASEDIR $PKGecho "Finding dependencies..."#--------------------------------------------------------------#FINISH PACKAGE#------------------------------------------------------------------------------------------------------------------find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/nullfind . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/nullecho " "echo "Stripping...."echo " "cd $PKG#------------------------------------------------------------------------------------------------------------------#STRIPPINGcat $RELEASEDIR/slack-desc > $PKG/install/slack-descEOFCONFIGURE: $(awk "/\.\/configure\ /" $TMP/$NAME-$VERSION/config.log)LDFLAGS: $LDFLAGSCFLAGS: $CFLAGSDISTRO: $(cat /etc/vector-version)HOST: $(uname -srm)PACKAGER: $VL_PACKAGERBUILDDATE: $(date)#----------------------------------------adyd=rQ.  } 4 3   f M -     K  S 2 } 4 3 2 pm?>vutH'zVH3.-yxT;N g`=]'&"cat >> $RELEASEDIR/slack-desc << EOFfiEOF$NAME: Website: http://www.nullneuron.net/comp/picaxo$NAME: Authors: Daniel D'Agostino$NAME: License: GPL version 3$NAME:$NAME: $NAME: locally. Invoke by calling picaxo with name of graphic file or URL.$NAME: Works with SDL libraries. Can display pictures on the web and $NAME: Lightweight picture viewer.$NAME:$NAME: $NAME (picaxo picture viewer)$SHIM|-----handy-ruler------------------------------------------------------|# customary to leave one space after the ':'.# make exactly 11 lines for the formatting to be correct. It's also# on the right side marks the last column you can put a character in. You must# up the first '|' above the ':' following the base package name, and the '|'# The "handy ruler" below makes it easier to edit a package description. Line# HOW TO EDIT THIS FILE:cat > $RELEASEDIR/slack-desc << EOF# There may be no more then 11 $NAME: lines in a valid slack-desc.# Then package the description, License, Author and Website.# Fill in the package summary between the () below.donelet SPACES=$SPACES+1SHIM="$SHIM "until [ "$SPACES" = "$LENGTH" ]; doSHIM=""SPACES=0LENGTH=$(expr length "$NAME")# This creates the white space in front of "handy-ruler" in slack-desc below.elsecp $CWD/slack-desc $RELEASEDIR/slack-descif test -f $CWD/slack-desc; then#if there is a slack-desc in src dir use itmkdir -p $PKG/installfind $PKG/usr/info -type f -exec gzip -9 {} \;fi rm -rf $PKG/usr/share/infomv $PKG/usr/share/info/* $PKG/usr/infomkdir -p $PKG/usr/infoif [ -d $PKG/usr/share/info ] ; thenfind $PKG/usr/man -type f -exec gzip -9 {} \;firm -rf $PKG/usr/share/manmv $PKG/usr/share/man/* $PKG/usr/manmkdir -p $PKG/usr/manif [ -d $PKG/usr/share/man ] ; then#----------------------------------------------------------------------cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild$PKG/usr/doc/$NAME-$VERSIONcp -a AUTHORS COPYING ChangeLog Credits MANIFEST README TODO \mkdir -p $PKG/usr/doc/$NAME-$VERSION#cp $CWD/$NAME.png $PKG/usr/share/pixmaps/$NAME.png#mkdir -p $PKG/usr/share/pixmaps#cp $CWD/$NAME.desktop $PKG/usr/share/applications/$NAME.desktop#mkdir -p $PKG/usr/share/applications########################################################################Miscellenious tweaks and things outside a normal ./configure go here ########################################################################cp bin/picaxo $PKG/usr/bin/picaxomkdir -p $PKG/usr/bincd ..#make install DESTDIR=$PKG || exitmake || exit 1cd src# $CONFIG_OPTIONS || exit 1# --build=$CONFIGURE_TRIPLET \# --program-suffix="" \# --program-prefix="" \# --disable-debug \# --with-included-gettext \# --mandir=/usr/man \# --localstatedir=/var \# --sysconfdir=/etc \#./configure --prefix=/usr \echo "Configuring source..."#-----------------------------------------------------------------------## correct path and that it will work seamlessly within the KDE environment.# Making these changes will ensure that your package will build in the## --sysconfdir=/etc/kde \# --prefix=$(kde-config -prefix) \# arguments in the script below:# If you are building a KDE-related app, then change the following#----------------------------------------------------------------------#CONFIGURE & MAKE#-----------------------------------------find . -perm 555 -exec chmod 755 {} \;find . -perm 711 -exec chmod 755 {} \;find . -perm 511 -exec chmod 755 {} \;find . -perm 440 -exec chmod 644 {} \;find . -perm 400 -exec chmod 644 {} \;