PKGBUILDs/extra/jemalloc/PKGBUILD

49 lines
1.5 KiB
Bash
Raw Normal View History

2017-10-23 18:39:21 +00:00
# $Id$
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Kovivchak Evgen <oneonfire@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - upstream patch for AArch64
pkgname=jemalloc
epoch=1
pkgver=5.0.1
2018-04-27 04:30:15 +00:00
pkgrel=4.1
2017-10-23 18:39:21 +00:00
pkgdesc='General-purpose scalable concurrent malloc implementation'
2018-01-24 13:51:14 +00:00
arch=('x86_64')
2017-10-23 18:39:21 +00:00
license=('BSD')
url='http://www.canonware.com/jemalloc/'
depends=('glibc')
provides=('libjemalloc.so')
optdepends=('perl: for jeprof')
source=("https://github.com/jemalloc/jemalloc/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
2018-01-24 13:51:14 +00:00
'0001-Add-the-mtls-dialect-gnu2-to-compile-flags.patch'
2017-10-23 18:39:21 +00:00
'https://github.com/jemalloc/jemalloc/commit/8cfc9dec37b312a2686f602bbcdd102ca07cca99.patch')
sha256sums=('4814781d395b0ef093b21a08e8e6e0bd3dab8762f9935bbfb71679b0dea7c3e9'
2018-01-24 13:51:14 +00:00
'ac1570ab81c6545b8e994eab02239af67acdce682656c77802d090b0809176bf'
2018-04-27 04:30:15 +00:00
'a45585be35afe8384a4e87d80e754052c4c1e0233f381e884fbcfe655e0efb95')
2017-10-23 18:39:21 +00:00
prepare() {
cd $pkgname-$pkgver
2018-04-27 04:30:15 +00:00
[[ $CARCH != "aarch64" && $CARCH != "arm" ]] && patch -p1 -i "$srcdir/0001-Add-the-mtls-dialect-gnu2-to-compile-flags.patch"
2017-10-23 18:39:21 +00:00
patch -p1 -i ../8cfc9dec37b312a2686f602bbcdd102ca07cca99.patch
2018-01-24 13:51:14 +00:00
autoconf
2017-10-23 18:39:21 +00:00
}
build() {
cd $pkgname-$pkgver
2018-01-24 13:51:14 +00:00
./configure --enable-autogen --prefix=/usr
2017-10-23 18:39:21 +00:00
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
2018-01-24 13:51:14 +00:00
chmod 644 "$pkgdir/usr/lib/libjemalloc_pic.a"
2017-10-23 18:39:21 +00:00
}