summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Goguen2017-01-25 14:57:37 -0330
committerJoel Goguen2017-01-25 14:57:37 -0330
commit3feddd20cdd6b4614ef02ad9062265816eb5199a (patch)
treefffbb95902f934cd2c4ec2aa50bab1af84611998
downloadaur-ruby-taste_tester.tar.gz
v0.0.12
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD25
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..07a3db68832
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by mksrcinfo v8
+# Wed Jan 25 18:27:16 UTC 2017
+pkgbase = ruby-taste_tester
+ pkgdesc = Utility for testing Chef changes using chef-zero
+ pkgver = 0.0.12
+ pkgrel = 1
+ url = https://rubygems.org/gems/taste_tester
+ arch = any
+ license = Apache
+ depends = ruby
+ depends = ruby-between_meals
+ depends = ruby-colorize
+ depends = ruby-mixlib-config
+ noextract = taste_tester-0.0.12.gem
+ source = https://rubygems.org/downloads/taste_tester-0.0.12.gem
+ sha256sums = d0df730124c4218db615bada0930b5b47c34d5a85bba458df8a9efbe4180c723
+
+pkgname = ruby-taste_tester
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3af7c3cca32
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Joel Goguen <contact+aur@jgoguen.ca>
+
+_gemname=taste_tester
+pkgname=ruby-${_gemname}
+pkgver=0.0.12
+pkgrel=1
+pkgdesc="Utility for testing Chef changes using chef-zero"
+arch=('any')
+depends=('ruby' 'ruby-between_meals' 'ruby-colorize' 'ruby-mixlib-config')
+url="https://rubygems.org/gems/${_gemname}"
+noextract=($_gemname-$pkgver.gem)
+license=('Apache')
+source=(
+ "https://rubygems.org/downloads/${_gemname}-${pkgver}.gem"
+)
+sha256sums=(
+ 'd0df730124c4218db615bada0930b5b47c34d5a85bba458df8a9efbe4180c723'
+)
+
+package() {
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
+ rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+ install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}