updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / cairo-docs / PKGBUILD
blobb4c3ffc27f3037de1567a14a97a1b7006ed084fe
1 # Maintainer: Aljosha Papsch <papsch.al@googlemail.com>
3 pkgname=cairo-docs
4 pkgver=1.10.2
5 pkgrel=1
6 pkgdesc="Developer documentation for Cairo"
7 arch=("any")
8 depends=()
9 license=('LGPL')
10 url="http://developer.gnome.org/cairo/stable/"
11 source=(http://cairographics.org/releases/cairo-${pkgver}.tar.gz)
12 sha1sums=('ccce5ae03f99c505db97c286a0c9a90a926d3c6e')
13 _pkg=cairo
14 _docsdir="${srcdir}/${_pkg}-${pkgver}/doc/public"
16 build() {
17   /bin/true
20 package() {
21   install -d ${pkgdir}/usr/share/doc/${_pkg} \
22     ${pkgdir}/usr/share/devhelp/books/${_pkg}
24   # documentation to docs dir
25   install -D -m 644 \
26     ${_docsdir}/html/* \
27     ${pkgdir}/usr/share/doc/${_pkg}
29   # make it accessible in devhelp
30   install -D -m 644 \
31     ${_docsdir}/html/${_pkg}.devhelp2 \
32     ${pkgdir}/usr/share/devhelp/books/${_pkg}
34   sed -i "s/<book/<book base=\"\/usr\/share\/doc\/${_pkg}\"/g" ${pkgdir}/usr/share/devhelp/books/${_pkg}/${_pkg}.devhelp2
37 # vim:set ts=2 sw=2 et: