diff options
Diffstat (limited to 'libraries/libnfs/libnfs.SlackBuild')
-rw-r--r-- | libraries/libnfs/libnfs.SlackBuild | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/libraries/libnfs/libnfs.SlackBuild b/libraries/libnfs/libnfs.SlackBuild index 1adcce5dde9b8..50cd4078ff67d 100644 --- a/libraries/libnfs/libnfs.SlackBuild +++ b/libraries/libnfs/libnfs.SlackBuild @@ -5,7 +5,7 @@ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> PRGNAM=libnfs -VERSION=${VERSION:-1.2.0} +VERSION=${VERSION:-1.3.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -38,14 +38,20 @@ fi set -e -[ -e ${PRGNAM}-${VERSION} ] && mv ${PRGNAM}-${VERSION} sahlberg-$PRGNAM-$PRGNAM-$VERSION-0-g345422a.tar.gz -DIRNAME=$(tar -tf $CWD/sahlberg-$PRGNAM-$PRGNAM-$VERSION-0-g345422a.tar.gz | head -1) +# In $CWD +if [ ! -r sahlberg-$PRGNAM-$PRGNAM-$VERSION-0-g47e5a2c.tar.gz ]; then + if [ -r $PRGNAM-$VERSION ]; then + mv $PRGNAM-$VERSION sahlberg-$PRGNAM-$PRGNAM-$VERSION-0-g47e5a2c.tar.gz + fi +fi + +DIRNAME=$(tar -tf $CWD/sahlberg-$PRGNAM-$PRGNAM-$VERSION-0-g47e5a2c.tar.gz | head -1) rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $DIRNAME -tar xvf $CWD/sahlberg-$PRGNAM-$PRGNAM-$VERSION-0-g345422a.tar.gz +tar xvf $CWD/sahlberg-$PRGNAM-$PRGNAM-$VERSION-0-g47e5a2c.tar.gz cd $DIRNAME chown -R root:root . find . \ |