summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 188bff4a689b58fa6062124a4e98d53c0338919f (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
# Maintainer: asm0dey <pavel.finkelshtein@gmail.com>

pkgname=libsrtp0
pkgver=1.6.0
pkgrel=1
arch=('i686' 'x86_64')
url="https://github.com/cisco/libsrtp"
license=("BSD")

pkgdesc='provides an implementation of the Secure Real-time Transport Protocol (SRTP), compatible with 0th version of lib'

source=("v$pkgver.tar.gz::https://github.com/cisco/libsrtp/archive/v$pkgver.tar.gz" "LICENSE::https://raw.githubusercontent.com/cisco/libsrtp/master/LICENSE")
md5sums=('0f2188e50468a52cdd51d0479849236a' '2909fcf6f09ffff8430463d91c08c4e1')
depends=("glibc")
prepare() {
    sed -i 's|SHAREDLIBVERSION = 1|SHAREDLIBVERSION = 0|' "$srcdir/libsrtp-$pkgver/Makefile.in"
}

build() {
    cd "$srcdir/libsrtp-$pkgver"
    ./configure --prefix=/usr
    make shared_library
}

package() {
    cd "libsrtp-$pkgver"
    make DESTDIR="$pkgdir/" install
    mkdir -p "$pkgdir/usr/share/licenses/$pkgname/"
    cp "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
}