# SliTaz package receipt. PACKAGE="libraryopt" VERSION="1.0.1" CATEGORY="development" SHORT_DESC="Rebuilds shared libraries to contain only the object files needed of executables" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://libraryopt.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="python binutils" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/libraryopt/files/libraryopt/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/libraryopt-||;s|.tar.*||;q' } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin $install/usr cp -a $src/src/lib* $fs/usr/bin cp -a $src/doc $install/usr }