diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-18 14:44:59 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-18 14:44:59 +0000 |
commit | 8a67c4cf2221390f49b76cb0944ab9f61269fcf5 (patch) | |
tree | fe61fdf4c665ac6b7c312b8cf61430f3fcadc215 /main/libsrtp/APKBUILD | |
parent | 0199bcb2212b5d12b08c644bacbe1a869dab61c0 (diff) | |
download | aports-8a67c4cf2221390f49b76cb0944ab9f61269fcf5.tar.bz2 aports-8a67c4cf2221390f49b76cb0944ab9f61269fcf5.tar.xz |
main/libsrtp: moved from testing
Diffstat (limited to 'main/libsrtp/APKBUILD')
-rw-r--r-- | main/libsrtp/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/main/libsrtp/APKBUILD b/main/libsrtp/APKBUILD new file mode 100644 index 0000000000..2043cc1cb9 --- /dev/null +++ b/main/libsrtp/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=libsrtp +pkgver=1.4.4 +pkgrel=0 +pkgdesc="An implementation of the Secure Real-time Transport Protocol (SRTP)" +url="http://srtp.sourceforge.net" +arch="all" +license="BSD" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev" +source="http://downloads.sourceforge.net/project/srtp/srtp/$pkgver/srtp-$pkgver.tgz + libsrtp-1.4.4-shared.patch" + +_builddir="$srcdir"/srtp +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 + make libsrtp.so +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="9b449edb011c934ca97009e7e0566d22 srtp-1.4.4.tgz +9c1a70a44c3a12e693c56251b70cc1bb libsrtp-1.4.4-shared.patch" |