mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
main/bctoolbox: build with samurai
This commit is contained in:
parent
3871146915
commit
d4e0acf37c
@ -2,18 +2,18 @@
|
||||
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
||||
pkgname=bctoolbox
|
||||
pkgver=5.1.55
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
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-or-later"
|
||||
options="!check" # bcunit not available
|
||||
makedepends="cmake mbedtls-dev"
|
||||
makedepends="cmake mbedtls-dev samurai"
|
||||
subpackages="$pkgname-dev"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/BelledonneCommunications/bctoolbox/archive/$pkgver.tar.gz"
|
||||
|
||||
build() {
|
||||
cmake \
|
||||
cmake -B build -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_MODULE_PATH=/usr/lib/cmake \
|
||||
@ -23,16 +23,16 @@ build() {
|
||||
-DENABLE_POLARSSL=NO \
|
||||
-DENABLE_STATIC=NO \
|
||||
-DENABLE_TESTS_COMPONENT=OFF \
|
||||
-DENABLE_SHARED=YES .
|
||||
make
|
||||
-DENABLE_SHARED=YES
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
check() {
|
||||
make check
|
||||
ctest --test-dir build --output-on-failure
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
|
||||
dev() {
|
||||
@ -40,9 +40,7 @@ dev() {
|
||||
mkdir -p "$subpkgdir"/usr/lib/cmake/bctoolbox
|
||||
mv "$pkgdir"/usr/share/bctoolbox/cmake/* "$subpkgdir"/usr/lib/cmake/bctoolbox
|
||||
# Remove empty dirs
|
||||
rmdir "$pkgdir"/usr/share/bctoolbox/cmake
|
||||
rmdir "$pkgdir"/usr/share/bctoolbox
|
||||
rmdir "$pkgdir"/usr/share
|
||||
rmdir -p "$pkgdir"/usr/share/bctoolbox/cmake || true
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user