summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd930bfe7675615d17f3a20af010e6e402395ecf (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
# Maintainer: Sigvald Marholm <marholm@marebakken.com>

pkgname=petsc4py
pkgver=3.14
pkgrel=1
_config=linux-c-opt
pkgdesc="Python bindings for PETSc"
arch=('i686' 'x86_64')
url="https://bitbucket.org/petsc/petsc4py/src/master"
license=(custom)
depends=(petsc openmpi python-numpy)
source=(https://gitlab.com/petsc/petsc/-/archive/v${pkgver}/petsc-v${pkgver}.tar.gz)
sha256sums=('9297fcd91620f52235cb6fb44244ed217ea8b01b2ff6a5172ffe15bb0a0d7b55')

_petsc_dir=/opt/petsc/${_config}
_petsc_arch="arch-linux-c-opt"

build() {

	export PETSC_DIR=${_petsc_dir}
	export PETSC_ARCH=${_petsc_arch}

	cd ${srcdir}/petsc-v${pkgver}/src/binding/${pkgname}

	python setup.py build

}

package() {

	export PETSC_DIR=${_petsc_dir}
	export PETSC_ARCH=${_petsc_arch}

	cd ${srcdir}/petsc-v${pkgver}/src/binding/${pkgname}

	python setup.py install --root="${pkgdir}"

}

# vim: shiftwidth=2 softtabstop=2 tabstop=2 noexpandtab