diff options
author | 許邱翔 | 2015-07-11 22:48:34 +0800 |
---|---|---|
committer | Chiu-Hsiang Hsu | 2015-07-23 19:14:31 +0800 |
commit | eafcee3cfcef94f1c72958688e515e775a616cbf (patch) | |
tree | 8be0e9da344a9ad77163c6ecdbdcdca40449c8f9 | |
download | aur-eafcee3cfcef94f1c72958688e515e775a616cbf.tar.gz |
add PKGBUILD and .SRCINFO for igprof
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..89642ba9815d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = igprof-git + pkgdesc = A simple tool for measuring and analysing application memory and performance characteristics + pkgver = v5.9.15.r2.g7dc2dba + pkgrel = 1 + url = http://igprof.org/ + arch = i686 + arch = x86_64 + license = GPL + makedepends = cmake + depends = libatomic_ops + depends = libunwind + depends = pcre + depends = python + source = igprof-git::git+https://github.com/igprof/igprof/ + md5sums = SKIP + +pkgname = igprof-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..711881b0ac9a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Chiu-Hsiang Hsu <wdv4758h@gmail.com> + +pkgname=igprof-git +pkgver=v5.9.15.r2.g7dc2dba +pkgrel=1 +pkgdesc="A simple tool for measuring and analysing application memory and performance characteristics" +arch=('i686' 'x86_64') +url="http://igprof.org/" +license=('GPL') +groups=() +depends=('libatomic_ops' + 'libunwind' + 'pcre' + 'python') +makedepends=('cmake') +source=("$pkgname::git+https://github.com/igprof/igprof/") +md5sums=('SKIP') + +pkgver() { + cd $pkgname + git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/release.//g' +} + +build() { + cd $pkgname + sed -i 's|-Werror||g' CMakeLists.txt + cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-g -O3" . + make +} + +package() { + cd $pkgname + make DESTDIR="${pkgdir}" install +} |