diff options
author | B. Watson <yalhcru@gmail.com> | 2021-08-22 17:26:06 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-13 00:51:34 +0700 |
commit | e2ce4356c0549308da1c5903fe0f2c113d07e271 (patch) | |
tree | 8cb44e33b4ac96c25dea7574ea75392f51d3bf2f /system/u3-tool/u3-tool.SlackBuild | |
parent | f51dbcd5c14e580516fc4c0663da91c154b139aa (diff) |
system/u3-tool: Updated for version 1.0.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/u3-tool/u3-tool.SlackBuild')
-rw-r--r-- | system/u3-tool/u3-tool.SlackBuild | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/system/u3-tool/u3-tool.SlackBuild b/system/u3-tool/u3-tool.SlackBuild index 32cb8ecfcc5ea..8d400909710d3 100644 --- a/system/u3-tool/u3-tool.SlackBuild +++ b/system/u3-tool/u3-tool.SlackBuild @@ -6,10 +6,16 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20210822 bkw: +# - new upstream, which released a 1.0 in 2012. old, but not as old as +# the 0.3 version from 2009. +# - include commands.txt in the doc dir. +# - fix grammar issues with README and slack-desc. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=u3-tool -VERSION=${VERSION:-0.3} +VERSION=${VERSION:-1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -22,9 +28,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 @@ -53,15 +56,14 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$PRGNAM-$VERSION 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 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ + +autoreconf -ivf CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -80,6 +82,7 @@ gzip -9 $PKG/usr/man/man1/$PRGNAM.1 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING ChangeLog NEWS TODO README $PKG/usr/doc/$PRGNAM-$VERSION +cat doc/commands.txt > $PKG/usr/doc/$PRGNAM-$VERSION/commands.txt cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |