LinHES Forums
http://forum.linhes.org/

trying to install from PKGBUILD - help me learn :)
http://forum.linhes.org/viewtopic.php?f=11&t=19674
Page 1 of 1

Author:  graysky [ Wed Mar 11, 2009 2:51 pm ]
Post subject:  trying to install from PKGBUILD - help me learn :)

I'm learning so please be gentle. I'm trying to install deluge from the official arch PKGBUILD which I found here onto my R6 box. I read the Makepkg arch wiki page and put the PKGBUILD into a directory, then I did this:

Code:
# pacman -Sy base-devel


Now I attempted to build the PKGBUILD:

Code:
$ makepkg
==> ERROR: Fakeroot must be installed if using the 'fakeroot' option
    in the BUILDENV array in /etc/makepkg.conf.


So I tried to get the fakeroot package from the LinHES repo, but didn't find it. I then edited the /etc/makepkg.conf and put a "!" in front of the fakeroot in the BUILDENV= section so the line in there now reads: BUILDENV=(!fakeroot !distcc color !ccache !xdelta).

Now when I issued the 'makepkg' command I got a list of dependencies I needed which I installed to a point where I have two left:

Code:
$ makepkg
==> WARNING: Running makepkg as an unprivileged user will result in non-root
    ownership of the packaged files. Try using the fakeroot environment by
    placing 'fakeroot' in the BUILDENV array in makepkg.conf.
==> Making package: deluge 1.1.3-1 i686 (Wed Mar 11 15:48:02 EDT 2009)
==> Checking Runtime Dependencies...
==> Missing Dependencies:
  -> boost>=1.37.0
  -> pyxdg
==> Checking Buildtime Dependencies...
==> ERROR: Could not resolve all dependencies.


I need pyxdg and a version of boost that's >=1.37.0 to do this.

1) Was I right to bang out (!) fakeroot in the /etc/makepkg.conf's BUILDENV= section or do I really need that package to continue properly?
2) Do I have any chance of making my own package without going into the official arch repos to get pyxdg and a newer boost? Both cesman and mihanson have advised against doing this.

Thank you for your advice.

Author:  cecil [ Sun Mar 15, 2009 4:37 pm ]
Post subject: 

I really don't want to include multiple packages that do the same thing in community. What is wrong w/ using Torrentflux as mihanson as documented it? Because you've contributed to the community...
Code:
pacman -Sy deluge
Give it time... Working on it.

Author:  graysky [ Sun Mar 15, 2009 5:57 pm ]
Post subject: 

Thanks cesman - I actually got my own package to work, but it did require me downloading two packages from the official arch repo [boost pyxdg]. I'll nuke mine, uninstall those two, and give your packages a shot. Just as an FYI, there is a small bug in 1.1.4 of deluge affecting the saving of the config file that has been addressed and will be fixed in 1.1.5.

EDIT: I see you're using 1.1.2, good job :)

To answer your question, I like deluge over torrentflux (at least the version of torrentflux I used a year or two ago) because for me the GUI is superior. It is much easier to control which files in a large torrent get prioritized/downloaded with deluge. Files are downloaded using 'full allocation' which avoids fragments. As well, one can prioritize chucks in deluge which can make xfers faster, etc.

I'm a big fan of vncserver (tightvnc server in R6) and deluge just fits that nitch for me :)

Now one only needs fakeroot from the official repo, then:

Code:
pkgname=deluge
pkgver=1.1.5
pkgrel=1.1
pkgdesc="A bittorrent client written with python and pygtk"
arch=('i686' 'x86_64')
url="http://deluge-torrent.org/"
license=('GPL3')
depends=('pygtk' 'boost>=1.37.0' 'pyxdg' 'dbus-python' 'librsvg' 'setuptools')
makedepends=('subversion' 'intltool')
options=('!emptydirs')
source=(http://download.deluge-torrent.org/source/${pkgname}-${pkgver}.tar.gz)
md5sums=('531a3d710335d713ea8a363d79afc2bf')

build() {

  cd ${srcdir}/${pkgname}-${pkgver}/
  python setup.py build
  python setup.py install --prefix=/usr --root=${pkgdir}

  install -D -m644 deluge/data/pixmaps/deluge.svg ${pkgdir}/usr/share/pixmaps/deluge.svg
}

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/