blob: 1805fed45f051d346fdd7d5f39960a0bd1ec06a8 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Maintainer: Rodrigo Bezerra <rodrigobezerra21 at gmail dot com>
# Contributor: orumin <dev@orum.in>
_basename=libsrtp
pkgname=lib32-libsrtp
pkgver=2.6.0
pkgrel=1
epoch=1
pkgdesc="Library for SRTP (Secure Realtime Transport Protocol) (32-bit)"
url="https://github.com/cisco/libsrtp"
arch=('x86_64')
license=(BSD-3-Clause)
depends=('lib32-glibc' 'lib32-nss' 'libsrtp')
makedepends=('git' 'lib32-libpcap' 'meson')
checkdepends=('procps-ng')
_commit=fd08747fa6800b321d53e15feb34da12dc697dee # tags/v2
source=("git+https://github.com/cisco/libsrtp#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $_basename
git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd $_basename
# Fixup pkgver: There are proper tags like v2.4.4
# but also "moving tags" like v2 and v2.4 that aren't stable
git tag | grep -Pv '^v\d+\.\d+\.\d+$' | xargs git tag -d
}
build() {
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG='/usr/bin/i686-pc-linux-gnu-pkg-config'
local meson_options=(
--libdir=lib32 \
--buildtype release \
-D crypto-library=nss \
-D crypto-library-kdf=disabled \
-D doc=disabled
)
arch-meson libsrtp build "${meson_options[@]}"
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
meson install -C build --destdir "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_basename/LICENSE
cd "$pkgdir"/usr
rm -r include
}
|