aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mongo-c-driver/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2016-11-07 15:29:40 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2016-11-07 16:30:44 +0000
commit04cc03b81e98ae8e18a126598b286e439d101512 (patch)
treed822294e7bc0134056a3569d68d741f6c3230019 /testing/mongo-c-driver/APKBUILD
parentde60607904f7c020524e06d3168a24f903da6257 (diff)
downloadaports-04cc03b81e98ae8e18a126598b286e439d101512.tar.bz2
aports-04cc03b81e98ae8e18a126598b286e439d101512.tar.xz
testing/mongo-c-driver: new aport
Client library written in C for MongoDB
Diffstat (limited to 'testing/mongo-c-driver/APKBUILD')
-rw-r--r--testing/mongo-c-driver/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/mongo-c-driver/APKBUILD b/testing/mongo-c-driver/APKBUILD
new file mode 100644
index 0000000000..0eeabc6152
--- /dev/null
+++ b/testing/mongo-c-driver/APKBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=mongo-c-driver
+pkgver=1.3.6
+pkgrel=0
+pkgdesc="Client library written in C for MongoDB"
+url="https://github.com/mongodb/mongo-c-driver"
+arch="all"
+license="Apache2"
+depends=
+depends_dev=
+makedepends="$depends_dev autoconf automake libbson-dev libtool"
+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"
+ ./autogen.sh
+}
+
+build() {
+ cd "$builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+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
+}
+
+md5sums="c28ea267a44ffe64c4dff64cad6bfc77 mongo-c-driver-1.3.6.tar.gz"
+sha256sums="c8d48cb1fdf054447a31381ff173733fdcf79e718ce360c7e9b8d506f60d8411 mongo-c-driver-1.3.6.tar.gz"
+sha512sums="d4f04fe74ca757cbd04d68903dca80a104701e85c809d5acd21ad2b8d98368a24f1951700694b7acc853c405e66d44521aa82c933c23300e7f2c354c01d7bc24 mongo-c-driver-1.3.6.tar.gz"