diff options
Diffstat (limited to 'office/timew/timew.SlackBuild')
-rw-r--r-- | office/timew/timew.SlackBuild | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/office/timew/timew.SlackBuild b/office/timew/timew.SlackBuild index 2045bb5945..f8242aa440 100644 --- a/office/timew/timew.SlackBuild +++ b/office/timew/timew.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e # Slackware build script for timewarrior # Copyright <2019> <Christian Schneider> <Austria> # All rights reserved. @@ -20,10 +20,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#Set initial variables +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=timew -VERSION=${VERSION:-1.1.1} +VERSION=${VERSION:-1.3.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -33,7 +37,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -67,13 +78,14 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Build cmake \ -DCMAKE_BUILD_TYPE=release . \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr -#make clean +make clean make make install DESTDIR=$PKG @@ -95,4 +107,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |