Guest User

Untitled

a guest
Jun 20th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.04 KB | None | 0 0
  1. # Maintainer: David Matson <gitcoder@outlook.com>
  2. pkgname=freeswitch
  3. pkgver=1.6.9
  4. pkgrel=1
  5. pkgdesc="A scalable, open source telephony platform"
  6. arch=('x86_64')
  7. url="https://freeswitch.org/"
  8. license=('MPL')
  9. makedepends=('libjpeg-turbo' 'speex' 'libsndfile')
  10. source=("https://files.freeswitch.org/releases/freeswitch/$pkgname-$pkgver.tar.xz"
  11.         'modules.conf'
  12.         'freeswitch.service')
  13. sha256sums=('aa5f191113be2bd44cb4f2108da3dcc37be3234c6b733896fbff97526ac66451'
  14.             '0a7cc62e8d9d74e1cc489bd1c74948ea932e0bf5fdaf4f3a56c0784a1aadb5f8'
  15.             '2467b0ef1d439f534b88ca72a74e7830ac67283073abd995e061f888bcd8942c')
  16.  
  17. build() {
  18.   cd "$pkgname-$pkgver"
  19.  
  20.   ./configure --without-python --without-erlang --enable-optimization \
  21.     --disable-debug --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
  22.     --libdir=/usr/lib/freeswitch --includedir=/usr/include/freeswitch \
  23.     --with-modinstdir=/usr/lib/freeswitch/mod --with-rundir=/run \
  24.     --with-logfiledir=/var/log/freeswitch --with-dbdir=/var/lib/freeswitch/db \
  25.     --with-htdocsdir=/usr/share/freeswitch/htdocs \
  26.     --with-fontsdir=/usr/share/freeswitch/fonts \
  27.     --with-soundsdir=/usr/share/freeswitch/sounds \
  28.     --with-grammardir=/usr/share/freeswitch/grammar \
  29.     --with-certsdir=/etc/freeswitch/tls \
  30.     --with-scriptdir=/usr/share/freeswitch/scripts \
  31.     --with-recordingsdir=/var/lib/freeswitch/recordings \
  32.     --with-imagesdir=/usr/share/freeswitch/images \
  33.     --with-storagedir=/var/lib/freeswitch/storage \
  34.     --with-cachedir=/var/cache/freeswitch \
  35.     --with-pkgconfigdir=/usr/lib/pkgconfig
  36.   cp "${srcdir}/modules.conf" .
  37.   make
  38. }
  39.  
  40. package() {
  41.   cd "$pkgname-$pkgver"
  42.  
  43.   make DESTDIR="$pkgdir/" install
  44.  
  45.   rmdir "${pkgdir}/run"
  46.   rm -r "${pkgdir}"/usr/share/freeswitch/htdocs/*
  47.   rm -r "${pkgdir}"/etc/freeswitch/*
  48.   rmdir "${pkgdir}/var/log/freeswitch/xml_cdr"
  49.   rm -r "${pkgdir}/usr/lib/pkgconfig"
  50.  
  51. # rm -r "${pkgdir}/usr/include"
  52.  
  53.   install -Dm644 "${srcdir}/freeswitch.service" "${pkgdir}/usr/lib/systemd/system/freeswitch.service"
  54. }
Add Comment
Please, Sign In to add comment