# Maintainer: Sergej Pupykin # Maintainer: Ido Rosen # Contributor: Ross Whitfield # Contributor: Mateusz Paluszkiewcz # Contributor: Christopher Reimer pkgname=poco pkgver=1.11.0 _pkgver=${pkgver/_/} pkgrel=1 pkgdesc="C++ class libraries for network-centric, portable applications, complete edition with debug libraries" arch=('x86_64') url="http://www.pocoproject.org/" license=('custom:boost') depends=('mariadb-libs' 'openssl' 'unixodbc') makedepends=('cmake' 'ninja') source=("https://pocoproject.org/releases/poco-${_pkgver%p?}/poco-${_pkgver}-all.tar.bz2" "0001-mariadb-replace-mysql.diff") sha256sums=('b08cf73926fa92a6c8f3c712e8fb217d5d0c2fa5248ec0281f251fe1e925d2f1' '83628e398cd641d3b2a2645318c5c4a8130366673822936907446d792d3ef737') prepare() { patch -p1 -d "poco-${_pkgver}-all" < 0001-mariadb-replace-mysql.diff } build() { cd "poco-${_pkgver}-all" cmake \ -GNinja \ -Bbuild \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release ninja -C build } package() { cd "poco-${_pkgver}-all" DESTDIR="${pkgdir}" ninja -C build install install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/poco/LICENSE" }