# SliTaz package receipt. PACKAGE="sox" VERSION="14.4.2" CATEGORY="multimedia" SHORT_DESC="Swiss Army knife of sound processing programs." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL LGPL" WEB_SITE="https://sourceforge.net/projects/sox/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="alsa-lib ffmpeg lame libao libgomp libid3tag libltdl libmad \ libmagic libpng libsamplerate libsndfile libvorbis" BUILD_DEPENDS="alsa-lib-dev ffmpeg-dev lame-dev libao-dev libid3tag-dev \ libmad-dev libmagic-dev libogg-dev libpng-dev libsamplerate-dev \ libsndfile-dev libvorbis-dev" HOST_ARCH="i486 arm" # Handle SliTaz arch case "$SLITAZ_ARCH" in i?86) DEPENDS="$DEPENDS flac" esac # Handle cross compilation case "$ARCH" in i?86) BUILD_DEPENDS="$BUILD_DEPENDS flac-dev" esac # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/sox/files/sox/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/sox/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { ./configure \ --with-distro="SliTaz" \ $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/sox cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/lib/pkgconfig $fs/usr/lib }