blob: 8bdf245d900303bb8263c93e2af656f6204af4f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Jon Gjengset <jon@thesquareplanet.com>
pkgname=coz-git
pkgver=r241.3a4fa41
pkgrel=1
pkgdesc="a new kind of profiler that measures optimization potential"
arch=('x86_64')
url="https://github.com/plasma-umass/coz"
license=('GPL2')
depends=('python' 'clang>=3.1')
makedepends=('git')
options=()
install=
source=('coz-git::git+https://github.com/plasma-umass/coz.git'
'python2.patch' 'fix-preload-path.patch')
md5sums=('SKIP'
'f3ff4dcc098eb00e949b362594918517'
'273946cb7d19ad5697c68893b312cd64')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$pkgname"
msg2 "Use python2"
patch -Np1 < "$srcdir/python2.patch"
msg2 "Fix LD_PRELOAD path set by coz wrapper"
patch -Np1 < "$srcdir/fix-preload-path.patch"
}
build() {
cd "$srcdir/$pkgname"
make
}
package() {
cd "$srcdir/$pkgname"
install -Dm755 "$srcdir/$pkgname/coz" "$pkgdir/usr/bin/coz"
install -Dm644 "$srcdir/$pkgname/libcoz/libcoz.so" "$pkgdir/usr/share/coz/libcoz.so"
install -Dm644 "$srcdir/$pkgname/include/coz.h" "$pkgdir/usr/include/coz.h"
}
# vim:set ts=2 sw=2 et:
|