summaryrefslogtreecommitdiff
path: root/pcr/mediastreamer-git/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-08-09 19:42:06 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-08-09 19:42:06 -0300
commit4925b5ebba15d64e582f064ef7ee327d38b4f88b (patch)
tree6832d65b2c8d85393edfa5cb2741401fa4aa5e97 /pcr/mediastreamer-git/PKGBUILD
parent1b0e7c294f04400fb6ccb8ffc05b8a915d97b28f (diff)
downloadabslibre-4925b5ebba15d64e582f064ef7ee327d38b4f88b.tar.gz
abslibre-4925b5ebba15d64e582f064ef7ee327d38b4f88b.tar.bz2
abslibre-4925b5ebba15d64e582f064ef7ee327d38b4f88b.zip
mediastreamer-git: add new package to [pcr]
Diffstat (limited to 'pcr/mediastreamer-git/PKGBUILD')
-rw-r--r--pcr/mediastreamer-git/PKGBUILD41
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
+}