wok-6.x annotate asterisk-sound-fr/receipt @ rev 19512
busybox: add hd (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 22 15:47:28 2016 +0100 (2016-11-22) |
parents | a7b54d88ae54 |
children | 1ff9ee98b416 |
rev | line source |
---|---|
pascal@1187 | 1 # SliTaz package receipt. |
pascal@1187 | 2 |
pascal@1187 | 3 PACKAGE="asterisk-sound-fr" |
pascal@4117 | 4 VERSION="1.4.16" |
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/" |
pascal@4117 | 10 TARBALL="asterisk-core-sounds-fr-gsm-$VERSION.tar.gz" |
pascal@4117 | 11 WGET_URL="http://downloads.asterisk.org/pub/telephony/sounds/releases/$TARBALL" |
pascal@15201 | 12 |
pascal@4117 | 13 DEPENDS="asterisk" |
pascal@1187 | 14 |
pascal@4117 | 15 # Rules to configure and make the package. |
pascal@4117 | 16 compile_rules() |
pascal@1187 | 17 { |
pascal@9042 | 18 if [ ! -d $DESTDIR/var ]; then |
pascal@10764 | 19 cd $src || return 1 |
pascal@4117 | 20 lang=${PACKAGE#asterisk-sound-} |
pascal@9042 | 21 mkdir -p $DESTDIR/var/lib/asterisk/sounds/$lang |
pascal@9042 | 22 mv * $DESTDIR/var/lib/asterisk/sounds/$lang |
pascal@9045 | 23 cd $DESTDIR/var/lib/asterisk/sounds/$lang |
pascal@4117 | 24 for i in */ ; do |
pascal@4117 | 25 mkdir ../$i |
pascal@9045 | 26 ln -s ../$lang/$i ../$i$lang |
pascal@4117 | 27 done |
pascal@4117 | 28 fi |
pascal@1187 | 29 } |
pascal@1187 | 30 |
pascal@1187 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1187 | 32 genpkg_rules() |
pascal@1187 | 33 { |
al@14789 | 34 cp -a $install/* $fs |
al@14789 | 35 chown -R root:root $fs |
pascal@1187 | 36 } |