46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
# Template file for 'mongo-c-driver'
|
|
pkgname=mongo-c-driver
|
|
version=1.17.5
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DENABLE_TESTS=OFF"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="openssl-devel"
|
|
short_desc="High-performance MongoDB driver for C"
|
|
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://mongoc.org"
|
|
distfiles="https://github.com/mongodb/mongo-c-driver/releases/download/${version}/mongo-c-driver-${version}.tar.gz"
|
|
checksum=4b15b7e73a8b0621493e4368dc2de8a74af381823ae8f391da3d75d227ba16be
|
|
|
|
mongo-c-driver-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove "usr/include/libmongoc*"
|
|
vmove "usr/lib/cmake/*mongoc*"
|
|
vmove "usr/lib/pkgconfig/libmongoc*"
|
|
vmove "usr/lib/libmongoc*.so"
|
|
vmove "usr/lib/libmongoc*.a"
|
|
}
|
|
}
|
|
|
|
libbson_package() {
|
|
short_desc="Cross Platform BSON Library for C"
|
|
pkg_install() {
|
|
vmove "usr/lib/libbson*.so.*"
|
|
}
|
|
}
|
|
|
|
libbson-devel_package() {
|
|
short_desc="Cross Platform BSON Library for C - development files"
|
|
depends="libbson>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove "usr/include/libbson*"
|
|
vmove "usr/lib/cmake/*bson*"
|
|
vmove "usr/lib/pkgconfig/libbson*"
|
|
vmove "usr/lib/libbson*.so"
|
|
vmove "usr/lib/libbson*.a"
|
|
}
|
|
}
|