summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4bafabeca65c6fefa89ba7a3f0476037568cfd1f (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
_pkgname="kst"
pkgname="${_pkgname}-git"
pkgrel=1
pkgver=2.0.8r3478.acc53551
pkgdesc="Fast real-time large-dataset viewing and plotting tool for KDE"
arch=('i686' 'x86_64')
url="http://kst-plot.kde.org"
license=('GPL')
depends=('hdf5' 'gsl' 'qt5-base' 'qt5-svg' 'muparser' 'cfitsio')
optdepends=(
  'getdata: provides support for files in the Dirfile format'
  'libmatio: provides support for Matlab binary files'
)
makedepends=('cmake')
#install=$pkgname.install
source=("git+https://invent.kde.org/graphics/kst-plot.git"
        "0001-Fixed-HDF5-patch-for-archlinux-users.patch"
        "hdf5_cpp.patch")
md5sums=('SKIP'
         '4913f0bdccfa8adba09f6b6bf5bb2d11'
         'b2d29a046b2429a05b9b073f75b47147')
provides=("${_pkgname}")
pkgver() {
  cd "${srcdir}/${_pkgname}-plot"
  printf "2.0.8r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
conflicts=("${_pkgname}")
build() {
  cd "${srcdir}/${_pkgname}-plot"
  cp -r ./cmake/pyKst/* ./pyKst/
  cmake ./ \
  -Dkst_release=2 \
  -Dkst_version_string=2.0.8 \
  -Dkst_install_prefix=/usr \
  -Dkst_qt5=ON \
  -Dkst_merge_files=ON
}
prepare(){
  cd "${srcdir}/${_pkgname}-plot"
  patch -Np1 -i ../0001-Fixed-HDF5-patch-for-archlinux-users.patch
  patch -Np1 -i ../hdf5_cpp.patch
}
package() {
  cd "${srcdir}/${_pkgname}-plot"
  make -j$(nproc) DESTDIR="${pkgdir}" install
  install -D -m644 "COPYING" "$pkgdir/usr/share/licenses/${_pkgname}-plot/LICENSE"
}