desktop/libtorrent-rasterbar/PKGBUILD
2016-10-21 02:37:57 +01:00

30 lines
871 B
Bash

pkgname=libtorrent-rasterbar
pkgver=1.1.1
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' 'websocketpp')
makedepends=('boost' 'cmake')
options=('!emptydirs')
source=(https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_1_1/$pkgname-$pkgver.tar.gz)
sha256sums=('f70c82367b0980460ef95aff3e117fd4a174477892d529beec434f74d615b31f')
build() {
cd $pkgname-$pkgver
CXXFLAGS="${CXXFLAGS} -std=c++11"
PYTHON=/usr/bin/python2 \
./configure \
--prefix=/usr \
--enable-python-binding \
--with-libiconv
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="${pkgdir}" install
install -D COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}