# SliTaz package receipt. PACKAGE="jpegoptim" VERSION="1.4.6" CATEGORY="utilities" SHORT_DESC="Utility to optimize/compress JPEG files." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://github.com/tjko/jpegoptim" WGET_URL="$WEB_SITE/archive/refs/tags/RELEASE.$VERSION.tar.gz" BUILD_DEPENDS="jpeg-dev" DEPENDS="jpeg-dev" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/[A-Z\.v]\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./configure --prefix=/usr --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr }