-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
41 lines (31 loc) · 1023 Bytes
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Shi Liang <shilianggoo@gmail.com>
pkgname=python-caiman-git
pkgver=r1421.dd9c889
pkgrel=1
pkgdesc=" A Computational toolbox for large scale Calcium Imaging data Analysis and behavioral analysis. "
arch=('x86_64')
url="https://github.com/simonsfoundation/CaImAn.git"
license=('GPL')
groups=()
depends=('python' 'python-numpy' 'python-scipy' 'python-scikit-image' 'python-scikit-learn'
'ipython-ipyparallel' 'opencv' 'python-tifffile' 'python-peakutils')
makedepends=('git' 'cython')
checkdepends=()
optdepends=('python-cvxpy' 'python-spams-svn')
options=()
source=("$pkgname-$pkgver::git+${url}")
md5sums=('SKIP')
build() {
cd "$srcdir/$pkgname-$pkgver"
python setup.py build_ext
python setup.py build
}
pkgver() {
cd "$pkgname-$pkgver"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python setup.py install --root=${pkgdir} --prefix=/usr
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}