diff options
author | mario <mario@slackverse.org> | 2011-12-16 23:44:04 -0200 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-12-16 23:44:04 -0200 |
commit | 3e082b45d464f7454dc41a121d4ec32326014702 (patch) | |
tree | 0f2da6987754863852aaad3eff7b4e3216e9ceb8 /network/asterisk/asterisk.SlackBuild | |
parent | d38f04b6902609269ea3bc9b8e94119e51b89748 (diff) |
network/asterisk: Updated for version 1.8.7.2 (+new maintainer)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'network/asterisk/asterisk.SlackBuild')
-rw-r--r-- | network/asterisk/asterisk.SlackBuild | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/network/asterisk/asterisk.SlackBuild b/network/asterisk/asterisk.SlackBuild index 85ba95813fa7f..0bc1f559f19e8 100644 --- a/network/asterisk/asterisk.SlackBuild +++ b/network/asterisk/asterisk.SlackBuild @@ -1,6 +1,7 @@ #!/bin/bash # Copyright 2006, Alan Hicks, Lizella, GA +# Updated by mario@slackverse.org, 2010-2011 # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -21,23 +22,23 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM="asterisk" -VERSION="1.6.1.6" +VERSION=${VERSION:-1.8.7.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: +ADDONS=${ADDONS:-yes} + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi CWD=$(pwd) TMP=${TMP:-/tmp/SBo} -PKG="$TMP/pkg-$PRGNAM" +PKG="$TMP/package-$PRGNAM" OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then @@ -75,6 +76,15 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make +make installdirs DESTDIR=$PKG + +if [ "$ADDONS" = "yes" ]; then + # Select some addons (the list is actualy inverted, and deselected addons are shown here) + sed -i -e 's/^MENUSELECT_ADDONS=.*$/MENUSELECT_ADDONS=app_saycountpl chan_mobile format_mp3/' \ + menuselect.makeopts + make addons DESTDIR=$PKG +fi + make samples DESTDIR=$PKG make install DESTDIR=$PKG |