diff options
author | Michel Zou | 2017-09-16 12:28:03 +0200 |
---|---|---|
committer | Michel Zou | 2017-09-16 12:28:03 +0200 |
commit | 7ca41a36d3febf6c6745386e1103ac0e20fb444f (patch) | |
tree | 0bbe7d067008ae6a4268288305bbd457a63e5721 | |
download | aur-7ca41a36d3febf6c6745386e1103ac0e20fb444f.tar.gz |
r2384
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9fccaed6c95b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Sat Sep 16 10:28:03 UTC 2017 +pkgbase = xdmf-git + pkgdesc = eXtensible Data Model and Format + pkgver = r2384.605db515 + pkgrel = 1 + url = http://www.xdmf.org + arch = i686 + arch = x86_64 + license = BSD + makedepends = cmake + makedepends = boost + depends = hdf5 + depends = libxml2 + depends = libtiff + source = git+git://xdmf.org/Xdmf.git + sha256sums = SKIP + +pkgname = xdmf-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..550e41051aa2 --- /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 +} |