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

Evangelos Foutras foutrelis at archlinux.org
Tue Jan 15 07:44:37 UTC 2019


    Date: Tuesday, January 15, 2019 @ 07:44:36
  Author: foutrelis
Revision: 423168

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 423167, cpp-hocon/trunk/PKGBUILD)

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

Copied: cpp-hocon/repos/community-staging-x86_64/PKGBUILD (from rev 423167, cpp-hocon/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-01-15 07:44:36 UTC (rev 423168)
@@ -0,0 +1,37 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+
+pkgname=cpp-hocon
+pkgver=0.2.1
+pkgrel=2
+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")
+sha512sums=('fcc377da7923b77436a6f2787d5b8b1b573f239de4f059c4a5949cbb1a755fd12024b9155f5e44cf60141181942f3e9a2a8fad07ee0b1d516fe2cd4a88d4ac8b')
+
+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