<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello, <br><br>With the help of ast I made this Slackbuild: <br><br>#!/bin/sh<br># Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST<br># Copyright 2009, 2010, 2011, 2012, 2013 Eric Hameleers, Eindhoven, Netherlands<br># Copyright 2013 Roelof Wobben <rwobben@hotmail.com><br># All rights reserved.<br>#<br># Permission to use, copy, modify, and distribute this software for<br># any purpose with or without fee is hereby granted, provided that<br># the above copyright notice and this permission notice appear in all<br># copies.<br>#<br># THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED<br># WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF<br># MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.<br># IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR<br># CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,<br># SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT<br># LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF<br># USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND<br># ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,<br># OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT<br># OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF<br># SUCH DAMAGE.<br># -----------------------------------------------------------------------------<br>#<br># Slackware SlackBuild script<br># ===========================<br># By: Roelof Wobben <rwobben@hotmail.com><br># For: cinnamon<br># Descr: Cinnamon is a Linux desktop which provides advanced innovat<br># URL: http://cinnamon.linuxmint.org<br># Needs:<br># Changelog:<br># 2.8-1: 03/Nov/2013 by Roelof Wobben <rwobben@hotmail.com><br># * Initial build.<br># 2.10-1: 03/Nov/2013 by Roelof Wobben <rwobben@hotmail.com><br># * Upgrade to 2.10.0<br># Run 'sh cinnamon.SlackBuild' to build a Slackware package.<br># The package (.tgz) and .txt file as well as build logs are created in /tmp .<br># Install it using 'installpkg'.<br>#<br># -----------------------------------------------------------------------------<br><br># Set initial variables:<br><br>PRGNAM=Cinnamon<br>VERSION=${VERSION:-2.0.10}<br>BUILD=${BUILD:-1}<br># 'make' can run jobs in parallel for added speed. The number should be higher<br># than the number of cores/virtual CPU's in your system:<br>NUMJOBS=${NUMJOBS:" -j4 "}<br># The TAG is a unique identifier for all your Slackware packages.<br># Use your initials as the value for TAG for instance.<br>TAG=${TAG:-_rw}<br><br># This covers most filenames you'd want as documentation. Change if needed.<br>DOCS="ABOUT* AUTHORS BUGS ChangeLog* COPYING CREDITS FAQ GPL* HACKING \<br> LICENSE MAINTAINERS NEWS README* TODO"<br><br># Where do we look for sources?<br>SRCDIR=$(cd $(dirname $0); pwd)<br><br># Place to build (TMP) package (PKG) and output (OUTPUT) the program:<br>TMP=${TMP:-/tmp/build}<br>PKG=$TMP/package-$PRGNAM<br>OUTPUT=${OUTPUT:-/tmp}<br><br># Input URL: https://github.com/linuxmint/Cinnamon/archive/2.0.8.tar.gz<br>SOURCE="$SRCDIR/${PRGNAM}-${VERSION}.tar.gz"<br>SRCURL="https://github.com/linuxmint/Cinnamon/archive/2.0.10.tar.gz"<br><br><br>##<br>## --- with a little luck, you won't have to edit below this point --- ##<br>##<br><br># Automatically determine the architecture we're building on:<br>if [ -z "$ARCH" ]; then<br> case "$( uname -m )" in<br> i?86) export ARCH=i486 ;;<br> arm*) export ARCH=arm ;;<br> # Unless $ARCH is already set, use uname -m for all other archs:<br> *) export ARCH=$( uname -m ) ;;<br> esac<br>fi<br><br>case "$ARCH" in<br> i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686"<br> SLKLDFLAGS=""; LIBDIRSUFFIX=""<br> ;;<br> x86_64) SLKCFLAGS="-O2 -fPIC"<br> SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64"<br> ;;<br> *) SLKCFLAGS="-O2"<br> SLKLDFLAGS=""; LIBDIRSUFFIX=""<br> ;;<br>esac<br><br># Exit the script on errors:<br>set -e<br>trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR<br># Catch unitialized variables:<br>set -u<br>P1=${1:-1}<br><br># Save old umask and set to 0022:<br>_UMASK_=$(umask)<br>umask 0022<br><br># Create working directories:<br>mkdir -p $OUTPUT # place for the package to be saved<br>mkdir -p $TMP/tmp-$PRGNAM # location to build the source<br>mkdir -p $PKG # place for the package to be built<br>rm -rf $PKG/* # always erase old package's contents<br>rm -rf $TMP/tmp-$PRGNAM/* # remove the remnants of previous build<br>rm -rf $OUTPUT/{configure,make,install,error,makepkg}-$PRGNAM.log<br> # remove old log files<br><br># Source file availability:<br>if ! [ -f ${SOURCE} ]; then<br> echo "Source '$(basename ${SOURCE})' not available yet..."<br> # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT<br> [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)"<br> if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi<br> if ! [ "x${SRCURL}" == "x" ]; then<br> echo "Will download file to $(dirname $SOURCE)"<br> wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true<br> if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then<br> echo "Downloading '$(basename ${SOURCE})' failed... aborting the build."<br> mv -f "${SOURCE}" "${SOURCE}".FAIL<br> exit 1<br> fi<br> else<br> echo "File '$(basename ${SOURCE})' not available... aborting the build."<br> exit 1<br> fi<br>fi<br><br>if [ "$P1" == "--download" ]; then<br> echo "Download complete."<br> exit 0<br>fi<br><br># --- PACKAGE BUILDING ---<br><br>echo "++"<br>echo "|| $PRGNAM-$VERSION"<br>echo "++"<br><br># Explode the package framework:<br>if [ -f $SRCDIR/_$PRGNAM.tar.gz ]; then<br> cd $PKG<br> explodepkg $SRCDIR/_$PRGNAM.tar.gz<br> cd -<br>fi<br><br>cd $TMP/tmp-$PRGNAM<br>echo "Extracting the source archive(s) for $PRGNAM..."<br>if $(file ${SOURCE} | grep -qi ": 7-zip"); then<br> 7za x ${SOURCE}<br>elif $(file ${SOURCE} | grep -qi ": zip"); then<br> unzip ${SOURCE}<br>else<br> tar -xvf ${SOURCE}<br>fi<br>cd ${PRGNAM}-${VERSION}<br>chown -R root:root .<br>chmod -R u+w,go+r-w,a+X-s .<br><br>echo Building ...<br>LDFLAGS="$SLKLDFLAGS" \<br>CXXFLAGS="$SLKCFLAGS" \<br>CFLAGS="$SLKCFLAGS" \<br>./autogen.sh \<br> --prefix=/usr \<br> --libdir=/usr/lib${LIBDIRSUFFIX} \<br> --localstatedir=/var \<br> --sysconfdir=/etc \<br> --mandir=/usr/man \<br> --docdir=/usr/doc/$PRGNAM-$VERSION \<br> --enable-shared \<br> --disable-static \<br> --program-prefix= \<br> --program-suffix= \<br> --build=$ARCH-slackware-linux \<br> --enable-compile-warnings=no<br> 2>&1 || exit<br><br>make $NUMJOBS 2>&1 || exit<br>make DESTDIR=$PKG install 2>&1 || exit<br><br># Add documentation:<br>mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION<br>cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true<br>cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild<br>chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION<br>find $PKG/usr/doc -type f -exec chmod 644 {} \;<br><br># Compress the man page(s):<br>if [ -d $PKG/usr/man ]; then<br> find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;<br> for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done<br>fi<br><br># Compress info pages and remove the package's dir file:<br>if [ -d $PKG/usr/info ]; then<br> rm -f $PKG/usr/info/dir<br> gzip -9f $PKG/usr/info/*.info*<br> # If any info files are present, consider adding this to a doinst.sh:<br> # chroot . install-info /usr/info/XXXXX.info.gz /usr/info/dir 2> /dev/null<br>fi<br><br># Strip binaries (if any):<br>find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \<br> | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true<br><br># Add a package description:<br>mkdir -p $PKG/install<br>cat $SRCDIR/slack-desc > $PKG/install/slack-desc<br>if [ -f $SRCDIR/doinst.sh ]; then<br> cat $SRCDIR/doinst.sh >> $PKG/install/doinst.sh<br>fi<br><br># Build the package:<br>cd $PKG<br>makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz} 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log<br>cd $OUTPUT<br>md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz}.md5<br>cd -<br>cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt<br><br># Restore the original umask<br>umask ${_UMASK_}<br><br>and I have this slack-desc:<br><br># HOW TO EDIT THIS FILE:<br># The "handy ruler" below makes it easier to edit a package description. Line<br># up the first '|' above the ':' following the base package name, and the '|'<br># on the right side marks the last column you can put a character in. You must<br># make exactly 11 lines for the formatting to be correct. It's also<br># customary to leave one space after the ':'.<br><br> |-----handy-ruler------------------------------------------------------|<br>cinnamon: cinnamon (Cinnamon is a Linux desktop which provides advanced innovative feature)<br>cinnamon:<br>cinnamon: Cinnamon is a Linux desktop which provides advanced innovative<br>cinnamon: features and a traditional user experience. The desktop layout is<br>cinnamon: similar to Gnome 2. The underlying technology is forked from Gnome<br>cinnamon: Shell. The emphasis is put on making users feel at home and providing<br>cinnamon: them with an easy to use and comfortable desktop experience. License<br>cinnamon: ======= Cinnamon is distributed under the terms of the GNU General<br>cinnamon: Public License, version 2 or later. See the COPYING file for details.<br>cinnamon:<br>cinnamon: Home: <a href="http://cinnamon.linuxmint.org" target="_blank">http://cinnamon.linuxmint.org</a><br><br>But the builds fail at line 130.<br><br>Can anyone help me figure out why it fails there and how to solve this ?<br><br>Roelof<br><br> </div></body>
</html>