Add filebot

This commit is contained in:
Travis Burtrum 2017-02-05 00:36:30 -05:00
parent e0a4f4e8c5
commit 67926c6e06
6 changed files with 202 additions and 0 deletions

33
src/filebot/.SRCINFO Normal file
View File

@ -0,0 +1,33 @@
pkgbase = filebot
pkgdesc = The ultimate tool to rename TV/anime shows, download subtitles, and validate checksums.
pkgver = 4.7.7
pkgrel = 5
url = http://filebot.sourceforge.net/
install = filebot.install
arch = i686
arch = x86_64
arch = arm
arch = armv6h
arch = armv7h
license = GPL
makedepends = unzip
depends = java-runtime>=8
depends = fontconfig
depends = chromaprint
optdepends = libzen: Support for additional subtitle search engines (Sublight)
optdepends = libmediainfo: Episode naming / Sublight usage
optdepends = java-p7zip-binding: Extract archives
optdepends = gvfs: gvfs backends
source = http://downloads.sourceforge.net/project/filebot/filebot/FileBot_4.7.7/FileBot_4.7.7-portable.tar.xz
source = https://github.com/java-native-access/jna/archive/4.2.2.tar.gz
source = filebot-arch.sh
source = filebot.svg
source = filebot.desktop
md5sums = 58d35910d5d164454c7840122a17dace
md5sums = 51d0359bcdb999ec0a655c68d399f304
md5sums = 3b51756c50a54447a5e6fb6c052e3453
md5sums = 04f46be047049448dba3f0de29fe192d
md5sums = f37edd0bba7570904d28ab1681c7a7f3
pkgname = filebot

56
src/filebot/PKGBUILD Normal file
View File

@ -0,0 +1,56 @@
# Maintainer: max.bra <max dot bra at alice dot it>
# Contributor: said
# Contributor: Kaurin <milos dot kaurin at gmail>
# Contributor: Nathan Owe <ndowens04 at gmail>
pkgname=filebot
pkgver=4.7.7
pkgrel=5
_jnaver=4.2.2
pkgdesc="The ultimate tool to rename TV/anime shows, download subtitles, and validate checksums."
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url="http://filebot.sourceforge.net/"
license=('GPL')
install=$pkgname.install
depends=('java-runtime>=8' 'fontconfig' 'chromaprint')
makedepends=('unzip')
[[ $CARCH == "i686" ]] && _intarch=x86
[[ $CARCH == "x86_64" ]] && _intarch=x86-64
[[ $CARCH == "arm" ]] && _intarch=arm
[[ $CARCH == "armv6h" ]] && _intarch=arm
[[ $CARCH == "armv7h" ]] && _intarch=arm
source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname/FileBot_$pkgver/FileBot_$pkgver-portable.tar.xz
https://github.com/java-native-access/jna/archive/$_jnaver.tar.gz
$pkgname-arch.sh $pkgname.svg $pkgname.desktop)
md5sums=('58d35910d5d164454c7840122a17dace'
'51d0359bcdb999ec0a655c68d399f304'
'3b51756c50a54447a5e6fb6c052e3453'
'04f46be047049448dba3f0de29fe192d'
'f37edd0bba7570904d28ab1681c7a7f3')
optdepends=('libzen: Support for additional subtitle search engines (Sublight)'
'libmediainfo: Episode naming / Sublight usage'
'java-p7zip-binding: Extract archives'
'gvfs: gvfs backends')
#noextract=($(for i in ${source[@]}; do basename $i; done))
build() {
/bin/true
}
prepare() {
cd jna-$_jnaver/lib/native/
unzip linux-$_intarch.jar 2>&1 >/dev/null
}
package() {
install -Dm644 FileBot.jar "$pkgdir/usr/share/java/$pkgname/$pkgname.jar"
install -Dm644 jna-$_jnaver/lib/native/libjnidispatch.so "$pkgdir/usr/share/java/$pkgname/libjnidispatch.so"
install -Dm755 $pkgname-arch.sh "$pkgdir/usr/bin/$pkgname"
install -Dm644 $pkgname.svg "$pkgdir/usr/share/pixmaps/$pkgname.svg"
install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
}

View File

@ -0,0 +1,28 @@
#!/bin/bash
# force JVM language and encoding settings
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
APP_ROOT=/usr/share/java/filebot
# add APP_ROOT to LD_LIBRARY_PATH
if [ ! -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$APP_ROOT"
else
export LD_LIBRARY_PATH="$APP_ROOT"
fi
# choose extractor
EXTRACTOR="ApacheVFS" # use Apache Commons VFS2 with junrar plugin
# EXTRACTOR="SevenZipExecutable" # use the 7z executable
# EXTRACTOR="SevenZipNativeBindings" # use the lib7-Zip-JBinding.so native library
# start filebot
java -Dunixfs=false -DuseGVFS=true -DuseExtendedFileAttributes=true -DuseCreationDate=false \
-Dfile.encoding="UTF-8" -Dsun.jnu.encoding="UTF-8" -Djava.net.useSystemProxies=false \
-Djna.nosys=false -Dapplication.deployment=portable \
-Dnet.filebot.Archive.extractor="$EXTRACTOR" -Dnet.filebot.AcoustID.fpcalc="fpcalc" \
-Dapplication.dir=$HOME/.config/filebot -Djava.io.tmpdir=/tmp/filebot -Dapplication.update=skip \
-Djna.library.path=/usr/share/java \
$JAVA_OPTS -jar /usr/share/java/filebot/filebot.jar "$@"

View File

@ -0,0 +1,8 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=Filebot
Comment=TV renamer/subtitle downloader/sfv validator
Exec=filebot
Icon=filebot
Categories=AudioVideo;

View File

@ -0,0 +1,9 @@
post_install() {
echo -e "\e[1;33m==>\e[0m if you use OpenJDK as Java VM you \e[1;31mmust\e[0m also install OpenJFX"
echo -e "\e[1;33m==>\e[0m \e[1;36mhttps://wiki.archlinux.org/index.php/Java#OpenJFX\e[0m"
}
post_upgrade() {
post_install $1
}

68
src/filebot/filebot.svg Normal file
View File

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="150px" height="150px" viewBox="0 0 150 150" enable-background="new 0 0 150 150" xml:space="preserve">
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="74.4683" y1="5.5562" x2="74.4683" y2="144.7075">
<stop offset="0" style="stop-color:#FFFFFF"/>
<stop offset="0.1882" style="stop-color:#FFFFFF"/>
<stop offset="0.4766" style="stop-color:#EEEFEF"/>
<stop offset="0.7425" style="stop-color:#E7E9EA"/>
<stop offset="1" style="stop-color:#F4F2F3"/>
</linearGradient>
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="74.4678" y1="4.083" x2="74.4678" y2="146.1802">
<stop offset="0" style="stop-color:#A1B7CB"/>
<stop offset="0.0962" style="stop-color:#899FB3"/>
<stop offset="0.268" style="stop-color:#6B8297"/>
<stop offset="0.4434" style="stop-color:#556E84"/>
<stop offset="0.6218" style="stop-color:#446278"/>
<stop offset="0.805" style="stop-color:#3A5B71"/>
<stop offset="1" style="stop-color:#37596E"/>
</linearGradient>
<path fill="url(#SVGID_1_)" stroke="url(#SVGID_2_)" stroke-width="2.9459" stroke-miterlimit="10" d="M144.271,132.672
c0,6.647-5.39,12.035-12.036,12.035H16.702c-6.647,0-12.036-5.388-12.036-12.035V17.592c0-6.647,5.389-12.036,12.036-12.036h115.532
c6.646,0,12.036,5.389,12.036,12.036V132.672z"/>
<g>
<path fill="#E57025" d="M79.124,33.484c0,0.149-0.02,0.382-0.056,0.698c-0.038,0.317-0.084,0.67-0.14,1.061
c-0.056,0.391-0.14,0.801-0.252,1.228c-0.111,0.428-0.242,0.829-0.391,1.201s-0.316,0.67-0.502,0.893
c-0.187,0.223-0.391,0.335-0.614,0.335c-0.261,0-0.586-0.074-0.977-0.223c-0.392-0.148-0.848-0.307-1.369-0.475
c-0.521-0.167-1.136-0.326-1.842-0.475c-0.708-0.148-1.489-0.224-2.345-0.224c-1.601,0-2.969,0.243-4.104,0.726
c-1.136,0.484-2.113,1.238-2.931,2.261c-0.819,1.024-1.507,2.317-2.066,3.88c-0.558,1.563-1.042,3.406-1.452,5.527l-0.949,5.025
h11.223c0.409,0,0.734,0.14,0.977,0.419c0.242,0.279,0.363,0.735,0.363,1.368c0,0.41-0.038,0.837-0.112,1.284
c-0.075,0.447-0.167,0.885-0.279,1.312c-0.111,0.428-0.251,0.837-0.418,1.229c-0.167,0.391-0.354,0.735-0.559,1.033
c-0.205,0.298-0.438,0.54-0.698,0.726c-0.261,0.187-0.521,0.279-0.782,0.279H57.573l-9.547,47.57
c-0.633,3.126-1.489,5.834-2.568,8.123c-1.08,2.289-2.401,4.188-3.964,5.695c-1.563,1.507-3.369,2.624-5.416,3.35
c-2.047,0.726-4.355,1.089-6.923,1.089c-1.675,0-3.043-0.131-4.104-0.391c-1.061-0.261-1.721-0.503-1.982-0.727
c-0.148-0.187-0.26-0.391-0.335-0.613c-0.074-0.224-0.111-0.522-0.111-0.894c0-0.149,0.028-0.4,0.083-0.754
c0.056-0.354,0.122-0.726,0.195-1.116c0.075-0.392,0.168-0.802,0.279-1.229c0.112-0.429,0.243-0.829,0.391-1.2
c0.149-0.373,0.316-0.671,0.502-0.894c0.187-0.224,0.41-0.335,0.67-0.335c0.261,0,0.512,0.027,0.754,0.084
c0.242,0.056,0.502,0.111,0.781,0.167c0.279,0.056,0.614,0.111,1.005,0.168c0.391,0.056,0.884,0.083,1.479,0.083
c1.563,0,2.913-0.242,4.048-0.726c1.135-0.484,2.102-1.238,2.903-2.261c0.8-1.024,1.47-2.317,2.01-3.881
c0.539-1.563,1.033-3.443,1.479-5.639l9.157-45.671h-7.146c-0.373,0-0.662-0.12-0.866-0.363c-0.205-0.242-0.307-0.698-0.307-1.368
c0-0.298,0.019-0.661,0.056-1.089c0.037-0.428,0.102-0.865,0.195-1.312c0.092-0.447,0.214-0.874,0.363-1.284
c0.148-0.409,0.335-0.782,0.559-1.117c0.223-0.335,0.455-0.604,0.698-0.81c0.242-0.204,0.549-0.307,0.921-0.307h7.035l1.396-6.979
c0.595-3.052,1.452-5.723,2.568-8.012c1.116-2.289,2.465-4.178,4.048-5.667c1.582-1.488,3.406-2.596,5.471-3.322
c2.066-0.726,4.346-1.089,6.84-1.089c0.818,0,1.675,0.047,2.568,0.14c0.894,0.093,1.721,0.223,2.485,0.391
c0.762,0.167,1.432,0.363,2.01,0.586c0.576,0.224,0.977,0.447,1.2,0.67c0.223,0.187,0.391,0.447,0.502,0.782
C79.068,32.758,79.124,33.113,79.124,33.484z"/>
</g>
<g>
<path fill="#69899F" d="M128.96,72.064c0,2.233-0.205,4.699-0.614,7.397c-0.409,2.699-1.07,5.416-1.981,8.151
c-0.913,2.736-2.058,5.397-3.434,7.984c-1.378,2.588-3.063,4.877-5.053,6.867c-1.992,1.992-4.281,3.593-6.868,4.802
s-5.499,1.814-8.737,1.814c-3.35,0-6.217-0.633-8.599-1.898c-2.382-1.265-4.504-3.089-6.364-5.471l-1.005,4.913
c-0.075,0.633-0.475,1.08-1.201,1.34c-0.726,0.26-1.833,0.391-3.321,0.391c-1.563,0-2.606-0.149-3.127-0.446
c-0.521-0.298-0.708-0.727-0.559-1.284l14.852-74.592c0.074-0.298,0.195-0.559,0.363-0.782c0.167-0.224,0.446-0.409,0.837-0.559
c0.391-0.148,0.894-0.26,1.508-0.335c0.614-0.074,1.386-0.111,2.317-0.111c0.893,0,1.619,0.037,2.177,0.111
c0.559,0.075,1.005,0.187,1.34,0.335c0.335,0.149,0.54,0.335,0.614,0.559c0.074,0.223,0.093,0.484,0.057,0.782l-4.467,22.444
c-0.187,0.968-0.41,1.974-0.67,3.015c-0.261,1.042-0.53,2.075-0.81,3.099c-0.279,1.024-0.559,1.992-0.838,2.903
c-0.279,0.913-0.53,1.703-0.754,2.373c0.595-1.303,1.535-2.652,2.819-4.048c1.284-1.396,2.792-2.68,4.522-3.853
c1.731-1.172,3.62-2.149,5.667-2.931s4.113-1.172,6.198-1.172c2.232,0,4.149,0.298,5.75,0.893c1.601,0.596,2.959,1.387,4.076,2.373
c1.116,0.986,2.019,2.113,2.708,3.378c0.688,1.266,1.219,2.568,1.591,3.908c0.372,1.34,0.633,2.671,0.782,3.992
C128.885,69.729,128.96,70.948,128.96,72.064z M119.301,72.846c0-1.005-0.093-2.158-0.278-3.462
c-0.188-1.302-0.55-2.512-1.089-3.629c-0.54-1.117-1.322-2.056-2.346-2.819c-1.023-0.763-2.392-1.145-4.104-1.145
c-2.01,0-4.058,0.578-6.142,1.731c-2.085,1.154-4.02,2.746-5.807,4.774c-1.786,2.029-3.378,4.411-4.773,7.146
c-1.396,2.735-2.41,5.723-3.043,8.961l-1.842,9.269c1.749,2.568,3.629,4.466,5.639,5.694s4.28,1.843,6.812,1.843
c1.935,0,3.685-0.446,5.248-1.34s2.978-2.084,4.243-3.573c1.266-1.488,2.363-3.191,3.295-5.108c0.93-1.917,1.702-3.927,2.316-6.03
c0.614-2.103,1.079-4.216,1.396-6.337S119.301,74.708,119.301,72.846z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.8 KiB