mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-21 01:56:37 +02:00
abuild now exports CTEST_OUTPUT_ON_FAILURE=ON by default which means this repetition can be removed from the aports.
44 lines
1.4 KiB
Text
44 lines
1.4 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=bctoolbox
|
|
pkgver=5.3.81
|
|
pkgrel=0
|
|
pkgdesc="Utilities library used by Belledonne Communications softwares like belle-sip, mediastreamer2 and linphone"
|
|
url="https://github.com/BelledonneCommunications/bctoolbox"
|
|
arch="all"
|
|
license="GPL-3.0-or-later"
|
|
options="!check" # bcunit not available
|
|
makedepends="cmake mbedtls-dev samurai"
|
|
subpackages="$pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/BelledonneCommunications/bctoolbox/archive/$pkgver.tar.gz
|
|
fix-cmake-path.patch
|
|
"
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
|
-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_STRICT=NO \
|
|
-DENABLE_TESTS_COMPONENT=OFF \
|
|
-DBUILD_SHARED_LIBS=YES
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
ctest --test-dir build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
f0f483bdf1d0c3b3fb080dd43d369f817ebd5227a373a6935ee4c9a6b8845696166878349278241206db9b0d8ab9092a45ac4ca461c59d20a00530565e6ce8df bctoolbox-5.3.81.tar.gz
|
|
78011cadf2602834a2f1eb819cdb302d59d0d00b296d99ce79fb8834c1a93611b73022727697ede07bfe0ec36797a7e71740264962d12995385fd09ae4f799bd fix-cmake-path.patch
|
|
"
|