aboutsummaryrefslogtreecommitdiff
path: root/audio/ntk/ntk.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/ntk/ntk.SlackBuild')
-rw-r--r--audio/ntk/ntk.SlackBuild23
1 files changed, 7 insertions, 16 deletions
diff --git a/audio/ntk/ntk.SlackBuild b/audio/ntk/ntk.SlackBuild
index 67033add9915d..f1fb0349cee64 100644
--- a/audio/ntk/ntk.SlackBuild
+++ b/audio/ntk/ntk.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/bash
# Slackware build script for non
-# Copyright 2013 Klaatu @ member.fsf.org
+# Copyright 2013-22 Klaatu @ member.fsf.org
# GNU All-Permissive License
# Copying and distribution of this file, with or without modification,
@@ -12,11 +12,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ntk
-SRCNAM=ntk #comment out if building from git
-#to build from git uncomment this one
-#SRCNAM=non
-
-VERSION=${VERSION:-20200928}
+VERSION=${VERSION:-1.3.1001}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,7 +34,7 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
fi
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$SRCNAM
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
@@ -59,10 +55,10 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM-git-$VERSION
-tar xvf $CWD/$SRCNAM-git-$VERSION.tar.xz
-cd $SRCNAM-git-$VERSION
-rm nonlib/nonlib
+rm -rf $PRGNAM
+tar xvf $CWD/v"${VERSION}".tar.gz
+cd $PRGNAM
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -70,11 +66,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# do this if cloning from git
-#git submodule update --init --depth 1
-
-# we are at project root, ie non/
-cd lib/ntk
./waf configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \