mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
submission
This commit is contained in:
commit
d08fbbfe70
2 changed files with 59 additions and 0 deletions
14
.SRCINFO
Normal file
14
.SRCINFO
Normal file
|
|
@ -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
|
||||
|
||||
45
PKGBUILD
Normal file
45
PKGBUILD
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
# Maintainer of this PKBGUILD file: Martino Pilia <martino.pilia@gmail.com>
|
||||
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"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue