summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3ba10561f4be3fd788de2c28da6b58333bcc54e (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
# Maintainer: Amanoel Dawod <amoka at amanoel dot com>

pkgname=memstrack-git
pkgver=0.1.12.r8.ga93d5ad
pkgrel=1
pkgdesc="A memory allocation trace, like a hot spot analyzer for memory allocation (from git)"
arch=('any')
url="https://github.com/ryncsn/memstrack"
license=('GPL3')
makedepends=('gcc' 'git' 'ncurses')
provides=('memstrack')
conflicts=('memstrack')
source=("git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd memstrack
  git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}

build() {
  cd memstrack
  make
}

package() {
  cd memstrack

  make DESTDIR="$pkgdir" install
  install -Dt "$pkgdir"/usr/share/licenses/$pkgname -m644 LICENSE
}