aboutsummaryrefslogtreecommitdiffstats
path: root/community/bzrtp/APKBUILD
blob: ea60608cf6e366de871abbe4dcce7cf030d804df (plain) (blame)
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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=bzrtp
pkgver=4.3.1
pkgrel=0
pkgdesc="BZRTP is an opensource implementation of ZRTP keys exchange protocol"
url="https://gitlab.linphone.org/BC/public/bzrtp"
arch="all"
license="GPL-3.0-only"
makedepends="cmake bctoolbox-dev sqlite-dev libxml2-dev"
options="!check" # no tests
subpackages="$pkgname-dev"
source="https://gitlab.linphone.org/BC/public/bzrtp/-/archive/$pkgver/bzrtp-$pkgver.tar.gz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		-DENABLE_STATIC=False \
		$CMAKE_CROSSOPTS .
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="6fc07a9673a06a3831bd75ba02d33476043dfd91edae7598ae2e1c9a14ba5f71b9026b7789c474d85b4bddaf56a0c4eb96e1e945af5d25a840d3e906cf267de3  bzrtp-4.3.1.tar.gz"