core/libsrtp/PKGBUILD

28 lines
670 B
Bash
Raw Normal View History

2015-07-10 04:46:34 +08:00
pkgname=libsrtp
2016-05-27 03:24:32 +08:00
pkgver=2.0.0
epoch=1
2016-05-27 06:06:34 +08:00
pkgrel=2
2015-07-10 04:46:34 +08:00
pkgdesc="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
2016-05-27 03:24:32 +08:00
url="https://github.com/cisco/libsrtp"
2015-07-10 04:46:34 +08:00
arch=('x86_64')
license=('BSD')
depends=('glibc')
2016-05-27 03:24:32 +08:00
source=("${url}/archive/v${pkgver}.tar.gz")
md5sums=('54b7fbc8ed45aa3c1c02511ee8976dd9')
2015-07-10 04:46:34 +08:00
build() {
2016-05-27 03:24:32 +08:00
cd ${pkgname}-${pkgver}
2016-05-27 06:06:34 +08:00
./configure --prefix=/usr \
--enable-openssl \
--disable-debug
2015-07-10 04:46:34 +08:00
make
2016-05-27 06:06:34 +08:00
make shared_library # Silly upstream, doesn't build dynamic link
2016-05-27 03:24:32 +08:00
}
2015-07-10 04:46:34 +08:00
package() {
2016-05-27 03:24:32 +08:00
cd ${pkgname}-${pkgver}
2015-07-10 04:46:34 +08:00
make DESTDIR="${pkgdir}" install
install -Dm0644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}