# SliTaz package receipt. PACKAGE="xfsprogs" VERSION="5.6.0" CATEGORY="system-tools" SHORT_DESC="Utilities for making, mounting, and manipulating XFS file-systems." MAINTAINER="patel@math.uga.edu" LICENSE="GPL3" WEB_SITE="https://xfs.wiki.kernel.org/" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/$TARBALL" DEPENDS="e2fsprogs" BUILD_DEPENDS="e2fsprogs-dev gettext libdevmapper-dev libtool util-linux-blkid-dev util-linux-uuid-dev" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i 's/--best -c/-9 -c/' \ include/buildmacros sed -i -e 's/lt_shell_append=yes/lt_shell_append=no/' \ -e 's/DDEBUG/DNODEBUG/' \ configure ./configure \ $CONFIGURE_ARGS || return 1 sed -i 's/--best/-9/' doc/Makefile Makefile make && make DIST_ROOT=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/sbin $fs/usr cp -a $install/lib $fs cp -a $install/sbin $fs }