2013-08-22 22:45:37 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Dave Reisner <dreisner@archlinux.org>
|
|
|
|
# Contributor: Alexander Rødseth <rodseth@gmail.com>
|
|
|
|
# Contributor: Thomas Jost <schnouki@schnouki.net>
|
|
|
|
# Contributor: JaDa <jada@archlinux.us>
|
|
|
|
# Contributor: Joaquim Pedro <osmano807@gmail.com>
|
|
|
|
# Contributor: Jan Rüegg <rggjan@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - hack to skip using v7 assembly on v6
|
2015-07-15 02:05:52 +00:00
|
|
|
# - depend on libunwind for AArch64
|
2013-08-22 22:45:37 +00:00
|
|
|
|
|
|
|
pkgname=gperftools
|
2018-05-18 17:24:06 +00:00
|
|
|
pkgver=2.7
|
2016-04-03 23:38:44 +00:00
|
|
|
pkgrel=1
|
2014-12-25 01:56:49 +00:00
|
|
|
pkgdesc="Fast, multi-threaded malloc and nifty performance analysis tools"
|
2017-11-18 20:12:06 +00:00
|
|
|
arch=('x86_64')
|
2016-04-03 23:38:44 +00:00
|
|
|
url="https://github.com/gperftools/gperftools"
|
2013-08-22 22:45:37 +00:00
|
|
|
license=('BSD')
|
|
|
|
depends=('perl')
|
2015-07-15 02:05:52 +00:00
|
|
|
depends_aarch64=('libunwind')
|
2014-05-24 01:44:46 +00:00
|
|
|
provides=('libtcmalloc.so'
|
|
|
|
'libprofiler.so'
|
|
|
|
'libtcmalloc_debug.so'
|
|
|
|
'libtcmalloc_and_profiler.so'
|
|
|
|
'libtcmalloc_minimal.so'
|
|
|
|
'libtcmalloc_minimal_debug.so')
|
2016-04-03 23:38:44 +00:00
|
|
|
makedepends=('git')
|
2013-08-22 22:45:37 +00:00
|
|
|
optdepends=('graphviz: pprof graph generation'
|
|
|
|
'gv: pprof postscript generation')
|
|
|
|
options=('!libtool')
|
2016-04-03 23:38:44 +00:00
|
|
|
source=("git+https://github.com/gperftools/gperftools#tag=$pkgname-$pkgver"
|
2013-08-22 22:45:37 +00:00
|
|
|
"armv6.patch")
|
2016-04-03 23:38:44 +00:00
|
|
|
md5sums=('SKIP'
|
2014-08-08 02:15:47 +00:00
|
|
|
'68606edc5920e10930647b8f276fbe88')
|
2013-08-22 22:45:37 +00:00
|
|
|
|
2014-05-24 01:44:46 +00:00
|
|
|
prepare() {
|
2016-04-03 23:38:44 +00:00
|
|
|
cd "$pkgname"
|
|
|
|
|
|
|
|
./autogen.sh
|
2013-08-22 22:45:37 +00:00
|
|
|
patch -p1 -i ../armv6.patch
|
2014-05-24 01:44:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2016-04-03 23:38:44 +00:00
|
|
|
cd "$pkgname"
|
2014-05-24 01:44:46 +00:00
|
|
|
|
2013-08-22 22:45:37 +00:00
|
|
|
./configure --prefix=/usr --enable-frame-pointers
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2016-04-03 23:38:44 +00:00
|
|
|
cd "$pkgname"
|
2013-08-22 22:45:37 +00:00
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|