# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=bctoolbox pkgver=4.3.1 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-2.0-or-later" 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" build() { cmake \ -DCMAKE_BUILD_TYPE=None \ -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_TESTS_COMPONENT=OFF \ -DENABLE_SHARED=YES . make } check() { make check } package() { make DESTDIR="$pkgdir" install } dev() { default_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 } sha512sums="89d4ead8f08fa6e20735e4cfb29666273e1cb47c23e8ed8c3992b53eae966188a57e68259a224b2857fdf8b1f829784c8ad661cac9fbee6f99b8e2493c067a72 bctoolbox-4.3.1.tar.gz 466d2a7aa33952c8086c698030af0addc79373aa31104cbe6133d352682439ae5c30055ea4f162cc9b6b9fc54bf3dea0ddcff78e0042e7ce43833d82b9487116 cmake-bcunit-fix.patch"