diff options
-rw-r--r-- | libraries/ta-lib/ta-lib.SlackBuild | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libraries/ta-lib/ta-lib.SlackBuild b/libraries/ta-lib/ta-lib.SlackBuild index e6bc0a7603..91f2118bd8 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} |