summaryrefslogtreecommitdiff
path: root/extra/libsrtp/PKGBUILD
blob: 31b91885077ccbdfb59c14fa98daf1b1e3c4e314 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: PKGBUILD 197763 2013-10-29 19:24:02Z eric $
# 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=15.1c9bd90
pkgrel=2
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')
depends=('glibc')
makedepends=('git')
source=("git://git.linphone.org/srtp.git#commit=1c9bd90")
md5sums=('SKIP')

pkgver() {
  cd srtp
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd srtp
  autoconf
  ./configure --prefix=/usr
  make
}

package() {
  cd srtp
  make DESTDIR="${pkgdir}" install

  install -Dm0644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}