diff options
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/mediastreamer-git/PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pcr/mediastreamer-git/PKGBUILD b/pcr/mediastreamer-git/PKGBUILD new file mode 100644 index 000000000..969ce6701 --- /dev/null +++ b/pcr/mediastreamer-git/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: André Silva <emulatorman@parabola.nu> + +_pkgname=mediastreamer +pkgname="mediastreamer-git" +pkgver=r4843.030943d +pkgrel=1 +pkgdesc="A library written in C that allows you to create and run audio and video streams" +arch=('x86_64' 'i686') +url="http://www.linphone.org/" +url="https://github.com/BelledonneCommunications/mediastreamer2" +license=('GPL2') +depends=('ortp-git' 'ffmpeg' 'libxv' 'libupnp' 'bzrtp-git' 'glew' 'libsrtp' 'mbedtls' 'bcunit-git' 'bctoolbox-git') +# xxd from Vim is needed to build +makedepends=('intltool' 'vim' 'git') +conflicts=("${_pkgname}") +provides=("${_pkgname}") +source=("${_pkgname}-${pkgver}::git+https://github.com/BelledonneCommunications/mediastreamer2#branch=master") +sha256sums=('SKIP') + +pkgver() { + cd $_pkgname-$pkgver + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd $_pkgname-$pkgver + ./autogen.sh +} + +build() { + cd $_pkgname-$pkgver + ./configure --prefix=/usr \ + --enable-glx --enable-xv --enable-zrtp --enable-external-ortp \ + --disable-strict + make +} + +package() { + cd $_pkgname-$pkgver + make DESTDIR="${pkgdir}" install +} |