blob: e4a862597c2f847e5ee3d1f6fca13679cf22d891 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Maintainer: Roman Vasilev <2rvasilev@live.ru>
# Maintainer: max.bra <max dot bra at alice dot it>
# Contributor: nadolph
# Contributor: dcelasun
# Contributor: said
# Contributor: Kaurin <milos dot kaurin at gmail>
# Contributor: Nathan Owe <ndowens04 at gmail>
pkgname=filebot
pkgver=4.8.4
pkgrel=4
_jnaver=4.5.2
_fixedcommit=b9572f4501ba9d5af9d445a792fa902274f37679
pkgdesc="The ultimate tool to rename TV/anime shows, download subtitles, and validate checksums."
arch=('i686' 'x86_64' 'aarch64' 'armv7l' 'armv7h')
url="https://github.com/filebot/filebot"
license=('GPL')
install=$pkgname.install
depends=('java-openjfx' 'jre8-openjdk' 'fontconfig' 'chromaprint')
makedepends=('ant' 'ivy')
provides=('filebot')
conflicts=('filebot47' 'filebot-git')
[[ $CARCH == "i686" ]] && _intarch=i686
[[ $CARCH == "x86_64" ]] && _intarch=amd64
[[ $CARCH == "armv7l" ]] && _intarch=armv7l
[[ $CARCH == "armv7h" ]] && _intarch=armv7l
[[ $CARCH == "aarch64" ]] && _intarch=armv8
_jre=$(archlinux-java get)
source=("${pkgname}::git+https://github.com/filebot/filebot.git"
#https://github.com/java-native-access/jna/archive/$_jnaver.tar.gz
$pkgname-arch.sh $pkgname.svg $pkgname.desktop)
md5sums=('SKIP'
'7c1128f94fcd9f4e29225a12eac83704'
'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))
prepare() {
cd "$srcdir/$pkgname/"
git checkout $_fixedcommit
patch -p1 -i jdk8.patch
sed -i -E 's/-portable.tar.xz/-portable.tar.gz/' build.xml
sed -i -E 's/tar.compression: xz/tar.compression: gzip/' app.properties
cat <<EOT >> app.properties
url.data: https://app.filebot.net/data
apikey.fanart.tv: 780b986b22c35e6f7a134a2f392c2deb
apikey.thetvdb: 694FAD89942D3827
apikey.themoviedb: 66308fb6e3fd850dde4c7d21df2e8306
apikey.omdb: 49d311ec
apikey.acoustid: 0B3qZnQc
apikey.anidb: filebot
apikey.opensubtitles: FileBot
EOT
}
build() {
cd $pkgname
# print('Set system '+$_jre+' to java-9-openjdk. Should be reverted after build')
sudo archlinux-java set java-8-openjdk
ant resolve
ant jar
# print('Reverting system Java to '+$_jre)
# sudo archlinux-java set $_jre
}
package() {
install -Dm644 $pkgname/lib/native/linux-$_intarch/libjnidispatch.so "$pkgdir/usr/share/java/$pkgname/libjnidispatch.so"
cp -dpr --no-preserve=ownership $pkgname/dist/lib/* "$pkgdir/usr/share/java/$pkgname/"
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"
sudo archlinux-java set $_jre
}
|