summaryrefslogtreecommitdiff
path: root/desktop/QtCurve-KDE4/QtCurve-KDE4.SlackBuild
diff options
context:
space:
mode:
authorArTourter <artourter@gmail.com>2010-09-18 23:41:42 -0400
committerRobby Workman <rworkman@slackbuilds.org>2010-09-21 22:09:40 -0500
commitdef67653d0dc0bed186e345807268da4b204c29e (patch)
tree4bd9882634313c6079a4f0f3460770b286ac6c79 /desktop/QtCurve-KDE4/QtCurve-KDE4.SlackBuild
parent656a9f6dfe64b7a97af630ae2c1b7675dc146da6 (diff)
downloadslackbuilds-def67653d0dc0bed186e345807268da4b204c29e.tar.gz
desktop/QtCurve-KDE4: Updated for version 1.6.1.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/QtCurve-KDE4/QtCurve-KDE4.SlackBuild')
-rw-r--r--desktop/QtCurve-KDE4/QtCurve-KDE4.SlackBuild16
1 files changed, 13 insertions, 3 deletions
diff --git a/desktop/QtCurve-KDE4/QtCurve-KDE4.SlackBuild b/desktop/QtCurve-KDE4/QtCurve-KDE4.SlackBuild
index cb0c245e29..513eafe98c 100644
--- a/desktop/QtCurve-KDE4/QtCurve-KDE4.SlackBuild
+++ b/desktop/QtCurve-KDE4/QtCurve-KDE4.SlackBuild
@@ -26,14 +26,16 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=QtCurve-KDE4
-VERSION=${VERSION:-1.5.2}
+VERSION=${VERSION:-1.6.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -72,7 +74,7 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-mkdir build
+mkdir build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
@@ -91,7 +93,7 @@ cd -
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING ChangeLog README TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -100,3 +102,11 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+
+# Clean up the extra stuff:
+if [ "$1" = "--cleanup" ]; then
+ rm -rf $TMP/$PRGNAM-$BASEVERS
+ rm -rf $PKG
+fi
+
+# vim: et ts=2 sw=2