[arch-commits] Commit in leatherman/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu May 31 19:24:15 UTC 2018
Date: Thursday, May 31, 2018 @ 19:24:14
Author: felixonmars
Revision: 335294
archrelease: copy trunk to community-staging-x86_64
Added:
leatherman/repos/community-staging-x86_64/
leatherman/repos/community-staging-x86_64/PKGBUILD
(from rev 335293, leatherman/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: leatherman/repos/community-staging-x86_64/PKGBUILD (from rev 335293, leatherman/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-31 19:24:14 UTC (rev 335294)
@@ -0,0 +1,49 @@
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+
+pkgname=leatherman
+pkgver=1.4.0
+pkgrel=2
+pkgdesc="Collection of C++ and CMake utility libraries"
+arch=('x86_64')
+url="https://github.com/puppetlabs/leatherman"
+license=('APACHE')
+makedepends=('boost' 'cmake' 'rapidjson')
+checkdepends=('ruby')
+source=($pkgname-$pkgver.tar.gz::https://github.com/puppetlabs/leatherman/archive/$pkgver.tar.gz)
+md5sums=('7de85c496ca0024d60df873e7ef1a462')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ # Ruby 2.3 fix: replace rb_data_object_alloc symbol with rb_data_object_wrap
+ sed -i 's/rb_data_object_alloc/rb_data_object_wrap/g' \
+ $( grep -rl rb_data_object_alloc ruby )
+}
+
+build() {
+ cd $pkgname-$pkgver
+
+ # Do not treat warnings as errors
+ CXXFLAGS+=' -Wno-error'
+
+ # Work around hang in leatherman_test
+ CXXFLAGS+=' -fno-strict-overflow'
+
+ 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