updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / pynifti / PKGBUILD
bloba451438688690f8e5e8c16a227034ebdb919bbba
1 # -*- shell-script -*-
3 # Contributor: Micah C. <micahc@vt.edu>
5 pkgname=pynifti
6 arch=('i686' 'x86_64')
7 pkgver=20100223
8 pkgrel=2
9 pkgdesc="python library for reading nifti files"
10 source=()
11 url="http://niftilib.sourceforge.net/pynifti/"
12 license="MIT"
13 depends=('nifticlib' 'python-numpy')
14 makedepends=('python' 'git' 'make')
15 md5sums=()
17 _gitroot="git://git.debian.org/git/pkg-exppsy/pynifti.git"
18 _gitname="pynifti"
20 build() {
21   cd ${srcdir}
22   msg "Connecting to $pkgname GIT server...."
24   if [ -d ${srcdir}/$_gitname ] ; then
25           cd $_gitname && git pull origin
26           msg "The local files are updated."
27   else
28           git clone $_gitroot
29   fi
31   msg "GIT checkout done or server timeout"
33   cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
34   cd ${srcdir}/$_gitname-build
36   msg "Building..."
37   python setup.py build
38   msg "Installing..."
39   /usr/bin/env python setup.py install --prefix=${pkgdir}/usr