# $Id: PKGBUILD 1994 2009-09-07 13:40:56Z spupykin $ # Maintainer: Douglas Soares de Andrade # Contributor: Sven Salzwedel pkgname=glib2-docs pkgver=2.20.5 pkgrel=1 pkgdesc="Documentation for glib2 to be used in devhelp" arch=('any') conflicts=('gobject2-docs') replaces=('gobject2-docs') url="http://library.gnome.org/devel/glib/stable/" license=('custom') options=('docs') source=(ftp://ftp.gnome.org/pub/gnome/sources/glib/2.20/glib-${pkgver}.tar.bz2) md5sums=('4c178b91d82ef80a2da3c26b772569c0') build () { # Set destination dir _docdir=$pkgdir/usr/share/gtk-doc/html # Create destination dirs install -d $_docdir/glib install -d $_docdir/gobject install -d $_docdir/gio install -d ${startdir}/pkg/usr/share/licenses/${pkgname} # Install documentation to destination install -m 644 \ ${startdir}/src/glib-${pkgver}/docs/reference/glib/html/* \ $_docdir/glib install -m 644 \ ${startdir}/src/glib-${pkgver}/docs/reference/gobject/html/* \ $_docdir/gobject install -m 644 \ ${startdir}/src/glib-${pkgver}/docs/reference/gio/html/* \ $_docdir/gio #install license install -m 644 \ ${startdir}/src/glib-${pkgver}/docs/reference/COPYING \ ${startdir}/pkg/usr/share/licenses/${pkgname} # Ugly hack to fix links in documents cd $_docdir/glib ln -s . glib } # vim:set ts=2 sw=2 et: