# Maintainer: Alex Kashirin <kashirin.alex@gmail.com> _group_name="swcdb" _sub_name="lib-core" pkgname=${_group_name}-${_sub_name} pkgver=0.5.12 pkgrel=1 pkgdesc="The SWC-DB core libraries" arch=("x86_64") groups=($_group_name) provides=( libswcdb_core.so libswcdb_core_config.so libswcdb_core_comm.so ) url="https://www.swcdb.org" license=('GPLv3') depends=( 'gperftools' 'openssl' 'zlib' 'snappy' 'zstd' 're2' 'swcdb-env' ) makedepends=( 'git' 'cmake' 'make' 'gcc' 'gperftools' 'asio' 'openssl' 'zlib' 'snappy' 'zstd' 're2' ) optdepends=() conflicts=() replaces=() backup=() options=() install=README.md changelog= source=( $pkgname-$pkgver-source::git+https://github.com/kashirin-alex/swc-db.git#tag=v$pkgver ) sha256sums=('SKIP') build() { mkdir -p $pkgname-$pkgver-build; cd $pkgname-$pkgver-build; cmake ../$pkgname-$pkgver-source \ -DO_LEVEL=3 -DSWC_BUILD_PKG=${_sub_name} \ -DSWC_PATH_ETC="/etc/"${_group_name}"/" \ -DSWC_PATH_LOG="/var/lib/"${_group_name}"/" \ -DSWC_PATH_RUN="/var/run/" \ -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX=$pkgdir/usr \ -DCMAKE_BUILD_TYPE=Release; make -j$((`grep -c processor < /proc/cpuinfo || echo 1`)); } package() { cd $pkgname-$pkgver-build; make install; }