diff options
author | Eric Hameleers <alien@slackware.com> | 2015-10-30 22:59:10 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2015-10-30 22:59:10 +0000 |
commit | eac1668871b78c55a041a94d90aca14a94069754 (patch) | |
tree | 0c1aa3fa984d502d61872618c7a37b1a7d07c634 /sbbdep | |
parent | b5105794b910323232a5bbbc8fb9cf7a842e05ed (diff) | |
download | asb-eac1668871b78c55a041a94d90aca14a94069754.tar.gz asb-eac1668871b78c55a041a94d90aca14a94069754.tar.xz |
sbbdep: updated to 0.2.5
Diffstat (limited to 'sbbdep')
-rwxr-xr-x | sbbdep/build/sbbdep.SlackBuild | 49 |
1 files changed, 5 insertions, 44 deletions
diff --git a/sbbdep/build/sbbdep.SlackBuild b/sbbdep/build/sbbdep.SlackBuild index aa1dbe8d..62c80569 100755 --- a/sbbdep/build/sbbdep.SlackBuild +++ b/sbbdep/build/sbbdep.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh # $Id$ -# Copyright 2011, 2012, 2013 Eric Hameleers, Eindhoven, NL +# Copyright 2011, 2012, 2013, 2015 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -42,6 +42,8 @@ # * Update. # 0.2.2-1: 03/jun/2013 by Eric Hameleers <alien@slackware.com> # * Bugfix release. +# 0.2.5-1: 26/oct/2015 by Eric Hameleers <alien@slackware.com> +# * Update. # # Run 'sh sbbdep.SlackBuild' to build a Slackware package. # The package (.tgz) and .txt file as well as build logs are created in /tmp . @@ -49,12 +51,9 @@ # # ----------------------------------------------------------------------------- -# Set initial variables: - PRGNAM=sbbdep -SRCNAM=sbbdep_slk -#VERSION=$(date +%Y%m%d) -VERSION=${VERSION:-0.2.2} +SRCNAM=sbbdep +VERSION=${VERSION:-0.2.5} BUILD=${BUILD:-1} TAG=${TAG:-alien} @@ -66,47 +65,9 @@ TMP=${TMP:-/tmp/build} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -# If you want automatic download to work, supply a URL for 'SRCURL' below: SOURCE[0]="$SRCDIR/${SRCNAM}-${VERSION}.tar.gz" SRCURL[0]="https://bitbucket.org/a4z/$SRCNAM/downloads/$SRCNAM-$VERSION.tar.gz" -# Use the src_checkout() function if no downloadable tarball exists. -# This function checks out sources from SVN/CVS and creates a tarball of them. -src_checkout() { - # Param #1 : index in the SOURCE[] array. - # Param #2 : full path to where SOURCE[$1] tarball should be created. - # Determine the tarball extension: - PEXT=$(echo "${2}" | sed -r -e 's/.*[^.].(tar.xz|tar.gz|tar.bz2|tgz).*/\1/') - case "$PEXT" in - "tar.xz") TARCOMP="J" ;; - "tar.gz") TARCOMP="z" ;; - "tgz") TARCOMP="z" ;; - "tar.bz2") TARCOMP="j" ;; - *) echo "Archive can only have extension 'tar.xz', '.tar.gz' '.tar.bz2' or '.tgz'" ; exit 1 ;; - esac - # Determine the directory name to create for the archive root: - PBASE=$(basename ${2} .${PEXT}) - # Determine the directory where we create our checkout: - CODIR=$(dirname ${2}) - case ${1} in - 0) # Mercurial checkout: - RETDIR=$(pwd) - mkdir -p $CODIR/${PRGNAM}_temp_checkout_$$ \ - && cd $CODIR/${PRGNAM}_temp_checkout_$$ - mkdir ${PBASE} \ - && cd ${PBASE} \ - && hg clone https://bitbucket.org/a4z/sbbdep_slk/ . \ - && chown -R root:root . \ - && cd .. \ - && tar -${TARCOMP}cf ${2} ${PBASE} - cd $RETDIR - rm -rf $CODIR/${PRGNAM}_temp_checkout_$$ || true - ;; - *) # Do nothing - ;; - esac -} - ## ## --- with a little luck, you won't have to edit below this point --- ## ## |