blob: c58f221b89c94a1898537c0422a586e4770c199f (
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
34
35
36
37
38
39
40
41
42
43
|
_pkgname=openhfta
pkgname="${_pkgname}-git"
pkgver=r2.5e6e415
pkgrel=1
pkgdesc="HF terrain analysis tool using the OpenYTWCore Fortran numerical engine"
arch=('x86_64')
url="https://github.com/RioDXGroup/openhfta"
license=('0BSD')
depends=(
'gcc-libs'
'python'
'python-matplotlib'
'python-numpy'
)
makedepends=(
'gcc-fortran'
'git'
)
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd "${_pkgname}"
make
}
check() {
cd "${_pkgname}"
make test
}
package() {
cd "${_pkgname}"
make DESTDIR="${pkgdir}" PREFIX=/usr install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|