summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLucas Heitzmann Gabrielli2018-02-08 17:06:37 -0200
committerLucas Heitzmann Gabrielli2018-02-08 17:06:37 -0200
commit32c4b17533c3fb267f8629fa3d571bf9b6d3c848 (patch)
tree102497843731cc70c64a028c698876e802c0da1a /PKGBUILD
parenta04dd54f3ba77654e7d371fab14a89803ba3ac29 (diff)
downloadaur-h5utils-git.tar.gz
Cleanup
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 9 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 78af6cf3de9..f09636712cb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Lucas H. Gabrielli <heitzmann@gmail.com>
pkgname=h5utils-git
-pkgver=1.13.r7.g830b7f9
+pkgver=1.13.r9.ge17b135
pkgrel=1
pkgdesc='A set of utilities for visualization and conversion of scientific data in the free, portable HDF5 format'
arch=('i686' 'x86_64')
@@ -15,26 +15,18 @@ source=('git+https://github.com/stevengj/h5utils.git')
sha256sums=('SKIP')
pkgver() {
- cd "${srcdir}/h5utils"
- git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
+ cd "${srcdir}/h5utils"
+ git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
- cd "${srcdir}/h5utils"
-
- #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
-
- ./autogen.sh --prefix=/usr
- make
-
+ cd "${srcdir}/h5utils"
+ ./autogen.sh --prefix=/usr
+ make
}
package() {
- cd "${srcdir}/h5utils"
- make DESTDIR="${pkgdir}" install
- install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+ cd "${srcdir}/h5utils"
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}