PKGBUILDs/extra/gperftools/PKGBUILD

57 lines
1.4 KiB
Bash
Raw Normal View History

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
pkgname=gperftools
2014-05-24 01:44:46 +00:00
pkgver=2.2
pkgrel=1
2013-08-22 22:45:37 +00:00
pkgdesc="Fast, multi-threaded malloc() and nifty performance analysis tools"
arch=('i686' 'x86_64')
url="http://code.google.com/p/gperftools/"
license=('BSD')
depends=('perl')
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')
makedepends=('git')
2013-08-22 22:45:37 +00:00
optdepends=('graphviz: pprof graph generation'
'gv: pprof postscript generation')
options=('!libtool')
2014-05-24 01:44:46 +00:00
source=("git+https://code.google.com/p/gperftools#tag=gperftools-$pkgver"
2013-08-22 22:45:37 +00:00
"armv6.patch")
2014-05-24 01:44:46 +00:00
sha256sums=('SKIP'
2013-08-22 22:45:37 +00:00
'879a6e92947a5538885b9e63c2675a93d57870f58c2d61260fec91ce56823df8')
2014-05-24 01:44:46 +00:00
prepare() {
cd "$pkgname"
2013-08-22 22:45:37 +00:00
patch -p1 -i ../armv6.patch
2014-05-24 01:44:46 +00:00
./autogen.sh
}
build() {
cd "$pkgname"
2013-08-22 22:45:37 +00:00
./configure --prefix=/usr --enable-frame-pointers
make
}
package() {
2014-05-24 01:44:46 +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: