summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1c9ea4385a2800f7fdff78b37514d8f87d8b4a56 (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: Taomach <adresatt@gmail.com>
pkgname=python-stfio-git
_realname=stfio
pkgver=v0.13.12macports.r713.g993d3f66
pkgrel=1
pkgdesc="Python module for reading and writing data in common electrophysiology formats from Stimfit project."
arch=('i686' 'x86_64' 'armv7h')
url="http://www.stimfit.org"
license=('GPLv2')
depends=('hdf5' 'python-numpy' 'swig')
makedepends=('python' 'git' 'boost')

source=('stfio::git+https://github.com/neurodroid/stimfit.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_realname"
  git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$_realname"

  msg "Starting make..."
  sh ./autogen.sh
  mkdir -p build/module
  cd build/module
  ../../configure --enable-module --prefix=/usr
  
  msg "Starting make..."
  make
}

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

# vim:set ts=2 sw=2 et: