xap/qmagneto: Upgraded to qmagneto-1.1.0.

slackware-14.2
Damien Goutte-Gattat 13 years ago
parent 0a8a2adb26
commit ccc4314568
  1. 32
      xap/qmagneto/qmagneto.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009 Damien Goutte-Gattat
# Copyright (C) 2009,2010 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -23,26 +23,25 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest qmagneto sourcecode is available at:
# <http://code.google.com/p/qmagneto/>.
#
# Depends: l/qt4
# <http://biord-software.org/qmagneto/>.
# Source package infos
NAMESRC=${NAMESRC:-qmagneto}
REVISION=${VERSION:-121}
ARCHIVE=${ARCHIVE:-$NAMESRC-svn$REVISION.tar.gz}
SVNTAG=${SVNTAG:-1.1-0}
ARCHIVE=${ARCHIVE:-$NAMESRC-${SVNTAG//-/.}.tar.gz}
SVN=${SVN:-http://qmagneto.googlecode.com/svn}
# Built package infos
NAMETGZ=${NAMETGZ:-qmagneto}
NAMEPKG=${NAMEPKG:-qmagneto}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-i486}
TARGET=${TARGET:-i486}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
EXT=${EXT:-txz}
JOBS=${JOBS:-1}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
@ -62,15 +61,18 @@ case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
;;
*)
CPUOPT="-O2"
;;
esac
# Get the source code if needed
NAME=$NAMESRC-svn$REVISION
NAME=$NAMESRC-${SVNTAG//-/.}
if [ ! -r $ARCHIVE ]; then
svn export -r$REVISION $SVN/trunk $NAME
svn export $SVN/tags/$SVNTAG/ $NAME
tar czvf $ARCHIVE $NAME
rm -rf $NAME
fi
@ -82,8 +84,8 @@ tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
qmake-qt4
make -j 3
qmake
make
# Install
install -D -s -m 755 bin/qmagneto $PKG/usr/bin/qmagneto
@ -97,7 +99,7 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-svn$REVISION-$ARCH-$BUILD.tgz
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-${SVNTAG//-/.}-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"

Loading…
Cancel
Save