milis/talimatname/genel/l/libtorrent-rasterbar/talimat

48 lines
1.3 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Bir C ++ bittorrent kitaplığı.
2016-06-02 02:54:02 +02:00
# URL: http://www.rasterbar.com/products/libtorrent/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: boost
2016-06-02 02:54:02 +02:00
name=libtorrent-rasterbar
2017-09-20 17:23:51 +02:00
version=1.1.4
_version=1_1_4
2016-06-02 02:54:02 +02:00
release=1
2017-09-20 17:23:51 +02:00
source=(https://github.com/arvidn/libtorrent/archive/libtorrent-$_version.tar.gz::$name-$version.tar.gz
libtorrent-boost-1.65.patch)
2016-06-02 02:54:02 +02:00
build() {
2017-09-20 17:23:51 +02:00
cd libtorrent-libtorrent-$_version
./autotool.sh
patch -p1 -i $SRC/libtorrent-boost-1.65.patch
2016-06-02 02:54:02 +02:00
2017-09-20 17:23:51 +02:00
#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}
2016-06-02 02:54:02 +02:00
}