PKGBUILDs/boost/doc/PKGBUILD

27 lines
790 B
Bash

_pkgbase=boost
pkgname=boost-doc
pkgver=1.73.0
_boostver=${pkgver//./_}
pkgrel=1
pkgdesc='Free peer-reviewed portable C++ source libraries (HTML documentation)'
url='https://www.boost.org/'
arch=('x86_64')
license=('custom')
makedepends=()
source=(https://dl.bintray.com/boostorg/release/${pkgver}/source/boost_${_boostver}.tar.bz2)
sha256sums=('4eb3b8d442b426dc35346235c8733b5ae35ba431690e38c6a8263dce9fcbb402')
options=(!strip)
package() {
cd ${_pkgbase}_${_boostver}
local dest=$pkgdir/usr/share/$_pkgbase/doc
install -dm755 "$dest"
find \( \
-iname '*.htm' -o -iname '*.html' -o -iname '*.css' -o \
-iname '*.png' -o -iname '*.gif' -o -iname '*.jpg' -o -iname '*.js' \
\) -exec cp --target-directory="$dest" --parents --verbose {} +
}
# vim: ts=2 sw=2 et: