summaryrefslogtreecommitdiff
path: root/extra/libsrtp/PKGBUILD
blob: 1013f6bc8bc6b912c8a655368d880d4166d27263 (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
# $Id: PKGBUILD 159152 2012-05-16 20:08:38Z 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
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'
         'bfb3ec203daf786b9ffb33f30cb126ea')

build() {
  cd "${srcdir}"/srtp
  patch -Np1 -i "$srcdir/mips.patch"
  ./configure --prefix=/usr
  make CFLAGS="${CFLAGS} -fPIC"
}

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

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