mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
update freeswitch-git to pacman 4.1
This commit is contained in:
parent
2159b85fc9
commit
42fac5b522
1 changed files with 12 additions and 25 deletions
|
@ -68,8 +68,14 @@ _disabled_modules=(say/mod_say_ru
|
|||
# #
|
||||
|
||||
pkgname=freeswitch-git
|
||||
pkgver=20120424
|
||||
pkgrel=2
|
||||
_gitname="freeswitch"
|
||||
pkgver=1.5.0.186.g9650476
|
||||
pkgver(){
|
||||
cd "$srcdir/$_gitname"
|
||||
git describe | sed 's/-/./g;s/^v//'
|
||||
}
|
||||
epoch=1
|
||||
pkgrel=1
|
||||
pkgdesc="Open Source soft switch (telephony engine) built from a specific, stable git commit tag"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://freeswitch.org"
|
||||
|
@ -81,11 +87,9 @@ optdepends=('unixodbc: for odbc support in the core'
|
|||
provides=('freeswitch')
|
||||
conflicts=('freeswitch')
|
||||
install=freeswitch.install
|
||||
source=('freeswitch.conf.d' 'freeswitch.rc.conf' 'README.freeswitch' 'run.freeswitch' 'run_log.freeswitch' 'conf_log.freeswitch')
|
||||
source=('freeswitch.conf.d' 'freeswitch.rc.conf' 'README.freeswitch' 'run.freeswitch' 'run_log.freeswitch' 'conf_log.freeswitch' "$_gitname::git://git.freeswitch.org/freeswitch.git" )
|
||||
changelog='ChangeLog'
|
||||
|
||||
_gitroot="git://git.freeswitch.org/freeswitch.git"
|
||||
_gitname="freeswitch"
|
||||
|
||||
enable_module() {
|
||||
_fs_mod=$1
|
||||
|
@ -98,24 +102,7 @@ disable_module() {
|
|||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir"
|
||||
msg "Connecting to GIT server...."
|
||||
|
||||
if [ -d $_gitname ] ; then
|
||||
cd $_gitname
|
||||
git pull origin master
|
||||
msg "The local files are updated."
|
||||
else
|
||||
git clone --depth 1 $_gitroot
|
||||
msg "FreeSWITCH repository cloned"
|
||||
fi
|
||||
|
||||
msg "GIT checkout done or server timeout"
|
||||
msg "Starting make..."
|
||||
|
||||
rm -rf "$srcdir/$_gitname-build"
|
||||
cp -a "$srcdir/$_gitname/" "$srcdir/${_gitname}-build"
|
||||
cd "$srcdir/$_gitname-build"
|
||||
cd "$srcdir/$_gitname"
|
||||
|
||||
# BUILD BEGINS
|
||||
msg "Bootstrapping..."
|
||||
|
@ -176,7 +163,7 @@ disable_mod_xml() {
|
|||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_gitname-build"
|
||||
cd "$srcdir/$_gitname"
|
||||
make DESTDIR="$pkgdir/" install
|
||||
make DESTDIR="$pkgdir/" ${_sounds}moh-install
|
||||
make DESTDIR="$pkgdir/" ${_sounds}sounds-install
|
||||
|
@ -226,4 +213,4 @@ md5sums=('f674b302edeb1895bbefcaf7bb8510ca'
|
|||
'bfa0c6c70c8173bc78fd228bd42a98ef'
|
||||
'4126dcbe4e1e4f689230a0fe40edcb68'
|
||||
'e9f0bdde366bca6fd29a9202818f3591'
|
||||
'e6411d793501c29ec4afd6d54018de1b')
|
||||
'e6411d793501c29ec4afd6d54018de1b' 'SKIP')
|
||||
|
|
Loading…
Reference in a new issue