wok-next diff libtorrent/receipt @ rev 20474
Tiny edits... (again)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Mar 10 17:39:42 2018 +0200 (2018-03-10) |
parents | c4e53a39395a |
children | 5841522533ec |
line diff
1.1 --- a/libtorrent/receipt Fri Mar 02 12:12:14 2018 +0200 1.2 +++ b/libtorrent/receipt Sat Mar 10 17:39:42 2018 +0200 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="libtorrent" 1.8 VERSION="0.13.3" 1.9 @@ -6,26 +6,34 @@ 1.10 SHORT_DESC="Torrent library for rtorrent" 1.11 MAINTAINER="mimas@slitaz.org" 1.12 LICENSE="GPL2" 1.13 +WEB_SITE="http://libtorrent.rakshasa.no/" 1.14 + 1.15 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.16 -WEB_SITE="http://libtorrent.rakshasa.no/" 1.17 WGET_URL="http://libtorrent.rakshasa.no/downloads/$TARBALL" 1.18 1.19 CROSS_BUGS="bug: can not run test program" 1.20 1.21 -DEPENDS="curl libsigc++ openssl" 1.22 BUILD_DEPENDS="curl-dev libsigc++-dev openssl-dev" 1.23 +SPLIT="libtorrent-dev" 1.24 1.25 -# Rules to configure and make the package. 1.26 -compile_rules() 1.27 -{ 1.28 +compile_rules() { 1.29 ./configure \ 1.30 $CONFIGURE_ARGS && 1.31 make && make install 1.32 } 1.33 1.34 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.35 -genpkg_rules() 1.36 -{ 1.37 - mkdir -p $fs/usr/lib 1.38 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.39 +genpkg_rules() { 1.40 + case $PACKAGE in 1.41 + libtorrent) 1.42 + mkdir -p $fs/usr/lib 1.43 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.44 + DEPENDS="curl libsigc++ openssl" 1.45 + ;; 1.46 + *-dev) 1.47 + mkdir -p $fs/usr/lib/pkgconfig 1.48 + cp -a $install/usr/include $fs/usr 1.49 + cp -a $install/usr/lib/*.*a $fs/usr/lib 1.50 + cp -a $install/usr/lib/pkgconfig/*.pc $fs/usr/lib/pkgconfig 1.51 + ;; 1.52 + esac 1.53 }