# SliTaz package receipt. PACKAGE="sctp-tools" VERSION="1.0.17" CATEGORY="network" SHORT_DESC="Stream Control Transmission Protocol tools." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2 LGPL2.1" WEB_SITE="https://lksctp.sourceforge.net/" SOURCE="lksctp-tools" TARBALL="$SOURCE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/lksctp/$SOURCE/$TARBALL" DEPENDS="libsctp" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/lksctp/files/lksctp-tools/ 2>/dev/null | \ sed '/scope="row/!d;s|.*/lksctp-tools-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { ln -s $src $PACKAGE-$VERSION cd $src ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make -j 1 && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/lksctp-tools cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/lksctp-tools/libwithsctp.so* \ $fs/usr/lib/lksctp-tools }