diff options
Diffstat (limited to 'community-staging/qbittorrent/PKGBUILD')
-rw-r--r-- | community-staging/qbittorrent/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community-staging/qbittorrent/PKGBUILD b/community-staging/qbittorrent/PKGBUILD new file mode 100644 index 000000000..ae549bae2 --- /dev/null +++ b/community-staging/qbittorrent/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Thomas Dziedzic < gostrc at gmail > +# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us> +# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr> + +pkgname=qbittorrent +pkgver=2.7.3 +pkgrel=2 +pkgdesc="A bittorrent client written in C++ / Qt4 using the good libtorrent library" +arch=('i686' 'x86_64') +url="http://www.qbittorrent.org/" +license=('GPL') +depends=('qt' 'libtorrent-rasterbar' 'xdg-utils') +makedepends=('boost' 'geoip') +optdepends=('python2: needed for search' + 'geoip: improves peer country resolution') +install='qbittorrent.install' +source=("http://downloads.sourceforge.net/sourceforge/qbittorrent/${pkgname}-${pkgver}.tar.gz" + 'python2.patch') +md5sums=('ff1b294133f8dadc781c8f0df50d248d' + 'db0d79fee8ce3470ad3741d36b02a94c') + +build() { + cd ${pkgname}-${pkgver} + + sed -i \ + -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + $(find ./ -name '*.py') + + patch -Np1 -i ${srcdir}/python2.patch + + ./configure \ + --prefix=/usr + + make +} + +package() { + cd ${pkgname}-${pkgver} + + make INSTALL_ROOT=${pkgdir} install +} |