summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 73cbf0e25b2a8d840050c66f719817ede7706baf (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
44
45
46
47
48
49
50
51
52
53
54
55
56
# Contributor: Alexandr Parkhomenko <it@52tour.ru>
# 33M    http://getdp.info/bin/Linux/getdp-3.3.0-Linux64c.tgz 
# 2.7M   this

pkgname=getdp
pkgver=3.3.0
pkgrel=1
pkgdesc='A General Environment for the Treatment of Discrete Problems'
arch=('x86_64')
url='http://getdp.info/'
license=('LGPL3')

depends=('python'
'gmsh'
)
 
makedepends=('gcc' 'gcc-libs' 'cmake' 'git'
'arpack' 'openblas' 'lapack' 'swig'
'flex' 'bison'
'texinfo'
# gcc-fortran Kernel PeWe SparskitZ
)

# source=("$pkgname::git+https://gitlab.onelab.info/$pkgname/$pkgname")
source=("http://$pkgname.info/src/$pkgname-$pkgver-source.tgz")
sha256sums=('SKIP')

prepare() {
  cd "${srcdir}/$pkgname-$pkgver-source"
  sed -i '1i #include <cstring>' Kernel/Operation_Broadcast.cpp
}

#pkgver() {
#  cd "${srcdir}/$pkgname-$pkgver-source"
#  ( set -o pipefail
#    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
#    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
#  )
#}

build() {
    cd "${startdir}"
    if [ ! -d "build/$pkgname-$pkgver" ]; then
        mkdir -p build/$pkgname-$pkgver;
    fi
    cd build/$pkgname-$pkgver
    cmake "${srcdir}/$pkgname-$pkgver-source" \
      -DCMAKE_INSTALL_PREFIX="/usr" 
    make
}

package() {
    cd "${startdir}/build/$pkgname-$pkgver"
    make DESTDIR="${pkgdir}" install
}