You are not logged in.
I came across this graphical interface for rTorrent and I wanted to try it out. However, I fail at making proper PKGBUILDs and have almost no knowledge of creating one myself.
The project is located here:http://code.google.com/p/ntorrent/.
This is the PKGBUILD which I've created so far:
# Contributor: Kevin <kevinvanrooij at gmail dot com>
pkgname=nTorrent
pkgver=0.5
pkgrel=1
pkgdesc="A graphical user interface client to rtorrent written in java"
arch=('i686' 'x86_64')
url="http://code.google.com/p/ntorrent/"
license=('GPL')
depends=('rtorrent' 'jre')
install=
source=(http://ntorrent.googlecode.com/files/$pkgname-bin-$pkgver.tar.bz2)
noextract=()
md5sums=('ae067f0c69a1b2410d8a9aa646124ec8')
build() {
cd $srcdir/
make || return 1
make DESTDIR=$pkgdir install || return 1
}This is the error I'm getting:
make: *** No targets specified and no makefile found. Stop.
==> ERROR: Build Failed.
Aborting...Could anyone kindly provide a working PKGBUILD?
Offline
well a quick look at the readme for ntorrent reveals that there is no make of any kind... as is the case with most java apps. so for starters get rid of the make and make install commands. you'd have to create a folder in $pkgdir (probably $pkgdir/usr/share/ntorrent) and copy (or install) the contents of the $srcdir to the newly created folder. also, ensure that the nTorrent.sh file is set to +x.
Here is a link to one of my functional PKGBUILDs for a java app. Look it over and see if you can work out your mistakes. If you still have issues, post your modified PKGBUILD and I'll help you further.
Offline
Thanks, I'll have a look at it tomorrow and will report back.
Offline
Here is a working nTorrent PKGBUILD. I'll submit it to AUR as well!
# Maintainer: Ali H. Caliskan <ali.h.caliskan@gmail.com>
pkgname=ntorrent
pkgver=0.5
pkgrel=1
pkgdesc="A graphical user interface client to rtorrent written in java."
arch=('i686' 'x86_64')
url="http://code.google.com/p/ntorrent"
license=('GPL')
depends=('rtorrent' 'jre')
source=('http://ntorrent.googlecode.com/files/nTorrent-bin-0.5.tar.bz2')
md5sums=('ae067f0c69a1b2410d8a9aa646124ec8')
build() {
cd $srcdir
install -d $startdir/pkg/opt/ntorrent
cp -r plugins $startdir/pkg/opt/ntorrent
cp -r lib $startdir/pkg/opt/ntorrent
cp boot.properties $startdir/pkg/opt/ntorrent
cp LICENSE $startdir/pkg/opt/ntorrent
cp nTorrent.sh $startdir/pkg/opt/ntorrent
# Install launcher script
mkdir -p $startdir/pkg/usr/bin
cat > $startdir/pkg/usr/bin/ntorrent<<EndScript
#!/bin/bash
cd /opt/ntorrent
./nTorrent.sh
EndScript
chmod 755 $startdir/pkg/usr/bin/ntorrent
chmod 755 $startdir/pkg/opt/ntorrent/nTorrent.sh
}Last edited by ahcaliskan (2009-02-23 22:06:12)
Offline
ntorrent doesn't works for me. I tried aur PKGBUILD and ntorrent from the web, with the same result. I can't see any error ![]()
Offline