summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b391f42ee8cfbbf9e10241b69318d2d230bbde0a (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
# Maintainer: Benedikt Bergenthal <b.bergenthal@cern.ch>
pkgname=benelib
pkgver=0.29.223acb7
pkgrel=1
pkgdesc="A library containing many code snippets mostly for ROOT"
arch=('x86_64')
url="https://github.com/wutzi15/Benelib"
license=('GPL')
depends=('root')
makedepends=('git' 'root' 'cmake' 'boost' 'boost-libs')
provides=("${benelib}")
conflicts=("${benelib}")
source=("${pkgname%-git}::git+http://github.com/wutzi15/Benelib.git")
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "0.%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$pkgname"

  #./configure --prefix=/usr
  cmake .
  make
}

package() {
  cd "$pkgname"
  sudo make install
}