Date: Tuesday, April 25, 2017 @ 14:31:10 Author: spupykin Revision: 225305
upgpkg: poco 1.7.8-2 upd Modified: poco/trunk/PKGBUILD ----------+ PKGBUILD | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-04-25 14:31:05 UTC (rev 225304) +++ PKGBUILD 2017-04-25 14:31:10 UTC (rev 225305) @@ -7,31 +7,29 @@ pkgname=poco pkgver=1.7.8 -pkgrel=1 +pkgrel=2 pkgdesc="C++ class libraries for network-centric, portable applications, complete edition with debug libraries" arch=('i686' 'x86_64') url="http://www.pocoproject.org/" license=('custom:boost') depends=('libmariadbclient' 'openssl' 'unixodbc') -makedepends=('chrpath') +makedepends=('cmake') source=("http://pocoproject.org/releases/poco-${pkgver%p?}/poco-${pkgver}-all.tar.bz2") sha256sums=('3177a0146e7fc78b4deb42b2e10fcbbf9e6594a68c410d6d59837d5b06fdf46f') -build() -{ +build() { cd "${srcdir}/poco-${pkgver}-all" - ./configure --prefix=/usr --no-samples --no-tests --unbundled - make ODBCLIBDIR="/usr/lib" + mkdir -p build + cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + .. + make } -package() -{ - cd "${srcdir}/poco-${pkgver}-all" - make ODBCLIBDIR="/usr/lib" DESTDIR="${pkgdir}" install - install -Dm644 'LICENSE' "${pkgdir}/usr/share/licenses/poco/LICENSE" - - chrpath -d "${pkgdir}/usr/bin/cpspc" - chrpath -d "${pkgdir}/usr/bin/cpspcd" - chrpath -d "${pkgdir}/usr/bin/f2cpspd" - chrpath -d "${pkgdir}/usr/bin/f2cpsp" +package() { + cd "${srcdir}/poco-${pkgver}-all"/build + make DESTDIR="${pkgdir}" install + install -Dm644 '../LICENSE' "${pkgdir}/usr/share/licenses/poco/LICENSE" }