# SliTaz package receipt. PACKAGE="asterisk-sound" VERSION="1.6.1" CATEGORY="misc" SHORT_DESC="Open Source PBX and telephony toolkit sound files (en)." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="CCPL" WEB_SITE="https://www.asterisk.org/" TARBALL="asterisk-core-sounds-en-gsm-$VERSION.tar.gz" WGET_URL="http://downloads.asterisk.org/pub/telephony/sounds/releases/$TARBALL" DEPENDS="asterisk" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed '/asterisk-core-sounds-en-gsm-/!d;/tar/!d;s|.*asterisk-core-sounds-en-gsm-\(.*\).tar.*".*|\1|' | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { [ ! -d $DESTDIR/var ] && mkdir -p $DESTDIR/var/lib/asterisk/sounds && mv * $DESTDIR/var/lib/asterisk/sounds } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs chown -R root:root $fs }