Date: Tuesday, May 16, 2017 @ 20:30:09
  Author: jsteel
Revision: 228330

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

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

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

Copied: facter/repos/community-testing-i686/PKGBUILD (from rev 228329, 
facter/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD                             (rev 0)
+++ community-testing-i686/PKGBUILD     2017-05-16 20:30:09 UTC (rev 228330)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+# Contributor: Greg Sutcliffe <facter_aur (at) emeraldreverie.orgr>
+# Contributor: Hyacinthe Cartiaux <hyacinthe.carti...@free.fr>
+# Contributor: Thomas S Hatch <thatch45 (at) Gmail.com>
+# Contributor: Dave Simons <miouhpi (at) Gmail (dot) com>
+# Contributor: Niels Abspoel <aboe76 (at) Gmail (dot) com>
+
+pkgname=facter
+pkgver=3.6.4
+pkgrel=1
+pkgdesc="Collect and display system facts"
+arch=('i686' 'x86_64')
+url="http://puppetlabs.com/facter";
+license=('APACHE')
+depends=('ruby' 'yaml-cpp' 'boost-libs' 'curl' 'openssl-1.0')
+makedepends=('boost' 'cmake' 'java-environment' 'leatherman' 'cpp-hocon')
+optdepends=('java-environment: jruby support')
+replaces=('cfacter')
+source=(http://downloads.puppetlabs.com/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('f282e7768a61892fda5d2b5ec2cef103')
+
+prepare() {
+  cd $pkgname-$pkgver
+
+  # Replace rb_data_object_alloc symbol with rb_data_object_wrap
+  # https://tickets.puppetlabs.com/browse/FACT-1291
+  sed -i 's/rb_data_object_alloc/rb_data_object_wrap/g' \
+    $( grep -rl rb_data_object_alloc lib/src/ruby )
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  JAVA_HOME=/usr/lib/jvm/default cmake -DCMAKE_INSTALL_PREFIX=/usr 
-DOPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0 
-DOPENSSL_SSL_LIBRARY=/usr/lib/openssl-1.0/libssl.so 
-DOPENSSL_CRYPTO_LIBRARY=/usr/lib/openssl-1.0/libcrypto.so
+
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  # TODO: Investigate why tests fail on i686 most of the time with Ruby 2.3.0
+  make test || [[ $CARCH == i686 ]]
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  make install DESTDIR="$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Copied: facter/repos/community-testing-x86_64/PKGBUILD (from rev 228329, 
facter/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2017-05-16 20:30:09 UTC (rev 228330)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+# Contributor: Greg Sutcliffe <facter_aur (at) emeraldreverie.orgr>
+# Contributor: Hyacinthe Cartiaux <hyacinthe.carti...@free.fr>
+# Contributor: Thomas S Hatch <thatch45 (at) Gmail.com>
+# Contributor: Dave Simons <miouhpi (at) Gmail (dot) com>
+# Contributor: Niels Abspoel <aboe76 (at) Gmail (dot) com>
+
+pkgname=facter
+pkgver=3.6.4
+pkgrel=1
+pkgdesc="Collect and display system facts"
+arch=('i686' 'x86_64')
+url="http://puppetlabs.com/facter";
+license=('APACHE')
+depends=('ruby' 'yaml-cpp' 'boost-libs' 'curl' 'openssl-1.0')
+makedepends=('boost' 'cmake' 'java-environment' 'leatherman' 'cpp-hocon')
+optdepends=('java-environment: jruby support')
+replaces=('cfacter')
+source=(http://downloads.puppetlabs.com/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('f282e7768a61892fda5d2b5ec2cef103')
+
+prepare() {
+  cd $pkgname-$pkgver
+
+  # Replace rb_data_object_alloc symbol with rb_data_object_wrap
+  # https://tickets.puppetlabs.com/browse/FACT-1291
+  sed -i 's/rb_data_object_alloc/rb_data_object_wrap/g' \
+    $( grep -rl rb_data_object_alloc lib/src/ruby )
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  JAVA_HOME=/usr/lib/jvm/default cmake -DCMAKE_INSTALL_PREFIX=/usr 
-DOPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0 
-DOPENSSL_SSL_LIBRARY=/usr/lib/openssl-1.0/libssl.so 
-DOPENSSL_CRYPTO_LIBRARY=/usr/lib/openssl-1.0/libcrypto.so
+
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  # TODO: Investigate why tests fail on i686 most of the time with Ruby 2.3.0
+  make test || [[ $CARCH == i686 ]]
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  make install DESTDIR="$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to