summaryrefslogtreecommitdiff
path: root/libraries/libyang
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-01-03 04:13:16 -0500
committerRobby Workman <rworkman@slackbuilds.org>2020-01-03 04:44:14 -0600
commit0f906d81bfa67f5200bda65e8d2298746aba6ffd (patch)
tree9e7e33d2dd7c495577826364ad8c6a765fccc74e /libraries/libyang
parent79eb57cac32290f7d01eaf4cb2bc3fdd4601a0ea (diff)
downloadslackbuilds-0f906d81bfa67f5200bda65e8d2298746aba6ffd.tar.gz
libraries/libyang: Fix VERSION (no hyphens).
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/libyang')
-rw-r--r--libraries/libyang/libyang.SlackBuild12
-rw-r--r--libraries/libyang/libyang.info2
2 files changed, 9 insertions, 5 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 \
diff --git a/libraries/libyang/libyang.info b/libraries/libyang/libyang.info
index fc31a0fe10..8fe1081f1e 100644
--- a/libraries/libyang/libyang.info
+++ b/libraries/libyang/libyang.info
@@ -1,5 +1,5 @@
PRGNAM="libyang"
-VERSION="0.16-r3"
+VERSION="0.16_r3"
HOMEPAGE="https://github.com/CESNET/libyang"
DOWNLOAD="https://github.com/CESNET/libyang/archive/v0.16-r3/libyang-0.16-r3.tar.gz"
MD5SUM="a7cc2cc10de2ec92a51eee69c98566fa"