Date: Wednesday, August 16, 2017 @ 16:35:25 Author: zorun Revision: 251354
upgpkg: kea 1.2.0-5 Build dev doc, package it separately because it's huge Modified: kea/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-08-16 16:34:57 UTC (rev 251353) +++ PKGBUILD 2017-08-16 16:35:25 UTC (rev 251354) @@ -1,20 +1,18 @@ # Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org> # Contributor: nfnty -pkgname='kea' +pkgbase='kea' +pkgname=('kea' 'kea-devel-docs') pkgver=1.2.0 -pkgrel=4 +pkgrel=5 pkgdesc='High-performance, extensible DHCP server engine from ISC, supporting both DHCPv4 and DHCPv6' arch=('i686' 'x86_64') url='http://kea.isc.org' license=('custom:MPL2.0') depends=('botan' 'boost-libs' 'log4cplus' 'libmariadbclient' 'postgresql-libs') -optdepends=('mariadb: Lease information database' - 'postgresql: Lease information database' - 'python: To use kea-shell') makedepends=('boost' 'postgresql' # Needed for some headers 'python' # kea-shell - 'libxslt' 'docbook-xsl' 'elinks') # Doc + 'libxslt' 'docbook-xsl' 'elinks' 'doxygen' 'graphviz') # Doc # Checks are disabled for now #checkdepends=('gtest' 'postgresql' 'mariadb' 'python' 'procps-ng') # procps-ng needed for 'pgrep' backup=('etc/kea/kea.conf' 'etc/kea/kea-ca.conf' 'etc/kea/keactrl.conf') @@ -59,6 +57,7 @@ --enable-shell \ --enable-generate-docs make + make -C doc devel } check() { @@ -67,8 +66,13 @@ #make check } -package() { - cd "${srcdir}/${pkgname}-${pkgver}" +package_kea() { + optdepends=('mariadb: Lease information database' + 'postgresql: Lease information database' + 'python: To use kea-shell' + 'kea-devel-docs: development documentation') + + cd "${srcdir}/kea-${pkgver}" make DESTDIR="${pkgdir}" install # Handle /var/run -> /run symlink rmdir "${pkgdir}"/var/run/kea @@ -80,3 +84,15 @@ # License, see https://bugs.archlinux.org/task/31547 install -Dm644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } + +package_kea-devel-docs() { + pkgdesc="Development documentation for kea" + depends=() + backup=() + + cd "${srcdir}/kea-${pkgver}" + install -d "${pkgdir}/usr/share/doc/kea/" + cp -r doc/html "${pkgdir}/usr/share/doc/kea/devel" + # License, see https://bugs.archlinux.org/task/31547 + install -Dm644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +}