diff options
author | Xavier Devlamynck | 2015-06-10 20:42:00 +0200 |
---|---|---|
committer | Xavier Devlamynck | 2015-06-10 20:42:00 +0200 |
commit | df0deeab3133c87bc89041ec28a8f9a811f157ce (patch) | |
tree | d1ced1864f69841b8ac883528605266143b43f5b /PKGBUILD | |
download | aur-df0deeab3133c87bc89041ec28a8f9a811f157ce.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..29e591cbcd91 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Xavier Devlamynck <magicrhesus@ouranos.be> +# Contributor: Marti Raudsepp <marti@juffo.org> +#Contributor: Travis Hegner <travis.hegner@gmail.com> + +pkgname=pjproject +pkgver=2.4 +pkgrel=1 +pkgdesc="Open source SIP stack and media stack" +arch=('i686' 'x86_64') +url="http://www.pjsip.org/" +license=('GPL') +depends=('openssl' 'portaudio' 'speex' 'alsa-lib' 'libsamplerate' 'util-linux-ng' 'ffmpeg' 'libsrtp') +makedepends=('e2fsprogs' 'python') +install=pjproject.install +source=(http://www.pjsip.org/release/${pkgver}/pjproject-${pkgver}.tar.bz2 + ffmpeg.patch) +sha256sums=('108015aeda8dce20d182ec9b4fc277026d2b1796e82947da106eeb406eb02059' + '7393f742cccbbcf1ed9d04dbc0bcb506970dd6e1c410f881a169d98fc376e95d') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + export CXXFLAGS="${CXXFLAGS} -fPIC" + export CFLAGS="${CXXFLAGS}" + #patch -p1 < ${srcdir}/ffmpeg.patch + #./configure --prefix=/usr --with-external-speex --with-external-pa --disable-oss --enable-shared --disable-opencore-amr + ./configure --prefix=/usr --with-external-speex --with-external-srtp --with-external-pa --with-external-gsm --disable-oss --enable-shared --disable-opencore-amr --disable-v4l2 --disable-video --disable-sound + echo "#define PJ_HAS_IPV6 1" >> "${srcdir}/${pkgname}-${pkgver}/pjlib/include/pj/config_site.h" + make -j1 dep + make -j1 +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make -j1 DESTDIR=${pkgdir} install + install -D -m755 pjsip-apps/bin/pjsua-*gnu ${pkgdir}/usr/bin/pjsua +} |