blob: 4fb36dfe45c35f6359e06dcaa03d2bd9c904add6 (
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
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=bctoolbox
pkgver=0.6.0
pkgrel=2
pkgdesc="Utilities library used by Belledonne Communications softwares like belle-sip, mediastreamer2 and linphone"
url="https://github.com/BelledonneCommunications/bctoolbox"
arch="all"
license="GPL-2.0"
options="!check" # bcunit not available
makedepends="cmake mbedtls-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/BelledonneCommunications/bctoolbox/archive/$pkgver.tar.gz
cmake-bcunit-fix.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_MODULE_PATH=/usr/lib/cmake \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
-DENABLE_MBEDTLS=YES \
-DENABLE_POLARSSL=NO \
-DENABLE_STATIC=NO \
-DENABLE_SHARED=YES .
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
dev() {
default_dev
mkdir -p "$subpkgdir"/usr/share/bctoolbox/cmake
mv "$pkgdir"/usr/share/bctoolbox/cmake/* "$subpkgdir"/usr/share/bctoolbox/cmake
}
sha512sums="decdd32f2d4d597a7b1717be860b855f6f4a909936f1a957e7a0ac81ac2d8cd5f96bbbc60a2354e62d1cfbf68d4407d76c97687a51c77cc8433e89e26d137edf bctoolbox-0.6.0.tar.gz
43928276f6059566a418b0f6730113a7d8a06f6c27f173930fde0c5236149a3f5d6ff609933559108cad4c172898e63c6ba3d6cd9c404a9557c7fa29eef5a9b1 cmake-bcunit-fix.patch"
|