desktop/libtorrent-rasterbar/PKGBUILD
2016-03-31 13:10:18 +01:00

30 lines
859 B
Bash

pkgname=libtorrent-rasterbar
pkgver=1.0.9
pkgrel=1
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/"
arch=('x86_64')
license=('BSD')
depends=('boost-libs' 'python2' 'geoip')
makedepends=('boost' 'cmake')
options=('!emptydirs')
source=(https://github.com/arvidn/libtorrent/releases/download/libtorrent-${pkgver//./_}/$pkgname-$pkgver.tar.gz)
sha256sums=('11a93125ed49f796fca83da925ab7dc29e91d88b915f078caaddaaf559d63db6')
build() {
cd $pkgname-$pkgver
PYTHON=/usr/bin/python2 \
./configure \
--prefix=/usr \
--enable-python-binding \
--with-libgeoip=system \
--with-libiconv
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="${pkgdir}" install
install -D COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}