Date: Monday, October 30, 2017 @ 11:52:52 Author: jsteel Revision: 264757
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 264756, leatherman/trunk/PKGBUILD) leatherman/repos/community-testing-x86_64/ leatherman/repos/community-testing-x86_64/PKGBUILD (from rev 264756, 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 264756, leatherman/trunk/PKGBUILD) =================================================================== --- community-testing-i686/PKGBUILD (rev 0) +++ community-testing-i686/PKGBUILD 2017-10-30 11:52:52 UTC (rev 264757) @@ -0,0 +1,43 @@ +# Maintainer: Jonathan Steel <jsteel at archlinux.org> + +pkgname=leatherman +pkgver=1.3.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=('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 +} Copied: leatherman/repos/community-testing-x86_64/PKGBUILD (from rev 264756, leatherman/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2017-10-30 11:52:52 UTC (rev 264757) @@ -0,0 +1,43 @@ +# Maintainer: Jonathan Steel <jsteel at archlinux.org> + +pkgname=leatherman +pkgver=1.3.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=('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 +}