2011-01-25 09:35:33 +08:00
|
|
|
pkgname=libtorrent-rasterbar
|
2016-03-31 20:10:18 +08:00
|
|
|
pkgver=1.0.9
|
|
|
|
pkgrel=1
|
2011-01-25 09:35:33 +08:00
|
|
|
pkgdesc="A C++ library that aims to be a good alternative to all the other bittorrent implementations around"
|
|
|
|
url="http://www.rasterbar.com/products/libtorrent/"
|
2013-01-20 01:06:26 +08:00
|
|
|
arch=('x86_64')
|
2014-04-13 21:57:42 +08:00
|
|
|
license=('BSD')
|
|
|
|
depends=('boost-libs' 'python2' 'geoip')
|
2015-08-11 05:18:04 +08:00
|
|
|
makedepends=('boost' 'cmake')
|
2014-04-13 21:57:42 +08:00
|
|
|
options=('!emptydirs')
|
2015-08-11 05:18:04 +08:00
|
|
|
source=(https://github.com/arvidn/libtorrent/releases/download/libtorrent-${pkgver//./_}/$pkgname-$pkgver.tar.gz)
|
2016-03-31 20:10:18 +08:00
|
|
|
sha256sums=('11a93125ed49f796fca83da925ab7dc29e91d88b915f078caaddaaf559d63db6')
|
2011-01-25 09:35:33 +08:00
|
|
|
|
|
|
|
build() {
|
2015-08-11 05:18:04 +08:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
PYTHON=/usr/bin/python2 \
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--enable-python-binding \
|
|
|
|
--with-libgeoip=system \
|
|
|
|
--with-libiconv
|
2011-01-25 09:35:33 +08:00
|
|
|
make
|
2011-08-05 00:07:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-08-11 05:18:04 +08:00
|
|
|
cd $pkgname-$pkgver
|
2011-01-25 09:35:33 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -D COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
|
2011-08-05 00:07:17 +08:00
|
|
|
}
|