# SliTaz package receipt. PACKAGE="libofx" VERSION="0.9.8" CATEGORY="misc" SHORT_DESC="OFX parser library" MAINTAINER="remyhr@free.fr" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://libofx.sourceforge.net/" WGET_URL="https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE/$VERSION/$TARBALL" DEPENDS="opensp" BUILD_DEPENDS="opensp-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/libofx/files/libofx/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/libofx/||;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/bin $fs/usr/include /usr/lib cp -a $install/usr/bin $fs/usr cp -a $install/usr/include $fs/usr cp -a $install/usr/lib $fs/usr }