# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> setvar pkgname = 'libbson' setvar pkgver = '1.8.0' setvar pkgrel = '0' setvar pkgdesc = ""routines related to building, parsing, and iterating BSON documents"" setvar url = ""https://github.com/mongodb/libbson"" setvar arch = ""all"" setvar license = ""Apache2"" setvar depends = '' setvar depends_dev = '' setvar makedepends = ""$depends_dev autoconf automake libtool"" setvar install = '' setvar subpackages = ""$pkgname-dev $pkgname-doc"" setvar source = ""$pkgname-$pkgver.tar.gz::https://github.com/mongodb/libbson/archive/$pkgver.tar.gz"" setvar builddir = ""$srcdir"/$pkgname-$pkgver" proc prepare { cd $builddir ./autogen.sh } proc build { cd $builddir ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info make || return 1 } proc package { cd $builddir make DESTDIR="$pkgdir" install || return 1 # remove the 2 lines below (and this) if there is no init.d script # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname } setvar sha512sums = ""afe0dcb007546360fa4226403c7a036055e4bfaf58eafbd41b91f9fa3769203514ddde85c6cebec1d7ef5418f9207a6a1caada6f8269854dc65fdff862b3ceb0 libbson-1.8.0.tar.gz""