aports/main/bctoolbox/APKBUILD
Sertonix 9c7716c222 main/*: remove --output-on-failure/CTEST_OUTPUT_ON_FAILURE
abuild now exports CTEST_OUTPUT_ON_FAILURE=ON by default which means this
repetition can be removed from the aports.
2024-11-03 22:23:44 +01:00

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
"