# SliTaz package receipt. PACKAGE="liblinebreak" VERSION="2.1" CATEGORY="development" SHORT_DESC="Line breaking library." MAINTAINER="devl547@gmail.com" LICENSE="zlib/libpng" WEB_SITE="https://vimgadgets.sourceforge.net/liblinebreak/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/project/vimgadgets/$PACKAGE/$VERSION/$TARBALL" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/vimgadgets/files/liblinebreak/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/liblinebreak/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR 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 }