blob: 2775e8354f4f2650978635a7ccd2618650b456bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=libbson
pkgver=1.9.5
pkgrel=0
pkgdesc="routines related to building, parsing, and iterating BSON documents"
url="https://github.com/mongodb/libbson"
arch="all"
license="Apache-2.0"
depends=
depends_dev=
makedepends="$depends_dev autoconf automake libtool py3-sphinx"
checkdepends="bash"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mongodb/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$builddir"
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "$builddir"
SPHINX_BUILD=/usr/bin/sphinx-build-3 ./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-man-pages=yes \
--enable-tests=yes
make
}
check() {
cd "$builddir"
make TEST_ARGS=--no-fork check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="14bc75989baac550f42939ea161fa7872b950e5b669dc8f19e897f0783b04e0212e5e722b3fcdf946308b9a68bc066502ed8238dad92e342e5f49b8b2cc8f484 libbson-1.9.5.tar.gz"
|