summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dbef161ef288f7a3c818c101d378bdce1996904f (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
# $Id: PKGBUILD 173345 2016-05-02 12:36:00Z ronald $
# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
# Contributor: Stefan Husmann <stefan-husmann at t-online dot de>
# Contributor: Alexander Rødseth <rodseth at gmail dot com>
# Contributor: William Rea <sillywilly at gmail dot com>

_pkgname=libmatio
pkgname=libmatio-git
pkgver=1.5.11.38.g9bf790d
pkgrel=1
pkgdesc='C library with a fortran 90/95 module interface for reading/writing MATLAB MAT-files'
arch=('x86_64' 'i686')
license=('custom:BSD')
url='https://github.com/tbeu/matio'
depends=('zlib' 'hdf5')
makedepends=('git')
options=('!libtool' '!emptydirs')
source=("${_pkgname}::git+${url}.git")
md5sums=('SKIP')
provides=("${_pkgname}")
conflicts=("${_pkgname}")

pkgver() {
  cd "${_pkgname}"
  git describe --tags | sed 's/^v//' | sed 's/-/./g'
}

build() {
  cd "${_pkgname}"
  ./autogen.sh
  ./configure --prefix=/usr --enable-shared --with-hdf5
  make

  cd documentation
  find . -name "*.texi" -exec makeinfo {} \;
}

package() {
  cd "${_pkgname}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}