# $Id: PKGBUILD 205552 2014-02-06 23:19:34Z eric $ # Maintainer: # Contributor: Sergej Pupykin # Contributor: Yejun Yang # Contributor: Michal Krenek pkgname=libsrtp pkgver=15.1c9bd90 pkgrel=3 pkgdesc="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)" url="http://srtp.sourceforge.net/srtp.html" arch=('i686' 'x86_64') license=('BSD') depends=('glibc') makedepends=('git') source=("git://git.linphone.org/srtp.git#commit=1c9bd90" 7713d5706524f9f1ee94fd6b55125357e63656d5.patch) md5sums=('SKIP' '33b3ba860560a4d9dee244caf73eceef') pkgver() { cd srtp echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) } prepare() { cd srtp patch -p1 -i ../7713d5706524f9f1ee94fd6b55125357e63656d5.patch } build() { cd srtp autoconf ./configure --prefix=/usr make } package() { cd srtp make DESTDIR="${pkgdir}" install install -Dm0644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE }