diff options
author | Alexander Kobel | 2019-03-20 13:05:39 +0100 |
---|---|---|
committer | Alexander Kobel | 2019-03-20 13:05:39 +0100 |
commit | 267e6b4d58fc9946495b135c643d3684e5dddf8e (patch) | |
tree | 140ed90ada2b17483fb78fbf8e538ec27fbe1635 | |
parent | 3dca1f431ce3ae3830166c3f0a6676de71c01399 (diff) | |
download | aur-267e6b4d58fc9946495b135c643d3684e5dddf8e.tar.gz |
fix documentation installation
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 17 |
2 files changed, 11 insertions, 8 deletions
@@ -1,7 +1,7 @@ pkgbase = mpsolve pkgdesc = Multiprecision rootfinder for complex roots of univariate polynomials pkgver = 3.1.7 - pkgrel = 2 + pkgrel = 3 url = http://numpi.dm.unipi.it/software/mpsolve arch = i686 arch = x86_64 @@ -2,7 +2,7 @@ pkgname=mpsolve pkgver=3.1.7 -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') @@ -19,23 +19,26 @@ source=("http://numpi.dm.unipi.it/_media/software/${pkgname}/${pkgname}-${pkgver sha256sums=('3e3d750ad3acc1f274015d0c418d3d6fadf5ed3aa1fc57680dd38b994d2e8305') build () { - cd ${srcdir}/${pkgname}-${pkgver} + cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr --disable-debug make } check () { - cd ${srcdir}/${pkgname}-${pkgver} + cd "${srcdir}/${pkgname}-${pkgver}" make check } package () { - cd ${srcdir}/${pkgname}-${pkgver} + cd "${srcdir}/${pkgname}-${pkgver}" 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 + 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 } |