Created
July 8, 2017 19:26
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id$ | |
# Maintainer: | |
# Contributor: Andrea Scarpino <andrea@archlinux.org> | |
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> | |
# Contributor: Adrià Arrufat <swiftscythe@gmail.com> | |
# Contributor: Mark Lee <mark@markelee.com> | |
pkgname=mediastreamer-git | |
_pkgname=mediastreamer2 | |
pkgver=2.15.1.r144.g8df4c333 | |
pkgrel=1 | |
pkgdesc="A library written in C that allows you to create and run audio and video streams" | |
arch=('i686' 'x86_64') | |
url="https://github.com/BelledonneCommunications/mediastreamer2" | |
license=('GPL') | |
conflicts=('mediastreamer') | |
provides=('mediastreamer') | |
depends=('ortp-git' 'ffmpeg' 'libxv' 'libupnp' 'bzrtp-git' 'glew' 'libsrtp' 'mbedtls' 'bctoolbox-git') | |
# xxd from Vim is needed to build | |
makedepends=('cmake' 'intltool' 'vim') | |
source=("git+https://github.com/BelledonneCommunications/mediastreamer2.git") | |
sha256sums=('SKIP') | |
pkgver() { | |
cd "${srcdir}/${_pkgname}" | |
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/; s/-/./g' | |
} | |
build() { | |
cd ${_pkgname} | |
cmake -DCMAKE_INSTALL_PREFIX=/usr \ | |
-DCMAKE_INSTALL_LIBDIR="/usr/lib" \ | |
-DENABLE_STATIC="NO" . | |
make | |
} | |
package() { | |
cd ${_pkgname} | |
make DESTDIR="${pkgdir}" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment