1 # Maintainer: Aljosha Papsch <papsch.al@googlemail.com>
6 pkgdesc="Developer documentation for Glib, GIO, GObject (accessible in devhelp)"
10 url="http://developer.gnome.org/glib/stable/"
11 source=(ftp://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-${pkgver}.tar.bz2)
12 sha256sums=('222f3055d6c413417b50901008c654865e5a311c73f0ae918b0a9978d1f9466f')
16 docsdir="${srcdir}/glib-${pkgver}/docs/reference"
18 # Create destination dirs
19 install -d ${pkgdir}/usr/share/devhelp/books/{glib,gio,gobject}
20 install -d ${pkgdir}/usr/share/doc/{glib,gio,gobject}
22 # Install documentation to destination
23 for doc in glib gio gobject
26 ${docsdir}/${doc}/html/* \
27 ${pkgdir}/usr/share/doc/${doc}
29 ${docsdir}/${doc}/html/${doc}.devhelp2 \
30 ${pkgdir}/usr/share/devhelp/books/${doc}
31 # Make it accessible in devhelp
32 sed -i "s/<book/<book base=\"\/usr\/share\/doc\/${doc}\"/g" ${pkgdir}/usr/share/devhelp/books/${doc}/${doc}.devhelp2
37 # vim:set ts=2 sw=2 et: