summaryrefslogtreecommitdiff
path: root/extra/libsrtp/PKGBUILD
blob: 0e51a3eb8fa528a9bfd13d42659f0579bba2c9e4 (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
37
38
39
40
41
42
# $Id: PKGBUILD 205552 2014-02-06 23:19:34Z 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=3
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" 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
}