Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:kimi:telephony-to-merge
bcunit
PKGBUILD
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PKGBUILD of Package bcunit
# 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=bcunit pkgver=5.2.62 pkgrel=9 pkgdesc="Lightweight system for writing, administering, and running unit tests in C" arch=(x86_64) url="https://github.com/BelledonneCommunications/${pkgname}" license=(GPL) # With debug symbols options=(!strip) conflicts=($pkgname) provides=("$pkgname=$pkgver") makedepends=(cmake) source=("${pkgname}-${pkgver}.tar.bz2" bcunit-link-ncurses.patch bcunit-ncurses6.patch bcunit-sover.patch set_current_version.patch) sha512sums=(SKIP 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} _installToDir=${_pkgdir}/usr 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}" --forward --strip=1 --input="${_uploaddir}/bcunit-link-ncurses.patch" patch -d "${_sourcedir}" --forward --strip=1 --input="${_uploaddir}/bcunit-ncurses6.patch" patch -d "${_sourcedir}" --forward --strip=1 --input="${_uploaddir}/bcunit-sover.patch" patch -d "${_sourcedir}" --forward --strip=1 --input="${_uploaddir}/set_current_version.patch" } build() { mkdir -pv "${_builddir}" cmake -S "${_sourcedir}" -B "${_builddir}" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DENABLE_STATIC=OFF \ -DENABLE_DOC=ON 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 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