mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Update to 3.0.0, migrate to GitHub source
This commit is contained in:
parent
bfd9e21e2f
commit
3bb37eaf7b
2 changed files with 28 additions and 52 deletions
18
.SRCINFO
18
.SRCINFO
|
|
@ -1,16 +1,14 @@
|
|||
pkgbase = nifticlib
|
||||
pkgdesc = Collection of i/o routines for the nifti1 neuroimage data format
|
||||
pkgver = 2.0.0
|
||||
pkgrel = 2
|
||||
url = https://nifti.nimh.nih.gov/
|
||||
arch = any
|
||||
pkgver = 3.0.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/NIFTI-Imaging/nifti_clib
|
||||
arch = x86_64
|
||||
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
|
||||
source = https://raw.githubusercontent.com/daducci/COMMIT/master/extras/CMake/FindNIFTI.cmake
|
||||
md5sums = 425a711f8f92fb1e1f088cbc55bea53a
|
||||
md5sums = 0bc60d46f415d9e622e16c9463cd1ef6
|
||||
makedepends = help2man
|
||||
depends = zlib
|
||||
source = https://github.com/NIFTI-Imaging/nifti_clib/archive/refs/tags/v3.0.0.tar.gz
|
||||
sha256sums = fe6cb1076974df01844f3f4dab1aa844953b3bc1d679126c652975158573d03d
|
||||
|
||||
pkgname = nifticlib
|
||||
|
||||
|
|
|
|||
62
PKGBUILD
62
PKGBUILD
|
|
@ -1,51 +1,29 @@
|
|||
# Maintainer of this PKBGUILD file: Martino Pilia <martino.pilia@gmail.com>
|
||||
# Maintainer: Christos Longros <chris.longros@gmail.com>
|
||||
# Contributor: Martino Pilia <martino.pilia@gmail.com>
|
||||
pkgname=nifticlib
|
||||
pkgver=2.0.0
|
||||
pkgrel=2
|
||||
pkgver=3.0.0
|
||||
pkgrel=1
|
||||
pkgdesc='Collection of i/o routines for the nifti1 neuroimage data format'
|
||||
arch=('any')
|
||||
url='https://nifti.nimh.nih.gov/'
|
||||
arch=('x86_64')
|
||||
url='https://github.com/NIFTI-Imaging/nifti_clib'
|
||||
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'
|
||||
'https://raw.githubusercontent.com/daducci/COMMIT/master/extras/CMake/FindNIFTI.cmake')
|
||||
md5sums=('425a711f8f92fb1e1f088cbc55bea53a'
|
||||
'0bc60d46f415d9e622e16c9463cd1ef6')
|
||||
|
||||
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
|
||||
}
|
||||
depends=('zlib')
|
||||
makedepends=('cmake' 'help2man')
|
||||
source=("https://github.com/NIFTI-Imaging/nifti_clib/archive/refs/tags/v${pkgver}.tar.gz")
|
||||
sha256sums=('fe6cb1076974df01844f3f4dab1aa844953b3bc1d679126c652975158573d03d')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver/build"
|
||||
make all
|
||||
cd "nifti_clib-$pkgver"
|
||||
cmake -B build \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_C_FLAGS="$CFLAGS -fPIC" \
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver/build"
|
||||
|
||||
make install
|
||||
|
||||
install -D -m644 \
|
||||
"$srcdir/FindNIFTI.cmake" \
|
||||
"$pkgdir/usr/lib/nifti/nifti-config.cmake"
|
||||
|
||||
install -D -m644 \
|
||||
"$srcdir/$pkgname-$pkgver/LICENSE" \
|
||||
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
cd "nifti_clib-$pkgver"
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue