diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..676f29e4f5b2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Jon Gjengset <jon@thesquareplanet.com> +pkgname=coz-git +pkgver=r239.935fc29 +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') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +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/lib/libcoz.so" + install -Dm644 "$srcdir/$pkgname/include/coz.h" "$pkgdir/usr/include/coz.h" +} + +# vim:set ts=2 sw=2 et: |