Skip to content

Instantly share code, notes, and snippets.

@thrasibule
Created July 8, 2017 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thrasibule/d4f8bb3777bf3d3fed54b270944fbb89 to your computer and use it in GitHub Desktop.
Save thrasibule/d4f8bb3777bf3d3fed54b270944fbb89 to your computer and use it in GitHub Desktop.
# $Id$
# Contributor: Guillaume Horel <guillaume.horel@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
# Contributor: William Rea <sillywilly@gmail.com>
pkgname=ortp-git
_pkgname=ortp
pkgver=1.0.1.r48.gb9e17f8
pkgrel=1
pkgdesc="A Real-time Transport Protocol (RTP) library"
arch=('i686' 'x86_64')
url="https://github.com/BelledonneCommunications/ortp"
license=('GPL3')
conflicts=('ortp')
provides=('ortp')
depends=('bctoolbox-git')
makedepends=('cmake')
source=("git+https://github.com/BelledonneCommunications/ortp.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