summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e270e86116349207f24d926d7669cfe52cf249d (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
# Maintainer: Robert RĂ¼ger  mail robertrueger de
#                          <    @            .  >
pkgname=ftl-git
pkgver=r172.d977353
pkgrel=1
pkgdesc="The Fortran Template Library"
arch=('i686' 'x86_64')
url="https://github.com/robertrueger/ftl"
license=('LGPL')
depends=('gcc-fortran' 'pcre')
makedepends=('git')
source=("${pkgname}::git+https://github.com/robertrueger/ftl.git")
md5sums=('SKIP')

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

build() {
  cd "$srcdir/${pkgname}"
  make BUILD=release
}

check() {
  cd "$srcdir/${pkgname}"
  make BUILD=release test
}

package() {
  cd "$srcdir/${pkgname}"
  make BUILD=release PREFIX="$pkgdir"/usr install
}