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

46 lines
1.3 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Bir C++ bittorrent kitaplığı.
# URL: http://www.rasterbar.com/products/libtorrent/
# Paketçi: milisarge
# Gerekler: boost
# Grup: kütüphane
isim=libtorrent-rasterbar
surum=1.1.4
_surum=1_1_4
devir=1
kaynak=(https://github.com/arvidn/libtorrent/archive/libtorrent-$_surum.tar.gz::$isim-$surum.tar.gz
libtorrent-boost-1.65.patch)
derle() {
cd libtorrent-libtorrent-$_surum
./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
# python2 bağlamaları oluştur (python3 bağlamaları 'make' sırasında oluşturulur)
python2 setup.py build
make DESTDIR=$PKG install
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
rm "$PKG"/usr/bin/{*_test,*_tester,simple_client,stats_counters}
}