From d08fbbfe70544688fe7cf098989ef84b53ba47d5 Mon Sep 17 00:00:00 2001 From: m-pilia Date: Sun, 29 Oct 2017 12:32:43 +0100 Subject: [PATCH] submission --- .SRCINFO | 14 ++++++++++++++ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..e8ea6292a03e9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = nifticlib + pkgdesc = Collection of i/o routines for the nifti1 neuroimage data format + pkgver = 2.0.0 + pkgrel = 1 + url = https://nifti.nimh.nih.gov/ + arch = any + license = custom:public domain + makedepends = cmake + provides = nifticlib + source = http://downloads.sourceforge.net/project/niftilib/nifticlib/nifticlib_2_0_0/nifticlib-2.0.0.tar.gz + md5sums = 425a711f8f92fb1e1f088cbc55bea53a + +pkgname = nifticlib + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..cd787e928f531 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer of this PKBGUILD file: Martino Pilia +pkgname=nifticlib +pkgver=2.0.0 +pkgrel=1 +pkgdesc='Collection of i/o routines for the nifti1 neuroimage data format' +arch=('any') +url='https://nifti.nimh.nih.gov/' +license=('custom:public domain') +depends=() +makedepends=('cmake') +optdepends=() +provides=('nifticlib') +source=('http://downloads.sourceforge.net/project/niftilib/nifticlib/nifticlib_2_0_0/nifticlib-2.0.0.tar.gz') +md5sums=('425a711f8f92fb1e1f088cbc55bea53a') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + # make it position independent + sed -i \ + '13iSET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")' \ + CMakeLists.txt + + mkdir build || : + cd build + + cmake .. \ + -DCMAKE_INSTALL_PREFIX:PATH="$pkgdir/usr" \ + -DCMAKE_BUILD_TYPE:STRING=Release +} + +build() { + cd "$srcdir/$pkgname-$pkgver/build" + make all +} + +package() { + cd "$srcdir/$pkgname-$pkgver/build" + + make install + + install -D -m644 \ + "$srcdir/$pkgname-$pkgver/LICENSE" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}