summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD63
2 files changed, 38 insertions, 41 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3a10134be02..c5ba045231e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,19 @@
# Generated by mksrcinfo v8
-# Sun Dec 20 03:53:17 UTC 2015
+# Sun Dec 20 04:01:14 UTC 2015
pkgbase = libx32-jemalloc
pkgdesc = General-purpose scalable concurrent malloc implementation (x32 ABI)
- pkgver = 3.6.0
+ pkgver = 4.0.4
pkgrel = 1.1
url = http://www.canonware.com/jemalloc/
arch = x86_64
license = BSD
- makedepends = autoconf
- makedepends = make
- makedepends = bash
depends = libx32-glibc
- optdepends = perl: memory profiler
- source = http://www.canonware.com/download/jemalloc/jemalloc-3.6.0.tar.bz2
+ optdepends = perl: for jeprof
+ provides = libjemalloc.so
+ source = http://www.canonware.com/download/jemalloc/jemalloc-4.0.4.tar.bz2
source = jemalloc-stub.h
- sha256sums = e16c2159dd3c81ca2dc3b5c9ef0d43e1f2f45b04548f42db12e7c12d7bdf84fe
- sha256sums = 58f8b77e15df58934d9138d298fd4005d37b78ace48de757af2fea8deaf347ff
+ md5sums = 687c5cc53b9a7ab711ccd680351ff988
+ md5sums = 2d00976616cb0159bc81108bcb028fbe
pkgname = libx32-jemalloc
install = libx32-jemalloc.install
diff --git a/PKGBUILD b/PKGBUILD
index 8ceb48311c4..713e8ec635d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,50 +1,49 @@
-# $Id: PKGBUILD 224120 2014-10-08 19:52:45Z bpiotrowski $
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
+# $Id: PKGBUILD 249759 2015-10-25 19:33:24Z bpiotrowski $
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Kovivchak Evgen <oneonfire@gmail.com>
# x32 Maintainer: Fantix King <fantix.king@gmail.com>
_pkgbasename=jemalloc
pkgname=libx32-jemalloc
-pkgver=3.6.0
+pkgver=4.0.4
pkgrel=1.1
-pkgdesc="General-purpose scalable concurrent malloc implementation (x32 ABI)"
+pkgdesc='General-purpose scalable concurrent malloc implementation (x32 ABI)'
arch=('x86_64')
license=('BSD')
-url="http://www.canonware.com/jemalloc/"
-depends=('libx32-glibc')
-makedepends=('autoconf' 'make' 'bash')
-optdepends=(
- 'perl: memory profiler'
-)
+url='http://www.canonware.com/jemalloc/'
+depends=('libx32-glibc' "${_pkgbasename}")
+provides=('libjemalloc.so')
+optdepends=('perl: for jeprof')
source=(http://www.canonware.com/download/jemalloc/$_pkgbasename-$pkgver.tar.bz2
jemalloc-stub.h)
+md5sums=('687c5cc53b9a7ab711ccd680351ff988'
+ '2d00976616cb0159bc81108bcb028fbe')
build() {
- cd "$srcdir/$_pkgbasename-$pkgver"
+ cd $_pkgbasename-$pkgver
- export CC="gcc -mx32"
- export CXX="g++ -mx32"
- export PKG_CONFIG_PATH="/usr/libx32/pkgconfig"
+ export CC="gcc -mx32"
+ export CXX="g++ -mx32"
+ export PKG_CONFIG_PATH="/usr/libx32/pkgconfig"
- CFLAGS="$CFLAGS -std=gnu11" ./configure --prefix=/usr --libdir=/usr/libx32
- make
+ ./configure --prefix=/usr --libdir=/usr/libx32
+ make
}
package() {
- install="${pkgname}.install"
-
- cd "$srcdir/$_pkgbasename-$pkgver"
- make DESTDIR="$pkgdir" install
- rm "$pkgdir"/usr/bin/pprof
- mv "$pkgdir"/usr/bin/jemalloc{,-x32}.sh
- mv "$pkgdir"/usr/include/jemalloc/jemalloc{,-x32}.h
- install -Dm644 "${srcdir}/jemalloc-stub.h" "${pkgdir}/usr/include/jemalloc/jemalloc-stub.h"
- chmod 644 "$pkgdir"/usr/libx32/*.a
-
- rm -r "$pkgdir/usr/share"
- mkdir -p "$pkgdir/usr/share/licenses"
- ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+ install="${pkgname}.install"
+
+ cd $_pkgbasename-$pkgver
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" -name \*.a -type f -exec chmod 644 '{}' \;
+ mv "$pkgdir"/usr/bin/jeprof{,-x32}
+ mv "$pkgdir"/usr/bin/jemalloc-config{,-x32}
+ mv "$pkgdir"/usr/bin/jemalloc{,-x32}.sh
+ mv "$pkgdir"/usr/include/jemalloc/jemalloc{,-x32}.h
+ install -Dm644 "${srcdir}/jemalloc-stub.h" "${pkgdir}/usr/include/jemalloc/jemalloc-stub.h"
+
+ rm -r "$pkgdir/usr/share"
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
}
-
-sha256sums=('e16c2159dd3c81ca2dc3b5c9ef0d43e1f2f45b04548f42db12e7c12d7bdf84fe'
- '58f8b77e15df58934d9138d298fd4005d37b78ace48de757af2fea8deaf347ff')