# SliTaz package receipt. PACKAGE="log4c" VERSION="1.2.4" CATEGORY="system-tools" SHORT_DESC="Logging for C Library." MAINTAINER="erjo@slitaz.org" LICENSE="LGPL2.1" WEB_SITE="https://log4c.sourceforge.io" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="" BUILD_DEPENDS="" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/log4c/files/log4c/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/log4c/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { ./configure \ --sysconfdir=/etc \ $CONFIGURE_ARGS && make -j 1 && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib $fs/etc cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/etc/log4crc.sample $fs/etc/log4crc }