#!/bin/bash #DEP:svn #DEP:lua_dev #DEP:lua NAME=asterisk_testsuite BRANCH=1.4 CWD=`pwd` PKGTMP=/tmp/asterisk-testsuite-package TMP=$CWD mkdir -p $TMP &>/dev/null cd $TMP #downloading the sorce svn co http://svn.asterisk.org/svn/testsuite/asterisk/trunk testsuite || exit 1 VER=`svnversion testsuite` || exit 1 export MAKEFLAGS=-j1 #patch the testsuite patch -F3 -p0 < testsuite-nosourcecheck.patch || exit 1 mkdir -p $PKGTMP/usr/ || exit 1 #make install Asttest, which is part of Asterisk testsuite MAKEOPTS="" cd testsuite/asttest make pkgconfigdir=/usr/lib/pkgconfig install_prefix=$PKGTMP DESTDIR=$PKGTMP INSTALL_ROOT=$PKGTMP install_root=$PKGTMP $MAKE_OPTS install || exit 1 cd ../../ #cleanup .svn for n in `find . -type d | grep ".svn"` ; do rm -rf $n ; done || exit 1 #copy testsuite cp -r testsuite $PKGTMP/usr/asterisk_testsuite | exit 1 syn3_strip $PKGTMP || exit 1 cd "$PKGTMP" || exit 1 makepkg -l n -c n $CWD/$NAME.pkg > /dev/null && echo $VER > $CWD/$NAME.version && arch > $CWD/$NAME.arch