Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:kimi:telephony-to-merge
bctoolbox
PKGBUILD
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PKGBUILD of Package bctoolbox
# Fix for error: bsdtar: Failed to set default locale # LANG=en_US.UTF-8 # not available, use C or POSIX LANG=C LC_ALL=${LANG} pkgname=bctoolbox pkgver=5.3.37 pkgrel=0 pkgdesc="Utilities library for Belledonne Communications software" arch=('x86_64') url="https://gitlab.linphone.org/BC/public/${pkgname}" license=('GPL3') # With debug symbols options=(!strip) conflicts=($pkgname) provides=("$pkgname=$pkgver") depends=('bcunit' 'mbedtls2' 'glibc' libdecaf) makedepends=('cmake' 'gcc' 'libdecaf' 'bcunit' 'libsrtp' 'mbedtls2') source=(${pkgname}-${pkgver}.tar.bz2 ${pkgname}-fix-pkgconfig.patch gcc9-stringop-bogus-warning.patch set_curret_version.patch) sha1sums=(SKIP SKIP SKIP SKIP) _uploaddir=/usr/src/packages/SOURCES _sourcedir=/usr/src/packages/BUILD/${pkgname}/src/${pkgname}-${pkgver} # srcdir is already defined as # ${srcdir}=/usr/src/packages/BUILD/${pkgname}/src _builddir=/usr/src/packages/BUILD/${pkgname}/build _pkgdir=/usr/src/packages/BUILD/${pkgname}/pkg/${pkgname} # Package files will be installed in: _installToDir=${_pkgdir} prepare() { echo "Move patching to build() section for verbose log output" # patch -d "${_sourcedir}" -p1 < fix.patch # patch -d "${_sourcedir}" --forward --strip=1 --input="${srcdir}/fix.patch" # patch -d "${_sourcedir}" --forward --strip=1 --input="${_uploaddir}/fix.patch" patch -d "${_sourcedir}" -p1 < ${pkgname}-fix-pkgconfig.patch patch -d "${_sourcedir}" -p1 < gcc9-stringop-bogus-warning.patch patch -d "${_sourcedir}" -p1 < set_curret_version.patch } build() { mkdir -pv "${_builddir}" export CFLAGS=$(echo "$CFLAGS -Wno-error=unused-parameter") export CXXFLAGS=$(echo "$CXXFLAGS -Wno-error=unused-parameter") cmake -S ${_sourcedir} -B ${_builddir} \ -DDecaf_DIR=/usr/share/decaf/cmake/ \ -DBCunit_DIR=/usr/share/BCunit/cmake/ \ -DCMAKE_SHARED_LINKER_FLAGS="${CMAKE_SHARED_LINKER_FLAGS} -L/usr/lib/libbcunit.so" \ -DENABLE_STATIC=OFF \ -DENABLE_DOC=ON \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_PREFIX_PATH="\${CMAKE_PREFIX_PATH};/usr/share/BCunit/cmake/;/usr/share/decaf/cmake/;/usr/lib/" \ -DENABLE_TESTS_COMPONENT=OFF \ -DENABLE_TESTS=OFF # -DDTLS_SRTP_AVAILABLE=YES \ cmake --build "${_builddir}" } package() { rm -rf "${pkgdir}"; mkdir -pv "${pkgdir}" # cmake --install "${_builddir}" --config RelWithDebInfo --prefix "${_installToDir}" # cmake --install "${_builddir}" --config RelWithDebInfo --prefix "${_installToDir}" --strip make install -C "${_builddir}" DESTDIR="${_installToDir}" # make install -C "${_builddir}" DESTDIR="${_installToDir}" --strip echo echo pkgdir=${pkgdir} echo "--- Show files that will be packaged ---" find ${pkgdir} | sed "s|${pkgdir}||g" | sort echo "--- End show files that will be packaged ---" }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor