summaryrefslogtreecommitdiff
path: root/community/jemalloc/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-04-12 00:04:48 -0700
committerroot <root@rshg054.dnsready.net>2013-04-12 00:04:48 -0700
commitd976aa5e1544c80dc2457ea20b27f28f3fa05899 (patch)
treeb920a24b920930916f1d58602326568fd1e4e9bf /community/jemalloc/PKGBUILD
parent337402b957bab442da9e0d46ee7a8d8f32ede3ce (diff)
Fri Apr 12 00:04:48 PDT 2013
Diffstat (limited to 'community/jemalloc/PKGBUILD')
-rw-r--r--community/jemalloc/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/community/jemalloc/PKGBUILD b/community/jemalloc/PKGBUILD
new file mode 100644
index 000000000..e5ccd4fea
--- /dev/null
+++ b/community/jemalloc/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 88096 2013-04-11 13:54:05Z mtorromeo $
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
+# Contributor: Kovivchak Evgen <oneonfire@gmail.com>
+
+pkgname=jemalloc
+pkgver=3.3.1
+pkgrel=1
+pkgdesc="General-purpose scalable concurrent malloc implementation"
+arch=('i686' 'x86_64')
+license=('BSD')
+url="http://www.canonware.com/jemalloc/"
+depends=('glibc')
+makedepends=('autoconf' 'make')
+source=(http://www.canonware.com/download/jemalloc/$pkgname-$pkgver.tar.bz2)
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+ mv "$pkgdir"/usr/bin/{,jemalloc-}pprof
+ chmod 644 "$pkgdir"/usr/lib/*.a
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+sha256sums=('35c433cc1df5cdf9eb58b7980338552fc1d7aa64f89fe5643a972ccedb7cf20a')