Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: David Matson <gitcoder@outlook.com>
- pkgname=freeswitch
- pkgver=1.6.9
- pkgrel=1
- pkgdesc="A scalable, open source telephony platform"
- arch=('x86_64')
- url="https://freeswitch.org/"
- license=('MPL')
- makedepends=('libjpeg-turbo' 'speex' 'libsndfile')
- source=("https://files.freeswitch.org/releases/freeswitch/$pkgname-$pkgver.tar.xz"
- 'modules.conf'
- 'freeswitch.service')
- sha256sums=('aa5f191113be2bd44cb4f2108da3dcc37be3234c6b733896fbff97526ac66451'
- '0a7cc62e8d9d74e1cc489bd1c74948ea932e0bf5fdaf4f3a56c0784a1aadb5f8'
- '2467b0ef1d439f534b88ca72a74e7830ac67283073abd995e061f888bcd8942c')
- build() {
- cd "$pkgname-$pkgver"
- ./configure --without-python --without-erlang --enable-optimization \
- --disable-debug --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
- --libdir=/usr/lib/freeswitch --includedir=/usr/include/freeswitch \
- --with-modinstdir=/usr/lib/freeswitch/mod --with-rundir=/run \
- --with-logfiledir=/var/log/freeswitch --with-dbdir=/var/lib/freeswitch/db \
- --with-htdocsdir=/usr/share/freeswitch/htdocs \
- --with-fontsdir=/usr/share/freeswitch/fonts \
- --with-soundsdir=/usr/share/freeswitch/sounds \
- --with-grammardir=/usr/share/freeswitch/grammar \
- --with-certsdir=/etc/freeswitch/tls \
- --with-scriptdir=/usr/share/freeswitch/scripts \
- --with-recordingsdir=/var/lib/freeswitch/recordings \
- --with-imagesdir=/usr/share/freeswitch/images \
- --with-storagedir=/var/lib/freeswitch/storage \
- --with-cachedir=/var/cache/freeswitch \
- --with-pkgconfigdir=/usr/lib/pkgconfig
- cp "${srcdir}/modules.conf" .
- make
- }
- package() {
- cd "$pkgname-$pkgver"
- make DESTDIR="$pkgdir/" install
- rmdir "${pkgdir}/run"
- rm -r "${pkgdir}"/usr/share/freeswitch/htdocs/*
- rm -r "${pkgdir}"/etc/freeswitch/*
- rmdir "${pkgdir}/var/log/freeswitch/xml_cdr"
- rm -r "${pkgdir}/usr/lib/pkgconfig"
- # rm -r "${pkgdir}/usr/include"
- install -Dm644 "${srcdir}/freeswitch.service" "${pkgdir}/usr/lib/systemd/system/freeswitch.service"
- }
Add Comment
Please, Sign In to add comment