summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMichel Zou2017-09-16 12:28:03 +0200
committerMichel Zou2017-09-16 12:28:03 +0200
commit7ca41a36d3febf6c6745386e1103ac0e20fb444f (patch)
tree0bbe7d067008ae6a4268288305bbd457a63e5721 /PKGBUILD
downloadaur-7ca41a36d3febf6c6745386e1103ac0e20fb444f.tar.gz
r2384
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..550e41051aa
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+
+pkgname='xdmf-git'
+pkgver=r2384.605db515
+pkgrel=1
+pkgdesc="eXtensible Data Model and Format"
+arch=('i686' 'x86_64')
+url="http://www.xdmf.org"
+license=('BSD')
+depends=('hdf5' 'libxml2' 'libtiff')
+makedepends=('cmake' 'boost')
+source=("git+git://xdmf.org/Xdmf.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/Xdmf"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd Xdmf
+}
+
+build() {
+ cd Xdmf
+ mkdir -p build && cd build
+ cmake \
+ -DBUILD_SHARED_LIBS=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ ..
+ make
+}
+
+package() {
+ cd Xdmf/build
+ make DESTDIR="$pkgdir/" install
+}