# SliTaz package receipt. PACKAGE="lz4" VERSION="1.9.4" CATEGORY="base-system" SHORT_DESC="High speed lossless compressor." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" WEB_SITE="https://github.com/lz4/lz4" TARBALL="$PACKAGE-r$VERSION.tar.gz" WGET_URL="https://github.com/lz4/lz4/archive/v$VERSION.tar.gz" TAGS="compression" BUILD_DEPENDS="wget" current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { find -type f | xargs sed -i 's|usr/local|usr|' make LDFLAGS="$LDFLAGS -lrt" && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr $install/usr/share cp -a $install/usr/bin $fs/usr cp -a $src/doc $install/usr/share cp $src/README* $src/NEWS $src/LICENSE $install/usr/share/doc }