List,<br><br>I modified slacky it kdenlive Slackbuild to follow more closely the requirements for Slackbuilds.org.  So, before I submit my SlackBuild, is there anyone else planning on adding kdenlive once Slackware 13 comes out?  Just wanted to make sure before I submit it.  Also, can someone take a look at what I have come up with so far and give me some pointers?  The script will build kdenlive from svn instead of the standard package.  I also have a slackbuild for mlt which is a big requirement.  Thanks ahead of time! :^)<br>
<br>-stn<br><br>Here&#39;s the kdenlive.Slackbuild:<br><br><pre>#!/bin/sh<br><br># Slackware build script for &lt;appname&gt;<br><br># Written by (your name) (your contact information)<br><br># (add license information here if you desire; otherwise,<br>
# all submissions are considered to be in the public domain)<br># Some licenses may incorporate the &quot;Written by&quot; information<br># above, and if so, that line can be omitted<br># We strongly suggest *not* using GPL for scripts, as it requires<br>
# a copy of the GPL to be distributed with it.  Since the GPL<br># itself is longer than any build script will be, this just doesn&#39;t<br># make good sense...<br><br># |-----------------------------------------------------------------| #<br>
# REMOVE THIS ENTIRE BLOCK OF TEXT #<br>#<br># $Id: template.SlackBuild,v 1.8 2009/05/27 01:34:37 slackbuilds Exp slackbuilds $<br>#<br># This template is not meant to be a &#39;cut and paste&#39; script to<br># enable any random user to make a working package.  While<br>
# we&#39;re certainly not discouraging use of this template, if<br># you haven&#39;t manually gone through each step of the process<br># without the build script (typically as a normal user, as this<br># will reveal problems that you won&#39;t see as root), then there&#39;s<br>
# a good chance that something important is missing from your<br># submission.<br><br># When using this template script, please remove as many of<br># these unnecessary comments as possible.  Commented code is<br># a good thing, but if it&#39;s obvious, there&#39;s no need to comment it.<br>
#<br># AGAIN, REMOVE THE COMMENTS IF THEY ARE NOT NEEDED - DON&#39;T JUST<br># DELETE THIS BLOCK OF TEXT WITHOUT BOTHERING TO READ WHAT&#39;S IN IT.<br>#<br># |-----------------------------------------------------------------| #<br>
<br>PRGNAM=kdenlive                        # replace with name of program<br>VERSION=${VERSION:-`date +%Y%m%d`}                # replace with version of program<br>ARCH=${ARCH:-i686}                # this should not change<br>BUILD=${BUILD:-1}<br>TAG=${TAG:-_SBo}                # the &quot;_SBo&quot; is required<br>
<br>CWD=$(pwd)<br>TMP=${TMP:-/tmp/SBo}        # For consistency&#39;s sake, use this<br>PKG=$TMP/package-$PRGNAM<br>OUTPUT=${OUTPUT:-/tmp}        # Drop the package in /tmp<br><br>if [ &quot;$ARCH&quot; = &quot;i486&quot; ]; then<br>  SLKCFLAGS=&quot;-O2 -march=i486 -mtune=i686&quot;<br>
  LIBDIRSUFFIX=&quot;&quot;<br>elif [ &quot;$ARCH&quot; = &quot;i686&quot; ]; then<br>  SLKCFLAGS=&quot;-O2 -march=i686 -mtune=i686&quot;<br>  LIBDIRSUFFIX=&quot;&quot;<br>elif [ &quot;$ARCH&quot; = &quot;x86_64&quot; ]; then<br>
  SLKCFLAGS=&quot;-O2 -fPIC&quot;<br>  LIBDIRSUFFIX=&quot;64&quot;<br>fi<br><br>if [ ! -d $TMP ]; then<br>         mkdir -p $TMP<br>fi<br><br>if [ ! -d $PKG ]; then<br>          mkdir -p $PKG<br>fi<br><br>cd $TMP<br>svn co <a href="https://kdenlive.svn.sourceforge.net/svnroot/kdenlive/trunk/kdenlive">https://kdenlive.svn.sourceforge.net/svnroot/kdenlive/trunk/kdenlive</a><br>
<br>echo -e &quot;\E[0;32m+------------------------------------+\E[0;0m&quot;<br>echo -e &quot;\E[0;32m| Start SlackBuild $NAME-$VERSION |\E[0;0m&quot;<br>echo -e &quot;\E[0;32m+------------------------------------+\E[0;0m&quot;<br>
<br>cd $PRGNAM<br><br>find . -perm 777 -exec chmod 755 {} \;<br>find . -perm 775 -exec chmod 755 {} \;<br>find . -perm 555 -exec chmod 755 {} \;<br>find . -perm 666 -exec chmod 644 {} \;<br>find . -perm 664 -exec chmod 644 {} \;<br>
find . -perm 444 -exec chmod 644 {} \;<br><br>chown -R root:root .<br><br>cmake -DCMAKE_INSTALL_PREFIX=/usr \<br>-DCMAKE_C_FLAGS= \<br>-DCMAKE_CXX_FLAGS= \<br>. || exit 1<br><br># cmake doesn&#39;t seem able to take CFLAGS and CXXFLAGS &#39;regoulary&#39;<br>
sed -i  s/&quot;CMAKE_C_FLAGS:STRING=&quot;/&quot;CMAKE_C_FLAGS:STRING=\&#39;-O2 -march=i686 -mtune=i686\&#39;&quot;/ CMakeCache.txt<br>sed -i  s/&quot;CMAKE_CXX_FLAGS:STRING=&quot;/&quot;CMAKE_CXX_FLAGS:STRING=\&#39;-O2 -march=i686 -mtune=i686\&#39;&quot;/ CMakeCache.txt<br>
<br>make || exit 1<br><br>make install DESTDIR=$PKG || exit 1<br><br>mkdir -p $PKG/usr/doc/$NAME-$VERSION<br>cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO $PKG/usr/doc/$NAME-$VERSION<br><br>( cd $PKG<br>  find . | xargs file | grep &quot;executable&quot; | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2&gt; /dev/null<br>
  find . | xargs file | grep &quot;shared object&quot; | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2&gt; /dev/null<br>  find . | xargs file | grep &quot;current ar archive&quot; | cut -f 1 -d : | xargs strip -g 2&gt; /dev/null<br>
      )<br><br>mkdir -p $PKG/install<br>cat $CWD/slack-desc &gt; $PKG/install/slack-desc<br>cat $CWD/slack-desc &gt; $PKG/usr/doc/$NAME-$VERSION/slack-desc<br>cat $CWD/$NAME.SlackBuild &gt; $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild<br>
<br>cd $PKG<br>/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz</pre>