diff options
author | Jeremy Hansen <jebrhansen+github@gmail.com> | 2023-02-24 14:11:35 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-02-25 08:57:34 +0700 |
commit | b1cc1abc21e07607b2651790dd0f5c0f6cbd9a31 (patch) | |
tree | 9aa9d9e6c3d71b9522c7b9b591872f508a031420 /multimedia/filebot | |
parent | 9d7de5b207d5b10e74482d768628bdd4da069022 (diff) |
multimedia/filebot: Version bump to 4.9.6.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/filebot')
-rw-r--r-- | multimedia/filebot/README | 11 | ||||
-rw-r--r-- | multimedia/filebot/filebot.SlackBuild | 41 | ||||
-rw-r--r-- | multimedia/filebot/filebot.info | 14 |
3 files changed, 48 insertions, 18 deletions
diff --git a/multimedia/filebot/README b/multimedia/filebot/README index c69c9b9950d29..d5abbda4761db 100644 --- a/multimedia/filebot/README +++ b/multimedia/filebot/README @@ -7,4 +7,13 @@ artwork. It's smart and just works. Many examples of renaming conventions, including automating renaming, can be found on their website and forum. -If desired, openjdk can be substituted for jdk. +If desired, zulu-openjdk11 can be substituted for any jdk v11 and +higher. + +NOTE: This is no longer a free version. You need to purchase a license +to use this program. You can purchase a 1-year or lifetime license on +their website, https://www.filebot.net/. It is good for all platforms. + +The free version is available on SBo under multimedia/filebot-legacy, +however, that version may have parts of it broken since it is no +longer maintained. Use at your own risk. diff --git a/multimedia/filebot/filebot.SlackBuild b/multimedia/filebot/filebot.SlackBuild index 3d779048ccc56..05c706643e4ef 100644 --- a/multimedia/filebot/filebot.SlackBuild +++ b/multimedia/filebot/filebot.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for filebot # -# Copyright 2016 Jeremy Hansen <jebrhansen+SBo -at- gmail.com> +# Copyright 2016-2023 Jeremy Hansen <jebrhansen+SBo -at- gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,9 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=filebot -VERSION=${VERSION:-4.7.9} +SRCNAM=FileBot +VERSION=${VERSION:-4.9.6} +JNAVER=${JNAVER:-5.13.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +40,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -51,11 +50,17 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then - DEBARCH="i386" LIBDIRSUFFIX="" + JNAARCH="x86" elif [ "$ARCH" = "x86_64" ]; then - DEBARCH="amd64" LIBDIRSUFFIX="64" + JNAARCH="x86-64" +elif [ "$ARCH" = "arm" ]; then + LIBDIRSUFFIX="" + JNAARCH="arm" +elif [ "$ARCH" = "aarch64" ]; then + LIBDIRSUFFIX="" + JNAARCH="aarch64" else echo "Package for $(uname -m) architecture is not available." exit 1 @@ -63,10 +68,16 @@ fi set -eu -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT +rm -rf $PKG $TMP/jna +mkdir -p $TMP $PKG $OUTPUT $TMP/jna +cd $TMP/jna +unzip $CWD/jna-$JNAVER.jar cd $PKG -ar p $CWD/${PRGNAM}_${VERSION}_${DEBARCH}.deb data.tar.xz | unxz | tar xv +ar p $CWD/${SRCNAM}_${VERSION}_universal.deb data.tar.xz | unxz | tar xv + +mkdir -p $PKG/usr/share/filebot/lib/$(uname -m) +cp $TMP/jna/com/sun/jna/linux-$JNAARCH/libjnidispatch.so $PKG/usr/share/filebot/lib/$(uname -m) +cp $CWD/jna-$JNAVER.jar $PKG/usr/share/filebot/jar/jna.jar chown -R root:root . find -L . \ @@ -88,10 +99,18 @@ cat << EOF > $PKG/usr/bin/filebot # # Launcher for FileBot -/usr/share/filebot/filebot.sh "$@" +/usr/share/filebot/bin/filebot.sh "\$@" EOF chmod 0755 $PKG/usr/bin/filebot +# Ensure it uses the proper jna library +SEDSEARCH="-Djna.boot.library.name=jnidispatch.system" +SEDREPLACE='-Djna.boot.library.path=\"$LIBRARY_PATH\" -Djna.library.path=\"$LIBRARY_PATH\" -Djava.library.path=\"$LIBRARY_PATH\"' +sed -i "s|$SEDSEARCH|$SEDREPLACE|" $PKG/usr/share/filebot/bin/filebot.sh + +# Set the correct paths +sed -i "s|LIBRARY_PATH=.*|LIBRARY_PATH=\$FILEBOT_HOME/lib/\$(uname -m):/usr/lib$LIBDIRSUFFIX|" $PKG/usr/share/filebot/bin/filebot.sh + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh diff --git a/multimedia/filebot/filebot.info b/multimedia/filebot/filebot.info index d93775eed7092..9c13bf8f69369 100644 --- a/multimedia/filebot/filebot.info +++ b/multimedia/filebot/filebot.info @@ -1,10 +1,12 @@ PRGNAM="filebot" -VERSION="4.7.9" +VERSION="4.9.6" HOMEPAGE="https://www.filebot.net" -DOWNLOAD="http://downloads.sourceforge.net/project/filebot/filebot/FileBot_4.7.9/filebot_4.7.9_i386.deb" -MD5SUM="ab14c92e18b961068a5b850748aea379" -DOWNLOAD_x86_64="http://downloads.sourceforge.net/project/filebot/filebot/FileBot_4.7.9/filebot_4.7.9_amd64.deb" -MD5SUM_x86_64="8e4aa7163bd4ddd8017459fb77e4e0ee" -REQUIRES="zulu-openjdk8 chromaprint libmediainfo" +DOWNLOAD="https://get.filebot.net/filebot/FileBot_4.9.6/FileBot_4.9.6_universal.deb \ + https://repo1.maven.org/maven2/net/java/dev/jna/jna/5.13.0/jna-5.13.0.jar" +MD5SUM="f7b1251e17cca8fe353f974d2997c397 \ + bd2e5bc6b4b020c2d9a6e17a8e9bcef1" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="zulu-openjdk11 chromaprint libmediainfo" MAINTAINER="Jeremy Hansen" EMAIL="jebrhansen+SBo@gmail.com" |