updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / mongoc / PKGBUILD
blob0b2200b99cbfb1355b627945d755c9daec5b66c6
1 # Maintainer: Valentin V. Bartenev <ne@vbart.ru> http://vbart.info/
3 pkgname=mongoc
4 pkgver=0.4
5 pkgrel=1
6 pkgdesc='The officially supported MongoDB C driver and BSON library.'
7 arch=(i686 x86_64)
8 url='http://www.mongodb.org/display/DOCS/C+Language+Center'
9 optdepends=()
10 makedepends=(scons)
11 source=("$pkgname.tar.gz::https://github.com/mongodb/mongo-c-driver/tarball/v$pkgver")
12 license=(Apache)
13 md5sums=(b3d3f61648605d865e7d5fa2a7d3970d)
14 sha256sums=(13249b9b3363d2d6b0a69b9ac65928a7ea2112655fe448e8857437ac85a10754)
15 _gitrev=1380839
17 build() {
18   scons -C "mongodb-mongo-c-driver-$_gitrev" "$MAKEFLAGS"
21 package() {
22   cd "mongodb-mongo-c-driver-$_gitrev"
23   mkdir -p "$pkgdir/usr/lib/"
24   mkdir -p "$pkgdir/usr/include/mongoc/"
25   install -m 755 libmongoc.so libbson.so "$pkgdir/usr/lib/"
26   cd src
27   install -m 644 mongo.h bson.h platform.h "$pkgdir/usr/include/mongoc/"
30 # Enjoy! ;)