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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Mon Jan 1 18:45:19 UTC 2018


    Date: Monday, January 1, 2018 @ 18:45:18
  Author: bpiotrowski
Revision: 277656

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: leatherman/repos/community-staging-x86_64/PKGBUILD (from rev 277655, leatherman/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-01-01 18:45:18 UTC (rev 277656)
@@ -0,0 +1,43 @@
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+
+pkgname=leatherman
+pkgver=1.3.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=('659d2b3bc3ff34ae01b31a24bff43d21')
+
+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
+
+  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