summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 51394f41b7e..1f806cbb80b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=mpsolve-git
pkgver=3.1.6
-pkgrel=2
+pkgrel=3
pkgdesc="Multiprecision rootfinder for complex roots of univariate polynomials"
url="http://numpi.dm.unipi.it/software/mpsolve"
arch=('i686' 'x86_64')
@@ -25,22 +25,26 @@ pkgver () {
}
build () {
- cd ${srcdir}/MPSolve
+ cd "${srcdir}/MPSolve"
./autogen.sh
./configure --prefix=/usr --disable-debug-build
make
}
check () {
- cd ${srcdir}/MPSolve
+ cd "${srcdir}/MPSolve"
make check
}
package () {
- cd ${srcdir}/MPSolve
+ cd "${srcdir}/MPSolve"
make DESTDIR="${pkgdir}" install
if [ -f ${pkgdir}/usr/share/octave/octave_packages ]; then
sed -e "s/$(echo "${pkgdir}" | sed -e 's/[\/&]/\\&/g')//g" -i ${pkgdir}/usr/share/octave/octave_packages
fi
- install -D -m644 -t "${pkgdir}/usr/share/doc/${pkgname}" doc/html/*
+
+ if [ -e doc/html ]; then
+ cd doc/html
+ find . -type f -exec install -D -m644 "{}" "${pkgdir}/usr/share/doc/${pkgname}/{}" \;
+ fi
}