summaryrefslogtreecommitdiffstats
path: root/testing/jemalloc/APKBUILD
blob: 13a0fa80c981cc04b90e766e2e9e131c74d2062e (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=jemalloc
pkgver=3.6.0
pkgrel=1
pkgdesc="A general purpose malloc(3) implementation"
url="http://www.canonware.com/jemalloc/"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.canonware.com/download/jemalloc/$pkgname-$pkgver.tar.bz2
	jemalloc-no-pprof.patch"

_builddir="$srcdir"/$pkgname-$pkgver
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
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="e76665b63a8fddf4c9f26d2fa67afdf2  jemalloc-3.6.0.tar.bz2
4619ff9178f3218dd142d43e5d9f5c46  jemalloc-no-pprof.patch"
sha256sums="e16c2159dd3c81ca2dc3b5c9ef0d43e1f2f45b04548f42db12e7c12d7bdf84fe  jemalloc-3.6.0.tar.bz2
a001510da976d20ba13a9e0d027212a1a62cf574e462850f6764636f23b6a79c  jemalloc-no-pprof.patch"
sha512sums="ebe7c64558a87a735b5906d5cb7527c241664eeae7328538675a12eabe7a1004be0f8766a3bd2a78e61334b196ca7ffc0ee8b8ff59167922a35f126cd1e76e43  jemalloc-3.6.0.tar.bz2
a97c4eb504f8eb725fdd65683b512ea69773f1a183020a785cd02c5ac7e174a7206bf921a30ce63e5b183ef7bef34cec28ccdb57e16dfebd33f5a8161af2989d  jemalloc-no-pprof.patch"