# SliTaz package receipt. PACKAGE="libsamplerate" VERSION="0.2.2" CATEGORY="multimedia" SHORT_DESC="Sample Rate Converter for audio." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" WEB_SITE="http://www.mega-nerd.com/SRC/" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="https://github.com/libsndfile/libsamplerate/releases/download/$VERSION/$TARBALL" DEPENDS="" HOST_ARCH="i486 arm" # What is the latest version available today? current_version() { wget -O - http://www.mega-nerd.com/SRC/download.html 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() { ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make -j 1 && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib }