summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 563e056837f685f81c24f3fb2ec85610dc703ec9 (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
# Maintainer: Luis Sarmiento < lgsarmientop-ala-unal.edu.co >

pkgname=mfile
_pkgname=libmfile
_user=jmayer
pkgver=r57.a18a066
pkgrel=1
pkgdesc="System independent reading and writing of n-dimensional spectra"
url="https://gitlab.ikp.uni-koeln.de/${_user}/${_pkgname}"
arch=('x86_64')
license=('BSD')
makedepends=('git')
depends=('glibc')
options=('!emptydirs')

source=(${_pkgname}::git+https://gitlab.ikp.uni-koeln.de/${_user}/${_pkgname}.git)
sha256sums=('SKIP')

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

build() {
  cd ${srcdir}
  rm -rf build
  mkdir build
  cd build
  cmake ${srcdir}/${_pkgname}
  make
  make test ARGS="-V"
}

package() {
  cd ${srcdir}/build
  make DESTDIR=${pkgdir} install

  install -Dm644 ${srcdir}/${_pkgname}/license.md "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}