summaryrefslogtreecommitdiffstats
path: root/audio/ncspot/ncspot.SlackBuild
diff options
context:
space:
mode:
author Gene Carlson <kvngncrlsn@gmail.com>2023-02-04 17:37:42 +0900
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-02-04 22:19:38 +0700
commit37629d88ed63ccf0b03176b3bff650bea64a1c35 (patch)
treeae5aca4f7626aeb19a981b1bfd4c24e1bb07bc2b /audio/ncspot/ncspot.SlackBuild
parent18baf75a47b91d2f7461db30b4e1d3f4fe087967 (diff)
downloadslackbuilds-37629d88ed63ccf0b03176b3bff650bea64a1c35.tar.gz
slackbuilds-37629d88ed63ccf0b03176b3bff650bea64a1c35.tar.xz
audio/ncspot: Updated for version 0.12.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/ncspot/ncspot.SlackBuild')
-rw-r--r--audio/ncspot/ncspot.SlackBuild16
1 files changed, 9 insertions, 7 deletions
diff --git a/audio/ncspot/ncspot.SlackBuild b/audio/ncspot/ncspot.SlackBuild
index bfbc92cdac..0716c83c1a 100644
--- a/audio/ncspot/ncspot.SlackBuild
+++ b/audio/ncspot/ncspot.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for ncspot
-# Copyright 2021-2022 K. Eugene Carlson Tsukuba, Japan
+# Copyright 2021-2023 K. Eugene Carlson Tsukuba, Japan
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ncspot
-VERSION=${VERSION:-0.11.0}
+VERSION=${VERSION:-0.12.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -59,15 +59,19 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
CARGOTARGET="--target i586-unknown-linux-gnu"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
CARGOTARGET="--target i686-unknown-linux-gnu"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
CARGOTARGET="--target x86_64-unknown-linux-gnu"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
CARGOTARGET=""
+ LIBDIRSUFFIX=""
fi
unset DRAWCOVER
@@ -85,11 +89,6 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-# For cargo-1.58 incompatibilities
-patch -p1 < $CWD/cargo-lock-$VERSION.patch
-# Fix cursor offset problem
-patch -p1 < $CWD/no-cursor-offset.patch
-
# build offline
# configuration tells cargo to use the configured directory
# for dependencies instead of downloading from crates.io
@@ -147,6 +146,9 @@ 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 {} \;
+export PATH="/opt/rust16/bin:$PATH"
+export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX:$LD_LIBRARY_PATH"
+
CARGO_HOME=.cargo \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \