You are not logged in.

#1 2009-02-21 13:24:23

kevin89
Arch Linux f@h Team Member
From: Netherlands
Registered: 2007-03-14
Posts: 218

[Request] nTorrent

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

#2 2009-02-21 16:20:56

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: [Request] nTorrent

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.


.:[My Blog] || [My GitHub]:.

Offline

#3 2009-02-21 20:35:01

kevin89
Arch Linux f@h Team Member
From: Netherlands
Registered: 2007-03-14
Posts: 218

Re: [Request] nTorrent

Thanks, I'll have a look at it tomorrow and will report back.

Offline

#4 2009-02-23 22:03:12

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: [Request] nTorrent

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

#5 2009-04-20 23:50:53

TSP
Member
Registered: 2007-01-11
Posts: 22

Re: [Request] nTorrent

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 hmm

Offline

Board footer

Powered by FluxBB