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

Jonathan Steel jsteel at archlinux.org
Mon Jul 3 08:28:17 UTC 2017


    Date: Monday, July 3, 2017 @ 08:28:17
  Author: jsteel
Revision: 242115

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  leatherman/repos/community-testing-i686/
  leatherman/repos/community-testing-i686/PKGBUILD
    (from rev 242114, leatherman/trunk/PKGBUILD)
  leatherman/repos/community-testing-x86_64/
  leatherman/repos/community-testing-x86_64/PKGBUILD
    (from rev 242114, leatherman/trunk/PKGBUILD)

-----------------------------------+
 community-testing-i686/PKGBUILD   |   43 ++++++++++++++++++++++++++++++++++++
 community-testing-x86_64/PKGBUILD |   43 ++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

Copied: leatherman/repos/community-testing-i686/PKGBUILD (from rev 242114, leatherman/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2017-07-03 08:28:17 UTC (rev 242115)
@@ -0,0 +1,43 @@
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+
+pkgname=leatherman
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Collection of C++ and CMake utility libraries"
+arch=('i686' '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=('6de7c7890ab395db43540422daad5ddc')
+
+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
+}

Copied: leatherman/repos/community-testing-x86_64/PKGBUILD (from rev 242114, leatherman/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-07-03 08:28:17 UTC (rev 242115)
@@ -0,0 +1,43 @@
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+
+pkgname=leatherman
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Collection of C++ and CMake utility libraries"
+arch=('i686' '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=('6de7c7890ab395db43540422daad5ddc')
+
+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