[arch-commits] Commit in cpp-hocon/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Jun 3 01:46:18 UTC 2018
Date: Sunday, June 3, 2018 @ 01:46:17
Author: foutrelis
Revision: 338522
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 338521, cpp-hocon/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: cpp-hocon/repos/community-staging-x86_64/PKGBUILD (from rev 338521, cpp-hocon/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-06-03 01:46:17 UTC (rev 338522)
@@ -0,0 +1,37 @@
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+
+pkgname=cpp-hocon
+pkgver=0.1.6
+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)
+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