[arch-commits] Commit in leatherman/repos (4 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Tue Sep 12 15:39:50 UTC 2017
Date: Tuesday, September 12, 2017 @ 15:39:49
Author: bpiotrowski
Revision: 257143
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
leatherman/repos/community-staging-i686/
leatherman/repos/community-staging-i686/PKGBUILD
(from rev 257142, leatherman/trunk/PKGBUILD)
leatherman/repos/community-staging-x86_64/
leatherman/repos/community-staging-x86_64/PKGBUILD
(from rev 257142, leatherman/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 43 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 43 ++++++++++++++++++++++++++++++++++++
2 files changed, 86 insertions(+)
Copied: leatherman/repos/community-staging-i686/PKGBUILD (from rev 257142, leatherman/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-09-12 15:39:49 UTC (rev 257143)
@@ -0,0 +1,43 @@
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+
+pkgname=leatherman
+pkgver=1.2.0
+pkgrel=2
+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=('0325aea11c16f624b99546a77c138dad')
+
+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-staging-x86_64/PKGBUILD (from rev 257142, leatherman/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-09-12 15:39:49 UTC (rev 257143)
@@ -0,0 +1,43 @@
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+
+pkgname=leatherman
+pkgver=1.2.0
+pkgrel=2
+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=('0325aea11c16f624b99546a77c138dad')
+
+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