From 3e082b45d464f7454dc41a121d4ec32326014702 Mon Sep 17 00:00:00 2001 From: mario Date: Fri, 16 Dec 2011 23:44:04 -0200 Subject: network/asterisk: Updated for version 1.8.7.2 (+new maintainer) Signed-off-by: Niels Horn --- network/asterisk/asterisk.SlackBuild | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'network/asterisk/asterisk.SlackBuild') diff --git a/network/asterisk/asterisk.SlackBuild b/network/asterisk/asterisk.SlackBuild index 85ba95813f..0bc1f559f1 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 -- cgit v1.2.3