1 # Contributor/Maintainer: ilikenwf/Matt Parnell <parwok@gmail.com>
6 pkgdesc="Remote control for Azureus/Vuze. You must have the plugin enabled in Azureus/Vuze to use this on a remote host."
8 url="http://azsmrc.sourceforge.net/"
12 source=('http://downloads.sourceforge.net/azsmrc/AzSMRC_1.0.0.zip'
16 md5sums=('0f8a98ea8ad313074c2c4fd1d449e5e4'
17 '6eded06bf3b4095ba0b230d011e61e59'
18 '439484e023c44ae948c566404629f97b'
19 '5f3bf7631ae54b7f3c463a399cd62cfa')
21 [ "$CARCH" = "x86_64" ] && source=('http://downloads.sourceforge.net/azsmrc/AzSMRC_1.0.0.zip'
22 'http://www.mattparnell.com/linux/azsmrc/swt_64.jar'
26 && md5sums=('0f8a98ea8ad313074c2c4fd1d449e5e4'
27 '6eded06bf3b4095ba0b230d011e61e59'
28 '8ef4ba7fb63eeaf7080984ff05e7ef85'
29 '439484e023c44ae948c566404629f97b'
30 '5f3bf7631ae54b7f3c463a399cd62cfa')
36 # SWT is not arch independent, so we have to do this annoying step...
37 # Furthermore, it has to be the eclipse version of SWT to work
38 # Rather than getting that zip and dealing with file replacements, we just use static
39 [ "$CARCH" = "x86_64" ] && rm swt.jar && mv swt_64.jar swt.jar
41 /bin/mkdir ${pkgdir}/opt
42 /bin/mkdir ${pkgdir}/opt/azsmrc/
44 /bin/install -c AzSMRC_1.0.0.jar ${pkgdir}/opt/azsmrc/AzSMRC_1.0.0.jar
45 /bin/install -c AzSMRCupdate.xml.gz ${pkgdir}/opt/azsmrc/AzSMRCupdate.xml.gz
46 /bin/install -c commons-codec_1.3.jar ${pkgdir}/opt/azsmrc/commons-codec_1.3.jar
47 /bin/install -c jdom_1.1.jar ${pkgdir}/opt/azsmrc/jdom_1.1.jar
48 /bin/install -c launcher.jar ${pkgdir}/opt/azsmrc/launcher.jar
49 /bin/install -c launch.properties ${pkgdir}/opt/azsmrc/launch.properties
50 /bin/install -c log4j_1.2.13.jar ${pkgdir}/opt/azsmrc/log4j_1.2.13.jar
51 /bin/install -c swt.jar ${pkgdir}/opt/azsmrc/swt.jar
53 chmod 667 ${pkgdir}/opt/azsmrc/
55 /bin/mkdir ${pkgdir}/usr/
56 /bin/mkdir ${pkgdir}/usr/share
57 /bin/mkdir ${pkgdir}/usr/share/pixmaps
58 /bin/mkdir ${pkgdir}/usr/share/applications
59 /bin/mkdir ${pkgdir}/usr/bin
61 /bin/install -m555 -c azsmrc ${pkgdir}/usr/bin/azsmrc
62 /bin/install -m644 azsmrc.desktop ${pkgdir}/usr/share/applications/azsmrc.desktop || return 1
63 /bin/install -m644 azsmrc.png ${pkgdir}/usr/share/pixmaps/azsmrc.png || return 1