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's the kdenlive.Slackbuild:<br><br><pre>#!/bin/sh<br><br># Slackware build script for <appname><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 "Written by" 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'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 'cut and paste' script to<br># enable any random user to make a working package. While<br>
# we're certainly not discouraging use of this template, if<br># you haven'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't see as root), then there'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's obvious, there's no need to comment it.<br>
#<br># AGAIN, REMOVE THE COMMENTS IF THEY ARE NOT NEEDED - DON'T JUST<br># DELETE THIS BLOCK OF TEXT WITHOUT BOTHERING TO READ WHAT'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 "_SBo" is required<br>
<br>CWD=$(pwd)<br>TMP=${TMP:-/tmp/SBo}        # For consistency's sake, use this<br>PKG=$TMP/package-$PRGNAM<br>OUTPUT=${OUTPUT:-/tmp}        # Drop the package in /tmp<br><br>if [ "$ARCH" = "i486" ]; then<br> SLKCFLAGS="-O2 -march=i486 -mtune=i686"<br>
LIBDIRSUFFIX=""<br>elif [ "$ARCH" = "i686" ]; then<br> SLKCFLAGS="-O2 -march=i686 -mtune=i686"<br> LIBDIRSUFFIX=""<br>elif [ "$ARCH" = "x86_64" ]; then<br>
SLKCFLAGS="-O2 -fPIC"<br> LIBDIRSUFFIX="64"<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 "\E[0;32m+------------------------------------+\E[0;0m"<br>echo -e "\E[0;32m| Start SlackBuild $NAME-$VERSION |\E[0;0m"<br>echo -e "\E[0;32m+------------------------------------+\E[0;0m"<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't seem able to take CFLAGS and CXXFLAGS 'regoulary'<br>
sed -i s/"CMAKE_C_FLAGS:STRING="/"CMAKE_C_FLAGS:STRING=\'-O2 -march=i686 -mtune=i686\'"/ CMakeCache.txt<br>sed -i s/"CMAKE_CXX_FLAGS:STRING="/"CMAKE_CXX_FLAGS:STRING=\'-O2 -march=i686 -mtune=i686\'"/ 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 "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null<br>
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null<br> find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs strip -g 2> /dev/null<br>
)<br><br>mkdir -p $PKG/install<br>cat $CWD/slack-desc > $PKG/install/slack-desc<br>cat $CWD/slack-desc > $PKG/usr/doc/$NAME-$VERSION/slack-desc<br>cat $CWD/$NAME.SlackBuild > $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>