[arch-commits] Commit in leatherman/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Jan 15 07:23:09 UTC 2019
Date: Tuesday, January 15, 2019 @ 07:23:09
Author: foutrelis
Revision: 423146
archrelease: copy trunk to community-staging-x86_64
Added:
leatherman/repos/community-staging-x86_64/
leatherman/repos/community-staging-x86_64/PKGBUILD
(from rev 423145, leatherman/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: leatherman/repos/community-staging-x86_64/PKGBUILD (from rev 423145, leatherman/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-01-15 07:23:09 UTC (rev 423146)
@@ -0,0 +1,50 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Contributor: Jonathan Steel <jsteel at archlinux.org>
+
+pkgname=leatherman
+pkgver=1.5.3
+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")
+sha512sums=('e2616a42c6879755f338f9f0291bf28c7465d51caa3326be521ae3e0d5d79e82099c8720dc19223ad9112cde81c4579faf28a2b467f802baefc99dd59212b818')
+
+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