blob: be9b318404461800785481126479852e5a856a4c (
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
# Maintainer: Det <nimetonmaili g-mail>
# Contributor: joseph28cb
# Choose, which icons to use for menus and system tray ("blue", "gray" or "default").
_icon="default"
pkgname=vuze-extreme-mod
pkgver=5.6.1.3
_ver=5612
pkgrel=2
pkgdesc="A modded version of the Vuze BitTorrent client with multiple spoofing capabilities"
arch=('i686' 'x86_64')
url="http://www.sb-innovation.de/f41/"
license=('GPL')
depends=('desktop-file-utils' 'gconf' 'java-runtime')
optdepends=('vuze-plugin-countrylocator: Country flags for the "Peers" tab'
'vuze-plugin-mldht: The alternative Distributed Hash Table implementation (DHT) used by µTorrent'
'xulrunner192: Needed for the channels GUI')
provides=('vuze')
options=('!strip')
install=$pkgname.install
source=("http://downloads.sourceforge.net/project/azureus/vuze/Vuze_${_ver}/Vuze_${_ver}_linux.tar.bz2"
'http://www.sb-innovation.de/attachments/f41/15477d1434194241-vuze-extreme-mod-sb-innovation-5-6-1-3-vpem_5613-01.zip'
{blue,gray}_{16,32,64,128}.png)
noextract=($(basename ${source[1]}))
md5sums=('c20397aa00614ab8b271afef93c877bc'
'9b4f2d968c3ad59a075fb0ced86e1697'
'5eba696cfcc430504706f476e13b2ade'
'a4cae0c46a6ac56322753f96f52b8f74'
'5eba696cfcc430504706f476e13b2ade'
'74fd7cf4d05e5c2111ec2dbf62b3c9d8'
'4374a188968bf9f09cab090ca7d33ce4'
'484182b170741132ffe2d78c6feaf230'
'4374a188968bf9f09cab090ca7d33ce4'
'db19086ba7bd8eefee05538f4c65aa68')
package() {
cd vuze
msg2 "Creating directory structure..."
install -d "$pkgdir"/opt/vuze-extreme-mod/
install -d "$pkgdir"/usr/bin/
install -d "$pkgdir"/usr/share/applications/
install -d "$pkgdir"/usr/share/gconf/schemas/
install -d "$pkgdir"/usr/share/licenses/vuze-extreme-mod/
install -d "$pkgdir"/usr/share/pixmaps/
msg2 "Moving stuff in place..."
# Launcher
mv vuze "$pkgdir"/usr/bin/vuze-extreme-mod
# swt.jar
case "$CARCH" in
i686) mv swt/swt32.jar "$pkgdir"/opt/vuze-extreme-mod/swt.jar ;;
x86_64) mv swt/swt64.jar "$pkgdir"/opt/vuze-extreme-mod/swt.jar ;;
esac
# Icon, desktop and schemas
mv vuze.png "$pkgdir"/usr/share/pixmaps/vuze-extreme-mod.png
mv vuze.desktop "$pkgdir"/usr/share/applications/vuze-extreme-mod.desktop
mv vuze.schemas "$pkgdir"/usr/share/gconf/schemas/vuze-extreme-mod.schemas
# Licenses
mv GPL.txt "$pkgdir"/usr/share/licenses/vuze-extreme-mod/
mv GPLv3.txt "$pkgdir"/usr/share/licenses/vuze-extreme-mod/
mv LICENSES.txt "$pkgdir"/usr/share/licenses/vuze-extreme-mod/
mv TOS.txt "$pkgdir"/usr/share/licenses/vuze-extreme-mod/
# Remove redundancies
rm -r swt/
rm azureus
rm installer.log
rm README.txt
# Move main stuff
mv * "$pkgdir"/opt/vuze-extreme-mod/
msg2 "Tweaking paths"
# Launcher
sed 's|#PROGRAM_DIR=.*|PROGRAM_DIR="/opt/vuze-extreme-mod"|' \
-i "$pkgdir"/usr/bin/vuze-extreme-mod
# Desktop
sed -r -e 's|Name=Vuze|Name=Vuze Extreme Mod|' \
-e 's|Exec=vuze %f|Exec=vuze-extreme-mod %U|' \
-e 's|Icon=vuze.png|Icon=vuze-extreme-mod.png|' \
-e 's|(x-bittorrent)|\1;x-scheme-handler/magnet;|' \
-i "$pkgdir"/usr/share/applications/vuze-extreme-mod.desktop
msg2 "Installing Extreme Mod..."
bsdtar -xf "$srcdir"/$(basename ${source[1]}) -C "$pkgdir"/opt/vuze-extreme-mod/
# Different icons for menus and systray
if [[ $_icon = blue ]] || [[ $_icon = gray ]]; then
msg2 "Using alternative $_icon icons..."
# Menus
cd "$srcdir"
install -m644 ${_icon}_128.png "$pkgdir"/usr/share/pixmaps/vuze-extreme-mod.png
## Systray
# Extract Azureus2.jar from Extreme Mod tarball
install -d tmp/
bsdtar -xf $(basename ${source[1]}) Azureus2.jar
bsdtar -xf Azureus2.jar -C tmp/
# Place icons
for i in 16 32 64 128; do
install -m644 ${_icon}_${i}.png tmp/org/gudy/azureus2/ui/icons/a${i}.png
done
# Recreate Azureus2.jar
cd tmp
jar cf Azureus2.jar ./*/
# Install
install -m644 Azureus2.jar "$pkgdir"/opt/vuze-extreme-mod/
fi
}
|