2018-08-08 14:18:27 +02:00
|
|
|
|
# Tanım: Bir C++ bittorrent kitaplığı.
|
2018-06-09 00:06:58 +02:00
|
|
|
|
# URL: http://www.rasterbar.com/products/libtorrent/
|
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: boost
|
2018-08-08 14:18:27 +02:00
|
|
|
|
# Grup: kütüphane
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
isim=libtorrent-rasterbar
|
|
|
|
|
surum=1.1.4
|
|
|
|
|
_surum=1_1_4
|
|
|
|
|
devir=1
|
2018-08-08 14:18:27 +02:00
|
|
|
|
kaynak=(https://github.com/arvidn/libtorrent/archive/libtorrent-$_surum.tar.gz::$isim-$surum.tar.gz
|
2018-06-09 00:06:58 +02:00
|
|
|
|
libtorrent-boost-1.65.patch)
|
|
|
|
|
|
|
|
|
|
derle() {
|
2018-08-08 14:18:27 +02:00
|
|
|
|
cd libtorrent-libtorrent-$_surum
|
2018-06-09 00:06:58 +02:00
|
|
|
|
./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
|
2018-08-08 14:18:27 +02:00
|
|
|
|
make
|
|
|
|
|
# python2 bağlamaları oluştur (python3 bağlamaları 'make' sırasında oluşturulur)
|
2018-06-09 00:06:58 +02:00
|
|
|
|
python2 setup.py build
|
|
|
|
|
make DESTDIR=$PKG install
|
2018-08-08 14:18:27 +02:00
|
|
|
|
python2 setup.py install --root="$PKG" --optimize=1
|
|
|
|
|
# lisans
|
|
|
|
|
install -D -m644 COPYING "${PKG}/usr/share/licenses/${isim}/LICENSE"
|
|
|
|
|
# çoğu örnek ikili dosyaları kaldır
|
2018-06-09 00:06:58 +02:00
|
|
|
|
rm "$PKG"/usr/bin/{*_test,*_tester,simple_client,stats_counters}
|
|
|
|
|
|
|
|
|
|
}
|