diff options
Diffstat (limited to 'development/smartsvn/smartsvn.SlackBuild')
-rw-r--r-- | development/smartsvn/smartsvn.SlackBuild | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/development/smartsvn/smartsvn.SlackBuild b/development/smartsvn/smartsvn.SlackBuild index 228c2a5c34..bfd8feca90 100644 --- a/development/smartsvn/smartsvn.SlackBuild +++ b/development/smartsvn/smartsvn.SlackBuild @@ -22,7 +22,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM="smartsvn" -VERSION=${VERSION:-8.5.5} +VERSION=${VERSION:-9.0.5} +SRCVER=$(echo $VERSION | tr . _) BUILD=${BUILD:-1} TAG=${TAG:-_SBo} ARCH=noarch @@ -32,28 +33,23 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -#they use _ instead of periods... -FILE_VERSION=${VERSION//./_} - -# if file downloaded with ?access= then rename -mv $PRGNAM-linux-$FILE_VERSION.tar.gz\?access\=* $PRGNAM-linux-$FILE_VERSION.tar.gz 2>/dev/null - set -e -rm -rf $TMP/$PRGNAM-$VERSION $PKG +rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -tar xvf $CWD/$PRGNAM-linux-$FILE_VERSION.tar.gz -cd $PRGNAM-$FILE_VERSION -chown -R root.root . +rm -rf $PRGNAM +tar xvf $CWD/$PRGNAM-linux-$SRCVER.tar.gz +cd $PRGNAM +chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -R changelog.txt license.html readme-linux.txt smartsvn.url licenses \ +cp -R license.html smartsvn.url licenses/ \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |