48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
# Tanım: Bir C ++ bittorrent kitaplığı.
|
||
# URL: http://www.rasterbar.com/products/libtorrent/
|
||
# Paketçi: milisarge
|
||
# Gerekler: boost
|
||
|
||
name=libtorrent-rasterbar
|
||
version=1.1.4
|
||
_version=1_1_4
|
||
release=1
|
||
source=(https://github.com/arvidn/libtorrent/archive/libtorrent-$_version.tar.gz::$name-$version.tar.gz
|
||
libtorrent-boost-1.65.patch)
|
||
|
||
derle() {
|
||
cd libtorrent-libtorrent-$_version
|
||
./autotool.sh
|
||
patch -p1 -i $SRC/libtorrent-boost-1.65.patch
|
||
|
||
#CONFIG_SHELL=/bin/bash \
|
||
./configure \
|
||
--prefix=/usr \
|
||
--enable-shared=yes \
|
||
--enable-static=no \
|
||
--enable-fast-install=yes \
|
||
--enable-largefile \
|
||
--enable-logging \
|
||
--disable-debug \
|
||
--enable-dht \
|
||
--enable-encryption \
|
||
--enable-deprecated-functions \
|
||
--enable-examples \
|
||
--disable-tests \
|
||
--enable-python-binding \
|
||
--with-libiconv
|
||
make
|
||
|
||
# build python2 bindings (python3 bindings are built during 'make')
|
||
python2 setup.py build
|
||
make DESTDIR=$PKG install
|
||
python2 setup.py install --root="$PKG" --optimize=1
|
||
|
||
# license
|
||
install -D -m644 COPYING "${PKG}/usr/share/licenses/${name}/LICENSE"
|
||
|
||
# remove most example binaries
|
||
rm "$PKG"/usr/bin/{*_test,*_tester,simple_client,stats_counters}
|
||
|
||
}
|