summaryrefslogtreecommitdiff
path: root/libraries/libyang/libyang.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libyang/libyang.SlackBuild')
-rw-r--r--libraries/libyang/libyang.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/libraries/libyang/libyang.SlackBuild b/libraries/libyang/libyang.SlackBuild
index b64ea2f757..7cafc85c8c 100644
--- a/libraries/libyang/libyang.SlackBuild
+++ b/libraries/libyang/libyang.SlackBuild
@@ -22,11 +22,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20200103 bkw: Modified by Slackbuilds.org: VERSION can't contain hyphens.
+
PRGNAM=libyang
-VERSION=${VERSION:-0.16-r3}
+VERSION=${VERSION:-0.16_r3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCVER=${VERSION/_/-}
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -59,9 +63,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 .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \