diff options
author | McNoggins | 2015-06-11 21:44:51 -0400 |
---|---|---|
committer | McNoggins | 2015-06-11 21:44:51 -0400 |
commit | 16e6a4de301994db82b0ef577ee345b6d6a496f1 (patch) | |
tree | d5b1e15194ab27ece0f5fbeca65aa4efd3bccb65 | |
download | aur-16e6a4de301994db82b0ef577ee345b6d6a496f1.tar.gz |
Initial aur4 import
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f1c487489163 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = h5utils + pkgdesc = Software for visualization/conversion of scientific data in the HDF5 format + pkgver = 1.12.1 + pkgrel = 7 + url = http://ab-initio.mit.edu/wiki/index.php/H5utils + arch = i686 + arch = x86_64 + license = MIT + license = GPL + depends = hdf5 + depends = libpng + optdepends = libmatheval: support symbolic expressions + source = http://ab-initio.mit.edu/h5utils/h5utils-1.12.1.tar.gz + sha256sums = 7290290ca5d5d4451d757a70c86baaa70d23a28edb09c951b6b77c22b924a38d + +pkgname = h5utils + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..43fed702ab74 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Contributor: Anton Bazhenov <anton.bazhenov at gmail> +# Maintainer: McNoggins <gagnon88 at gmail> +pkgname=h5utils +pkgver=1.12.1 +pkgrel=7 +pkgdesc="Software for visualization/conversion of scientific data in the HDF5 format" +arch=('i686' 'x86_64') +url="http://ab-initio.mit.edu/wiki/index.php/H5utils" +license=('MIT' 'GPL') +depends=('hdf5' 'libpng') +optdepends=('libmatheval: support symbolic expressions') +source=(http://ab-initio.mit.edu/${pkgname}/${pkgname}-${pkgver}.tar.gz) +sha256sums=('7290290ca5d5d4451d757a70c86baaa70d23a28edb09c951b6b77c22b924a38d') + + +build() { + cd "${srcdir}"/${pkgname}-${pkgver} + + #Fix for libpng upgrade problem adapted from https://gist.github.com/1626861 + mv writepng.c tmpfile1 + sed 's/png_ptr->jmpbuf/png_jmpbuf (png_ptr)/g' tmpfile1 > writepng.c + mv writepng.c tmpfile2 + sed 's/free(info_ptr->palette)\;/\/\* free(info_ptr->palette); \*\//g' tmpfile2 > writepng.c + + ./configure --prefix=/usr + make + +} + +package() { + cd "${srcdir}"/${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" +} |