summaryrefslogtreecommitdiff
path: root/extra/libsrtp
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libsrtp')
-rw-r--r--extra/libsrtp/PKGBUILD32
1 files changed, 22 insertions, 10 deletions
diff --git a/extra/libsrtp/PKGBUILD b/extra/libsrtp/PKGBUILD
index 1013f6bc8..c6d6294f8 100644
--- a/extra/libsrtp/PKGBUILD
+++ b/extra/libsrtp/PKGBUILD
@@ -1,30 +1,42 @@
-# $Id: PKGBUILD 159152 2012-05-16 20:08:38Z andrea $
+# $Id: PKGBUILD 188535 2013-06-15 10:01:17Z andrea $
# Maintainer:
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Yejun Yang <yejunx AT gmail DOT com>
# Contributor: Michal Krenek <mikos@sg1.cz>
pkgname=libsrtp
-pkgver=1.4.4
-pkgrel=2
+pkgver=15.1c9bd90
+pkgrel=1
pkgdesc="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
url="http://srtp.sourceforge.net/srtp.html"
arch=('i686' 'x86_64' 'mips64el')
license=('BSD')
-source=("http://downloads.sourceforge.net/srtp/srtp-${pkgver}.tgz"
- "mips.patch")
-md5sums=('9b449edb011c934ca97009e7e0566d22'
+depends=('glibc')
+makedepends=('git')
+source=("git://git.linphone.org/srtp.git#commit=1c9bd90"
+ "mips.patch")
+md5sums=('SKIP'
'bfb3ec203daf786b9ffb33f30cb126ea')
-build() {
- cd "${srcdir}"/srtp
+pkgver() {
+ cd srtp
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+prepare() {
+ cd srtp
patch -Np1 -i "$srcdir/mips.patch"
+ autoconf
+}
+
+build() {
+ cd srtp
./configure --prefix=/usr
- make CFLAGS="${CFLAGS} -fPIC"
+ make
}
package() {
- cd "${srcdir}"/srtp
+ cd srtp
make DESTDIR="${pkgdir}" install
install -Dm0644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE