# SliTaz package receipt. PACKAGE="libtorrent" VERSION="0.13.8" CATEGORY="network" SHORT_DESC="Torrent library for rtorrent." MAINTAINER="mimas@slitaz.org" LICENSE="GPL2" WEB_SITE="https://rakshasa.github.io/rtorrent/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/rakshasa/$PACKAGE/archive/v$VERSION.tar.gz" DEPENDS="curl gcc83-lib-base libsigc++ openssl" BUILD_DEPENDS="automake curl-dev gcc83 libsigc++-dev libtool openssl-dev" CROSS_BUGS="bug: can not run test program" #HOST_ARCH="i486 arm" current_version() { wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./autogen.sh && ./configure \ CC=gcc-83 \ CXX=g++-83 \ CFLAGS="-march=i686 -Os -pipe -fomit-frame-pointer" \ CXXFLAGS="-march=i686 -Os -pipe -fomit-frame-pointer" \ $CONFIGURE_ARGS && make -j 1 && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib }