wok view asterisk-sound-fr/receipt @ rev 25500

new default version for java8-jre
author Hans-G?nter Theisgen
date Fri Dec 30 10:14:12 2022 +0100 (22 months ago)
parents 9af0e03b8ad0
children bff339676249
line source
1 # SliTaz package receipt.
3 PACKAGE="asterisk-sound-fr"
4 VERSION="1.6.1"
5 CATEGORY="misc"
6 SHORT_DESC="Open Source PBX and telephony toolkit sound files (fr)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="CCPL"
9 WEB_SITE="https://www.asterisk.org/"
11 TARBALL="asterisk-core-sounds-fr-gsm-$VERSION.tar.gz"
12 WGET_URL="http://downloads.asterisk.org/pub/telephony/sounds/releases/$TARBALL"
14 DEPENDS="asterisk"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed '/asterisk-core-sounds-fr-gsm-/!d;/tar/!d;s|.*asterisk-core-sounds-fr-gsm-\(.*\).tar.*".*|\1|' | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 if [ ! -d $DESTDIR/var ]; then
27 cd $src || return 1
28 lang=${PACKAGE#asterisk-sound-}
29 mkdir -p $DESTDIR/var/lib/asterisk/sounds/$lang
30 mv * $DESTDIR/var/lib/asterisk/sounds/$lang
31 cd $DESTDIR/var/lib/asterisk/sounds/$lang
32 for i in */
33 do
34 mkdir ../$i
35 ln -s ../$lang/$i ../$i$lang
36 done
37 fi
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $install/* $fs
44 chown -R root:root $fs
45 }