aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2020-01-03 04:18:00 -0600
committerRobby Workman <rworkman@slackbuilds.org>2020-01-03 04:18:00 -0600
commit2c3dc76d607a5f9a82517fc594868aac3c63f659 (patch)
tree453c986672701fc750a1aa76c4ec4c7a8ea513ce /libraries
parent28ca9153bdb71f7476f8940a27f3934bcd0a06a8 (diff)
libraries/ta-lib: Fixed VERSION in build script
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/ta-lib/ta-lib.SlackBuild16
1 files changed, 9 insertions, 7 deletions
diff --git a/libraries/ta-lib/ta-lib.SlackBuild b/libraries/ta-lib/ta-lib.SlackBuild
index e6bc0a760364c..91f2118bd886d 100644
--- a/libraries/ta-lib/ta-lib.SlackBuild
+++ b/libraries/ta-lib/ta-lib.SlackBuild
@@ -23,10 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ta-lib
-VERSION=${VERSION:-0.4.0-src}
+VERSION=${VERSION:-0.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCVERS=${SRCVERS:-${VERSION}-src}
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -59,8 +61,8 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+rm -rf $PRGNAM-$SRCVERS
+tar xvf $CWD/$PRGNAM-$SRCVERS.tar.gz
cd $PRGNAM
chown -R root:root .
find -L . \
@@ -77,7 +79,7 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-${VERSION/-src/} \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
make
@@ -91,11 +93,11 @@ find $PKG -name perllocal.pod \
-o -name "*.bs" \
| xargs rm -f
-mkdir -p $PKG/usr/doc/$PRGNAM-${VERSION/-src/}
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-${VERSION/-src/}/$PRGNAM.SlackBuild
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION/-src/}-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}