Skip to content

Instantly share code, notes, and snippets.

Created May 27, 2011 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/995139 to your computer and use it in GitHub Desktop.
Save anonymous/995139 to your computer and use it in GitHub Desktop.
# $Id: PKGBUILD 82186 2010-06-09 09:01:12Z jgc $
# Contributor: Leonid Isaev <lisaev@indiana.edu>
pkgname=lapack-manpages
pkgver=3.2.0
pkgrel=1
url="http://www.netlib.org/lapack/"
pkgdesc="LAPACK and BLAS manual pages"
arch=('any')
provides=('lapack-manpages')
makedepends=('gzip')
depends=('man-db')
license=('custom')
source=(http://www.netlib.org/lapack/manpages.tgz)
md5sums=('0f88dbcf41bb53ef98890ee834da913e')
build() {
# We don't have manl, so let's install into man3, according to FHS
man_dir="${srcdir}/manpages"
install -m755 -d "${pkgdir}/usr/share/man/man7"
echo "Installing LAPACK manpages"
cd "${man_dir}/man/manl"
gzip -9 *.l
for i in $(ls *.l.gz)
do
j=$(echo $i | sed 's/\.l/\.7/')
install -m644 $i "${pkgdir}/usr/share/man/man7/$j"
done
echo "Installing BLAS manpages"
cd "${man_dir}/blas/man/manl"
gzip -9 *.l
for i in $(ls *.l.gz)
do
j=$(echo $i | sed 's/\.l/\.7/')
install -m644 $i "${pkgdir}/usr/share/man/man7/$j"
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment