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

Evangelos Foutras foutrelis at archlinux.org
Tue Sep 18 12:57:24 UTC 2018


    Date: Tuesday, September 18, 2018 @ 12:57:24
  Author: foutrelis
Revision: 383036

archrelease: copy trunk to community-staging-x86_64

Added:
  leatherman/repos/community-staging-x86_64/
  leatherman/repos/community-staging-x86_64/PKGBUILD
    (from rev 383035, leatherman/trunk/PKGBUILD)

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

Copied: leatherman/repos/community-staging-x86_64/PKGBUILD (from rev 383035, leatherman/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-09-18 12:57:24 UTC (rev 383036)
@@ -0,0 +1,51 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Contributor: Jonathan Steel <jsteel at archlinux.org>
+
+pkgname=leatherman
+pkgver=1.4.1
+pkgrel=3
+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=('71fa4723d231ffd6c582a332d6e57da8d1631d787ac7eeef55a505217b9d216ada11efc2636f2238c0272c30d943c61e1f391941f1c4531f911cce597062ffa6')
+
+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
+}
+
+ Disabled Tests due to infinite loop bug
+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