blob: c87672e9348dc381e41b8ee89c4269fb0912d9a6 (
plain)
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
41
|
# Maintainer: Fabio Heday <fheday@gmail.com>
pkgname=splinterpy-git
pkgver=v3.0.r9.gbce2916
pkgrel=1
epoch=1
license=('APACHE')
pkgdesc="Library for multivariate function approximation with splines (B-spline, P-spline, and more) with interfaces to C++, C, Python and MATLAB - Git build"
arch=(i686 x86_64)
url="https://github.com/bgrimstad/splinter/"
makedepends=(cmake boost git clang)
source=('git+https://github.com/bgrimstad/splinter.git')
sha512sums=('SKIP')
options=(!emptydirs)
pkgver() {
cd splinter
git describe --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
build() {
export CXX=$(which clang++)
cd splinter
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX="${pkgdir}"/ -DLIBRARY_INSTALL_DIRECTORY="${pkgdir}"/usr/lib/
make -j
cd ../python
python setup.py build
# ./scripts/build_release.sh
}
package() {
cd splinter/build
make install
cd ../python
python setup.py install --root="$pkgdir"/ --optimize=1 --prefix=/usr/
#--skip-build
# make DESTDIR="${pkgdir}/" install
}
|