summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Valentini2018-01-24 14:41:49 +0100
committerRoberto Valentini2018-01-24 14:41:49 +0100
commit13f4fd5f2a94e19b3828461a92fec7a9d9e00fa9 (patch)
treed651757d56a5ab3fcb65945294fabff5b8341d06
downloadaur-13f4fd5f2a94e19b3828461a92fec7a9d9e00fa9.tar.gz
New hammer-cli-foreman
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD24
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..680375bba56
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = ruby-hammer-cli-foreman
+ pkgdesc = Foreman commands for Hammer CLI
+ pkgver = 0.11.0
+ pkgrel = 1
+ url = http://github.com/theforeman/hammer-cli-foreman
+ arch = i686
+ arch = x86_64
+ license = GPLv3
+ depends = ruby
+ depends = ruby-apipie-bindings>=0.2.0
+ depends = ruby-hammer-cli>=0.11.0
+ depends = ruby-rest-client>=1.8.0
+ depends = ruby-rest-client<3.0.0
+ noextract = hammer_cli_foreman-0.11.0.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/hammer_cli_foreman-0.11.0.gem
+ sha256sums = a7d0480ae5cde3c651eb381de8fa9d93638e788bae128a7ace0718429b9fcc16
+
+pkgname = ruby-hammer-cli-foreman
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ff973671956
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer Valantin <valantin89 [at] gmail [dot] com>
+
+_gemname=hammer_cli_foreman
+pkgname=ruby-${_gemname//_/-}
+pkgver=0.11.0
+pkgrel=1
+pkgdesc='Foreman commands for Hammer CLI'
+arch=(i686 x86_64)
+url='http://github.com/theforeman/hammer-cli-foreman'
+license=(GPLv3)
+depends=('ruby'
+ 'ruby-apipie-bindings>=0.2.0'
+ 'ruby-hammer-cli>=0.11.0'
+ 'ruby-rest-client>=1.8.0' 'ruby-rest-client<3.0.0')
+options=(!emptydirs)
+source=("https://rubygems.org/downloads/${_gemname}-${pkgver}.gem")
+noextract=($_gemname-$pkgver.gem)
+sha256sums=('a7d0480ae5cde3c651eb381de8fa9d93638e788bae128a7ace0718429b9fcc16')
+
+package() {
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ gem install --ignore-dependencies --no-user-install --no-document -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" $_gemname-$pkgver.gem
+ rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+}