summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f33f64b5cb0e27283f842e2bdaf48dfecaa9f9c9 (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: Julian Hornich <julianhornich@googlemail.com>

pkgname=python-pycachesim-git
pkgrel=1
pkgver=r125
pkgdesc="Python Cache Hierarchy Simulator"
arch=('i686' 'x86_64')
url="https://github.com/RRZE-HPC/pycachesim"
license=('GPLv3')
# iaca does currently not build from AUR. You might want to install it by hand and uncomment it here
depends=('python' )
makedepends=('git')
source=('git+https://github.com/RRZE-HPC/pycachesim.git')
sha256sums=('SKIP')
provides=('python-pycachesim')
conflicts=('python-pycachesim')

pkgver() {
  cd ${srcdir}/pycachesim
  echo "r"$(git rev-list --count master)
}

package() {
  cd ${srcdir}/pycachesim

  # install package
  python setup.py install --root="${pkgdir}"

  # license
  install -Dm644 ${srcdir}/pycachesim/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}