diff --git a/c++utilities/default/PKGBUILD b/c++utilities/default/PKGBUILD index eccffe15..7c3e0ed5 100644 --- a/c++utilities/default/PKGBUILD +++ b/c++utilities/default/PKGBUILD @@ -5,16 +5,17 @@ _reponame=cpp-utilities pkgname=c++utilities -pkgver=3.3.1 +pkgver=3.4.0 pkgrel=1 arch=('i686' 'x86_64') pkgdesc="Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities." license=('GPL') -depends=('gcc-libs') +depends=() +optdepends=('c++utilities-doc: API documentation') makedepends=('cmake') url="https://github.com/Martchus/${_reponame}" source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz") -sha256sums=('edc7e1135bbcab303fe46de36000ba2c6f5890f66fe1304f97588afe3f589f16') +sha256sums=('90434cc672f9c273dd5a338e8a4d5e545faeebd1777019573a85a26d5f2522c2') build() { cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}" diff --git a/c++utilities/doc/PKGBUILD b/c++utilities/doc/PKGBUILD new file mode 100644 index 00000000..c30638fe --- /dev/null +++ b/c++utilities/doc/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Martchus + +# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where +# you also find the URL of a binary repository. + +_reponame=cpp-utilities +pkgname=c++utilities-doc +pkgver=3.4.0 +pkgrel=1 +arch=('any') +pkgdesc="Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities (API documentation)." +license=('GPL') +makedepends=('cmake' 'doxygen' 'dia' 'graphviz') +url="https://github.com/Martchus/${_reponame}" +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz") +sha256sums=('90434cc672f9c273dd5a338e8a4d5e545faeebd1777019573a85a26d5f2522c2') + +build() { + cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}" + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" + make c++utilities_apidoc +} + +package() { + cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}" + make DESTDIR="${pkgdir}" install-api-doc +} diff --git a/c++utilities/git/PKGBUILD b/c++utilities/git/PKGBUILD index 60a9fa3d..4b48cf8a 100644 --- a/c++utilities/git/PKGBUILD +++ b/c++utilities/git/PKGBUILD @@ -11,7 +11,7 @@ pkgrel=1 arch=('i686' 'x86_64') pkgdesc="Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities (git version)." license=('GPL') -depends=('gcc-libs') +depends=() makedepends=('cmake' 'git') provides=('c++utilities') conflicts=('c++utilities') diff --git a/c++utilities/mingw-w64/PKGBUILD b/c++utilities/mingw-w64/PKGBUILD index 847b0567..83919e0b 100644 --- a/c++utilities/mingw-w64/PKGBUILD +++ b/c++utilities/mingw-w64/PKGBUILD @@ -6,16 +6,17 @@ _name=c++utilities _reponame=cpp-utilities pkgname=mingw-w64-c++utilities -pkgver=3.3.1 +pkgver=3.4.0 pkgrel=1 arch=('any') pkgdesc="Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities (mingw-w64)." license=('GPL') depends=('mingw-w64-crt') +optdepends=('c++utilities-doc: API documentation') makedepends=('mingw-w64-gcc' 'mingw-w64-cmake') url="https://github.com/Martchus/${_reponame}" source=("c++utilities-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz") -sha256sums=('edc7e1135bbcab303fe46de36000ba2c6f5890f66fe1304f97588afe3f589f16') +sha256sums=('90434cc672f9c273dd5a338e8a4d5e545faeebd1777019573a85a26d5f2522c2') options=(!buildflags staticlibs !strip !emptydirs) _architectures="i686-w64-mingw32 x86_64-w64-mingw32"