mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 03:24:41 +08:00
33 lines
848 B
Bash
33 lines
848 B
Bash
# Maintainer: AlmAck
|
|
|
|
pkgname=jemalloc
|
|
pkgver=3.6.0
|
|
pkgrel=1
|
|
pkgdesc="General-purpose scalable concurrent malloc implementation"
|
|
arch=('x86_64')
|
|
license=('BSD')
|
|
url="http://www.canonware.com/jemalloc/"
|
|
depends=('glibc')
|
|
makedepends=('autoconf' 'make' 'bash')
|
|
optdepends=(
|
|
'perl: memory profiler'
|
|
)
|
|
source=(http://www.canonware.com/download/jemalloc/$pkgname-$pkgver.tar.bz2)
|
|
sha256sums=('e16c2159dd3c81ca2dc3b5c9ef0d43e1f2f45b04548f42db12e7c12d7bdf84fe')
|
|
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
CFLAGS="$CFLAGS -std=gnu11" ./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"
|
|
}
|
|
|