aboutsummaryrefslogtreecommitdiff
path: root/network/ytfzf/ytfzf.SlackBuild
diff options
context:
space:
mode:
authorSamuel Young <samyoung12788@gmail.com>2023-07-17 09:58:13 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-17 09:58:13 +0700
commit82beed919990c9d962a462cdab24b2a76d401a04 (patch)
tree0bb5569129c7e0313ee73875e05932fc07701949 /network/ytfzf/ytfzf.SlackBuild
parentcee78154c3c4217f85209daf37c9052641e593d5 (diff)
network/ytfzf: Updated for version 2.6.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/ytfzf/ytfzf.SlackBuild')
-rw-r--r--network/ytfzf/ytfzf.SlackBuild36
1 files changed, 9 insertions, 27 deletions
diff --git a/network/ytfzf/ytfzf.SlackBuild b/network/ytfzf/ytfzf.SlackBuild
index 998f991a4d5e..1f47113b9ea1 100644
--- a/network/ytfzf/ytfzf.SlackBuild
+++ b/network/ytfzf/ytfzf.SlackBuild
@@ -25,18 +25,11 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ytfzf
-VERSION=${VERSION:-2.5.5}
+VERSION=${VERSION:-2.6.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i586 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
-fi
+ARCH=noarch
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
@@ -47,20 +40,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
set -e
rm -rf $PKG
@@ -87,14 +66,17 @@ mv $PKG/usr/share/doc/ytfzf/conf.sh $PKG/usr/doc/$PRGNAM-$VERSION/examples
rm -R $PKG/usr/share/doc
mv $PKG/usr/share/licenses/ytfzf/LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
rm -R $PKG/usr/share/licenses
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-cat $TMP/$PRGNAM-$VERSION/README.md > $PKG/usr/doc/$PRGNAM-$VERSION/README
-cat $TMP/$PRGNAM-$VERSION/CONTRIBUTING.md > $PKG/usr/doc/$PRGNAM-$VERSION/CONTRIBUTING
-cat $TMP/$PRGNAM-$VERSION/docs/subscriptions > $PKG/usr/doc/$PRGNAM-$VERSION/examples/subscriptions
+
+cp docs/subscriptions $PKG/usr/doc/$PRGNAM-$VERSION/examples/subscriptions
mkdir -p $PKG/usr/share/ytfzf
cp -r $TMP/$PRGNAM-$VERSION/addons $PKG/usr/share/ytfzf/addons
chmod +x $PKG/usr/share/ytfzf/addons/*
+cp -a \
+ README.md CONTRIBUTING.md \
+ $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