summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b46995c3d5afb050bc3b479481671ddb46e8a1e (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: kerel <kerel at mailbox dot org>

pkgname=giza-git
pkgver=r751.72d3703
pkgrel=1
pkgdesc="giza - a scientific plotting library for C/Fortran"
arch=('x86_64')
url="https://github.com/danieljprice/giza"
branch="master"
license=('LGPL-3.0-or-later')
depends=()
makedepends=('git' 'gcc-fortran')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("giza::git+$url.git#branch=$branch")
sha256sums=('SKIP')

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

build() {
	cd "$srcdir/${pkgname%-git}"
	./configure --prefix=/usr
	make
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir/" install
}