summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD29
-rw-r--r--ntorrent.desktop10
-rw-r--r--ntorrent.sh9
4 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2bf8ee93927
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = ntorrent
+ pkgdesc = A graphical user interface client to rtorrent written in java.
+ pkgver = 0.5.1
+ pkgrel = 3
+ url = http://code.google.com/p/ntorrent
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ depends = java-runtime
+ optdepends = rtorrent
+ source = http://ntorrent.googlecode.com/files/nTorrent-bin-0.5.1.tar.bz2
+ source = ntorrent.sh
+ source = ntorrent.desktop
+ md5sums = 1ea043bd77c21fb3969b55ed3008d7b4
+ md5sums = 355c948db97bafdf19c01b574c21dbe7
+ md5sums = afc084d01929ad93573995f17b8717bd
+
+pkgname = ntorrent
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f23d3423c6d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Vincent Post <centzilius@w1r3.org>
+# Contributor: Joao Cordeiro <jlcordeiro at gmail dot com>
+# Contributor: ahcaliskan
+# Contributor: bakerct
+
+pkgname=ntorrent
+pkgver=0.5.1
+pkgrel=3
+pkgdesc="A graphical user interface client to rtorrent written in java."
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/ntorrent"
+license=('GPL3')
+depends=('java-runtime')
+optdepends=("rtorrent")
+source=("http://ntorrent.googlecode.com/files/nTorrent-bin-${pkgver}.tar.bz2"
+ 'ntorrent.sh'
+ 'ntorrent.desktop')
+md5sums=('1ea043bd77c21fb3969b55ed3008d7b4'
+ '355c948db97bafdf19c01b574c21dbe7'
+ 'afc084d01929ad93573995f17b8717bd')
+package() {
+ install -d "${pkgdir}/usr/share/java/${pkgname}"
+ install -d "${pkgdir}/usr/share/${pkgname}"
+ install -m644 "${srcdir}/lib/"* "${pkgdir}/usr/share/java/${pkgname}"
+ cp -r "${srcdir}/plugins" "${srcdir}/boot.properties" "${pkgdir}/usr/share/${pkgname}"
+ install -D -m755 "${srcdir}/ntorrent.sh" "${pkgdir}/usr/bin/ntorrent"
+ install -D -m644 "${srcdir}/ntorrent.desktop" "${pkgdir}/usr/share/applications/ntorrent.desktop"
+ install -D -m644 "${srcdir}/plugins/ntorrent/icons/ntorrent48.png" "${pkgdir}/usr/share/pixmaps/ntorrent.png"
+}
diff --git a/ntorrent.desktop b/ntorrent.desktop
new file mode 100644
index 00000000000..5b437dca725
--- /dev/null
+++ b/ntorrent.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Version=0.5.30
+Name=NTorrent
+Comment=GUI for RTorrent
+Exec=ntorrent
+Icon=ntorrent
+Terminal=false
+Categories=Application;Network;
+Name[de_DE]=ntorrent.desktop
diff --git a/ntorrent.sh b/ntorrent.sh
new file mode 100644
index 00000000000..6761269d88c
--- /dev/null
+++ b/ntorrent.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+CP="."
+for name in /usr/share/java/ntorrent/*.jar ; do
+ CP="$CP:$name"
+done
+
+cd /usr/share/ntorrent
+java -cp "$CP" org.java.plugin.boot.Boot "$@"