aboutsummaryrefslogtreecommitdiffstats
path: root/community/wiredtiger/APKBUILD
blob: 17a6b880f93ac228d631a00a0b9565963d56d979 (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
47
48
49
50
51
52
53
54
55
56
# Maintainer: Philipp Andronov <filipp.andronov@gmail.com>
# Contributor: Marc Vertes <mvertes@free.fr>

pkgname=wiredtiger
mongodb_version=3.6.1
pkgver=2.9.3.$mongodb_version
pkgrel=0
pkgdesc="High performance, scalable, production quality, NoSQL, Open Source extensible platform for data management"
url="http://www.wiredtiger.com"
arch="x86_64"
license="(GPL-2.0 or GPL-3.0) and MIT and BSD"
depends=""
depends_dev="autoconf automake libtool linux-headers"
makedepends="$depends_dev lz4-dev zlib-dev snappy-dev libexecinfo-dev"

options=""
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"

install=""
source="$pkgname-$pkgver-mongodb-$mongodb_version.tar.gz::https://github.com/wiredtiger/wiredtiger/archive/mongodb-$mongodb_version.tar.gz
	makemake-remove-libtool-version.patch
	10-fix-code-generator.patch
	"

_builddir="$srcdir"/$pkgname-mongodb-$mongodb_version
prepare() {
	local i

	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	sh autogen.sh || return 1
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--disable-static \
		--enable-verbose \
		--enable-lz4 \
		--with-builtins=zlib,snappy \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
sha512sums="9b0d75c9371eae20c996713fbcec65ffc6d77fdf377b1c0e3c6eccbc3588e21357924b18540b38a846071882ddfd24bdd0b7e3636fe99cce303e7f0e3986e04d  wiredtiger-2.9.3.3.6.1-mongodb-3.6.1.tar.gz
9eb56a81cbf0b8c695ab86d5c6aa319aee8e6ffc4d4ac94c5ecb17a639cab352f83fdf15db467d3f2961cd05fd00c2b96c3cc357daa32972dd07fb3dfa95852f  makemake-remove-libtool-version.patch
a24360c18a8dd677a1942fc66ecdfdb8bc514af6de3e19be822293fdc83c051c43f3270f91eaa4524f30b5bc82c6ecad5162ce5b3f5ff470bab4e1a5d9eb79ec  10-fix-code-generator.patch"