[arch-commits] Commit in cpp-hocon/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Sep 18 12:59:05 UTC 2018


    Date: Tuesday, September 18, 2018 @ 12:59:04
  Author: foutrelis
Revision: 383040

archrelease: copy trunk to community-staging-x86_64

Added:
  cpp-hocon/repos/community-staging-x86_64/
  cpp-hocon/repos/community-staging-x86_64/PKGBUILD
    (from rev 383039, cpp-hocon/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: cpp-hocon/repos/community-staging-x86_64/PKGBUILD (from rev 383039, cpp-hocon/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-09-18 12:59:04 UTC (rev 383040)
@@ -0,0 +1,37 @@
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+
+pkgname=cpp-hocon
+pkgver=0.1.6
+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')
+source=($pkgname-$pkgver.tar.gz::https://github.com/puppetlabs/cpp-hocon/archive/$pkgver.tar.gz)
+md5sums=('e76992d0346067756ca66c768f714a87')
+
+build() {
+  cd $pkgname-$pkgver
+
+  # Do not treat warnings as errors
+  CXXFLAGS+=' -Wno-error'
+
+  cmake -DCMAKE_INSTALL_PREFIX=/usr
+
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  make test
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  make install DESTDIR="$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list