summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7362447de99b8326a53558e17033364c44ec9d0d (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
# Maintainer: David Adler <d.adler@posteo.de>

_pkgname=gnucap-python
pkgname=$_pkgname-git
pkgver=r248.45a4914
pkgrel=1
pkgdesc='Python bindings for Gnucap'
arch=('x86_64')
url='https://codeberg.org/gnucap/gnucap-python/src/branch/develop/README'
license=('GPL')
depends=('gnucap' 'python-scipy' 'swig3')
makedepends=('git')
provides=('gnucap-python')
conflicts=('gnucap-python')
source=("git+https://codeberg.org/gnucap/$_pkgname.git")
md5sums=('SKIP')

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

build() {
    cd $_pkgname
    ./bootstrap
    ./configure --prefix=/usr \
                CPPFLAGS=-I/usr/lib/python3.7/site-packages/numpy/core/include/ \
                PYTHON=python3 \
                SWIG=/usr/bin/swig-3
    make
}

check() {
    cd $_pkgname
    make check
}

package() {
    cd $_pkgname
    make DESTDIR="$pkgdir/" install
}