void-packages/srcpkgs/mongo-c-driver/template

48 lines
1.3 KiB
Bash

# Template file for 'mongo-c-driver'
pkgname=mongo-c-driver
version=1.13.0
revision=1
wrksrc="mongo-c-driver-${version}"
build_style=cmake
configure_args="-DENABLE_ZLIB=SYSTEM -DENABLE_SNAPPY=SYSTEM -DENABLE_EXAMPLES=OFF
-DENABLE_TESTS=OFF"
hostmakedepends="perl pkg-config"
makedepends="zlib-devel snappy-devel libsasl-devel"
short_desc="A client library written in C for MongoDB"
maintainer="John <johnz@posteo.net>"
license="Apache-2.0"
homepage="http://mongoc.org/"
changelog="https://github.com/mongodb/mongo-c-driver/${version}/NEWS"
distfiles="https://github.com/mongodb/mongo-c-driver/releases/download/${version}/mongo-c-driver-${version}.tar.gz"
checksum=25164e03b08baf9f2dd88317f1a36ba36b09f563291a7cf241f0af8676155b8d
do_check() {
: #requires a running MongoDB instance
}
libbson_package() {
short_desc="The BSON serialization library"
pkg_install() {
vmove "usr/lib/libbson*.so.*"
}
}
libmongoc_package() {
short_desc+=" - shared library"
pkg_install() {
vmove "usr/lib/libmongoc*.so.*"
}
}
mongo-c-driver-devel_package() {
depends="libbson>=${version}_${revision} libmongoc>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}