summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAlexander Kobel2019-03-20 13:05:52 +0100
committerAlexander Kobel2019-03-20 13:05:52 +0100
commit520699d607979872ab738e7054e8c84d278dd71f (patch)
treea692d2aa294d1fc78b0ad03b8a8b9e6d6c52f4ad /PKGBUILD
parentdc71a4dccf1a747b18807b42db991bd8d9907b02 (diff)
downloadaur-mpsolve-git.tar.gz
fix documentation installation
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
}