diff options
author | lukelabrie | 2023-05-02 16:01:40 +0200 |
---|---|---|
committer | lukelabrie | 2023-05-02 16:01:40 +0200 |
commit | 22dce7cb0b2dc5855b005a308532006c48f83b00 (patch) | |
tree | 5dd26a3e01119f0333e24b744b717a849ed45c7c | |
parent | a5fd4371d7e728b903ac7dbcadedb63ef8d75fc7 (diff) | |
download | aur-22dce7cb0b2dc5855b005a308532006c48f83b00.tar.gz |
check for existing pymoab install, in case build step was done in root
-rw-r--r-- | .SRCINFO | 12 | ||||
-rwxr-xr-x | PKGBUILD | 25 |
2 files changed, 19 insertions, 18 deletions
@@ -1,6 +1,6 @@ -pkgbase = moab-git +pkgbase = moab pkgdesc = The Mesh-Oriented datABase MOAB is a component for representing and evaluating mesh data - pkgver = 5.4.1 + pkgver = 5.3.0 pkgrel = 1 url = https://bitbucket.org/fathomteam/moab arch = x86_64 @@ -17,8 +17,8 @@ pkgbase = moab-git depends = python-numpy depends = blas depends = lapack - provides = moab-git - source = moab-git::git+https://bitbucket.org/fathomteam/moab.git - md5sums = SKIP + provides = moab + source = https://ftp.mcs.anl.gov/pub/fathom/moab-5.3.0.tar.gz + md5sums = 7ae3967f297f7d6fddf38de576e98758 -pkgname = moab-git +pkgname = moab @@ -1,6 +1,6 @@ # Maintainer: Luke Labrie-Cleary <luke dot cleary at copenhagenatomics dot com> -pkgname=moab-git -pkgver=5.4.1 +pkgname=moab +pkgver=5.3.0 pkgrel=1 pkgdesc="The Mesh-Oriented datABase MOAB is a component for representing and evaluating mesh data" arch=('x86_64') @@ -24,22 +24,20 @@ makedepends=( patch ) -source=("${pkgname}::git+${url}.git") -pkgver() { - cd $srcdir/${pkgname} - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' -} provides=("${pkgname%-pkgver}") - -md5sums=('SKIP') +source=('https://ftp.mcs.anl.gov/pub/fathom/moab-5.3.0.tar.gz') +md5sums=('7ae3967f297f7d6fddf38de576e98758') +prepare() { +cd "$pkgname-$pkgver" +patch --forward --input="../../moab-5.3.0-p.1.patch" +} build() { cd $srcdir mkdir build && cd build - cmake ../$pkgname -DENABLE_HDF5=ON \ + cmake ../$pkgname-$pkgver -DENABLE_HDF5=ON \ -DENABLE_NETCDF=ON \ -DENABLE_FORTRAN=OFF \ -DENABLE_BLASLAPACK=OFF \ - -DBUILD_SHARED_LIBS=ON \ -DENABLE_PYMOAB=ON \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_INSTALL_PREFIX=/opt/MOAB @@ -49,4 +47,7 @@ build() { package() { cd $srcdir/build make DESTDIR="$pkgdir/" install -}
\ No newline at end of file + cd pymoab + pip uninstall -y pymoab + python setup.py install --prefix=$pkgdir/opt/MOAB +} |