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