diff --git a/common/shlibs b/common/shlibs index 6fd0f270016..0ca6cb09295 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1932,6 +1932,7 @@ libopenjpeg.so.5 libopenjpeg-1.5.2_1 liboping.so.0 liboping-1.8.0_1 libgksu2.so.0 libgksu-2.0.12_1 libloudmouth-1.so.0 loudmouth-1.4.3_1 +libtorrent-rasterbar.so.8 libtorrent-rasterbar-1.0-1.0.10_1 libtorrent-rasterbar.so.9 libtorrent-rasterbar-1.1.1_1 libcapstone.so.3 capstone-3.0_1 libhavege.so.1 libhaveged-1.9.1_1 diff --git a/srcpkgs/libtorrent-rasterbar-1.0-devel b/srcpkgs/libtorrent-rasterbar-1.0-devel new file mode 120000 index 00000000000..99d3ce28686 --- /dev/null +++ b/srcpkgs/libtorrent-rasterbar-1.0-devel @@ -0,0 +1 @@ +libtorrent-rasterbar-1.0 \ No newline at end of file diff --git a/srcpkgs/libtorrent-rasterbar-1.0/patches/libressl.patch b/srcpkgs/libtorrent-rasterbar-1.0/patches/libressl.patch new file mode 100644 index 00000000000..4626d33be2b --- /dev/null +++ b/srcpkgs/libtorrent-rasterbar-1.0/patches/libressl.patch @@ -0,0 +1,10 @@ +--- include/libtorrent/config.hpp.orig 2014-08-15 08:51:56.000000000 +0200 ++++ include/libtorrent/config.hpp 2015-01-03 18:34:41.639761027 +0100 +@@ -33,6 +33,7 @@ POSSIBILITY OF SUCH DAMAGE. + #ifndef TORRENT_CONFIG_HPP_INCLUDED + #define TORRENT_CONFIG_HPP_INCLUDED + ++#include + #include + #include + #include // for snprintf diff --git a/srcpkgs/libtorrent-rasterbar-1.0/template b/srcpkgs/libtorrent-rasterbar-1.0/template new file mode 100644 index 00000000000..f7fc03dfa7c --- /dev/null +++ b/srcpkgs/libtorrent-rasterbar-1.0/template @@ -0,0 +1,32 @@ +# Template file for 'libtorrent-rasterbar-1.0' +pkgname=libtorrent-rasterbar-1.0 +version=1.0.10 +revision=1 +wrksrc="${pkgname%-1.0}-${version}" +build_style=gnu-configure +configure_args="--with-libgeoip --with-boost-libdir=${XBPS_CROSS_BASE}/usr/lib" +hostmakedepends="pkg-config intltool" +makedepends="libressl-devel boost-devel geoip-devel" +short_desc="C++ bittorrent library by Rasterbar Software" +maintainer="Jürgen Buchmüller " +homepage="http://www.rasterbar.com/products/libtorrent/" +license="BSD" +distfiles="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${version//./_}/libtorrent-rasterbar-${version}.tar.gz" +checksum=a865ceaca8b14acdd7be56d361ce4e64361299647e157ef7b3ac7e2812ca4c3e + +CXXFLAGS="-std=c++11 -Wno-deprecated-declarations" + +post_install() { + vlicense LICENSE +} + +libtorrent-rasterbar-1.0-devel_package() { + depends="${sourcepkg}>=${version}_${revision} libressl-devel>=2.1.4 boost-devel geoip-devel" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + vmove "usr/lib/*.a" + } +} diff --git a/srcpkgs/libtorrent-rasterbar-1.0/update b/srcpkgs/libtorrent-rasterbar-1.0/update new file mode 100644 index 00000000000..2f098c594ea --- /dev/null +++ b/srcpkgs/libtorrent-rasterbar-1.0/update @@ -0,0 +1 @@ +pattern='libtorrent-\K[\d]+_[\d]+_[\d]+'