diff options
Diffstat (limited to 'system/trash-cli/trash-cli.SlackBuild')
-rw-r--r-- | system/trash-cli/trash-cli.SlackBuild | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/system/trash-cli/trash-cli.SlackBuild b/system/trash-cli/trash-cli.SlackBuild index e5fe245430..10713e78ad 100644 --- a/system/trash-cli/trash-cli.SlackBuild +++ b/system/trash-cli/trash-cli.SlackBuild @@ -23,10 +23,12 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=trash-cli -VERSION=${VERSION:-0.11.3-r315} +VERSION=${VERSION:-0.11.3_r315} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +SRCVER=$(printf $VERSION | tr _ -) + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -59,9 +61,9 @@ 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-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz +cd $PRGNAM-$SRCVER chown -R root:root . chmod -R u+w,go+r-w,a-s . |