[arch-commits] Commit in cpp-hocon/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Wed Aug 14 08:39:30 UTC 2019


    Date: Wednesday, August 14, 2019 @ 08:39:30
  Author: anthraxx
Revision: 499183

upgpkg: cpp-hocon 0.2.1-3 (build shared libs, provide lib soname)

Modified:
  cpp-hocon/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-14 08:33:07 UTC (rev 499182)
+++ PKGBUILD	2019-08-14 08:39:30 UTC (rev 499183)
@@ -1,13 +1,16 @@
 # Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
 
 pkgname=cpp-hocon
 pkgver=0.2.1
-pkgrel=2
+pkgrel=3
 pkgdesc="C++ port of the Typesafe Config library"
 arch=('x86_64')
 url="https://github.com/puppetlabs/cpp-hocon"
 license=('APACHE')
-makedepends=('boost' 'cmake' 'leatherman')
+depends=('boost-libs' 'gcc-libs' 'glibc' 'leatherman' 'leatherman_util.so' 'leatherman_locale.so')
+makedepends=('boost' 'cmake' 'leatherman' 'rapidjson')
+provides=('libcpp-hocon.so')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/puppetlabs/cpp-hocon/archive/$pkgver.tar.gz")
 sha512sums=('fcc377da7923b77436a6f2787d5b8b1b573f239de4f059c4a5949cbb1a755fd12024b9155f5e44cf60141181942f3e9a2a8fad07ee0b1d516fe2cd4a88d4ac8b')
 
@@ -14,16 +17,20 @@
 build() {
   cd "$pkgname-$pkgver"
 
-  # Do not treat warnings as errors
-  CXXFLAGS+=' -Wno-error'
+  mkdir -p build
+  cd build
 
-  cmake -DCMAKE_INSTALL_PREFIX=/usr
-
+  cmake \
+    -DCMAKE_BUILD_TYPE=None \
+    -DENABLE_CXX_WERROR=OFF \
+    -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+    -DBUILD_SHARED_LIBS=ON \
+    ..
   make
 }
 
 check() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"/build
 
   make test
 }
@@ -31,7 +38,9 @@
 package() {
   cd "$pkgname-$pkgver"
 
-  make install DESTDIR="$pkgdir"
+  make -C build install DESTDIR="$pkgdir"
 
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list