summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiref0x2015-10-20 00:02:53 +0800
committerFiref0x2015-10-20 00:02:53 +0800
commit9723893f482a4533f7510754ef6b9bea2d1f0aba (patch)
treec7c05a0faee7d03a2f096cc5b86adf58dd563612
downloadaur-ruby-scoobydoo.tar.gz
Initial Commit 初次提交
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD25
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..414596f2abb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = ruby-scoobydoo
+ pkgdesc = Cross-platform which for Ruby
+ pkgver = 0.1.1
+ pkgrel = 1
+ url = http://mjwhitta.github.io/scoobydoo
+ arch = any
+ license = GPL3
+ depends = ruby
+ noextract = scoobydoo-0.1.1.gem
+ source = https://rubygems.org/downloads/scoobydoo-0.1.1.gem
+ sha256sums = f2e29d3c30e83bb7efc09b307fb6d6258386168b8366884f45c0e93b00c090bc
+
+pkgname = ruby-scoobydoo
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c26c2438d06
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer : Fernando "Firef0x" G.P. da Silva <firefgx { aT ) gmail [ d0t } com>
+# Contributor : Fernando "Firef0x" G.P. da Silva <firefgx { aT ) gmail [ d0t } com>
+
+_gemname=scoobydoo
+
+pkgname=ruby-$_gemname
+pkgver=0.1.1
+pkgrel=1
+pkgdesc="Cross-platform which for Ruby"
+arch=('any')
+url='http://mjwhitta.github.io/scoobydoo'
+license=('GPL3')
+depends=('ruby')
+
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha256sums=('f2e29d3c30e83bb7efc09b307fb6d6258386168b8366884f45c0e93b00c090bc')
+
+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"
+}
+
+# vim:set sts=2 sw=2 ts=2 et: