summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhys Davies2015-08-19 17:21:20 +1200
committerRhys Davies2015-08-19 17:21:20 +1200
commitb27aff47c8d0fa5fa7332dcd92ba1845b853599a (patch)
tree8b10c8c2b67edcf95027d5962f073133e5292642
downloadaur-b27aff47c8d0fa5fa7332dcd92ba1845b853599a.tar.gz
Initial commit
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD23
2 files changed, 37 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..586cc2b93f1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = ruby-method_source
+ pkgdesc = retrieve the sourcecode for a method
+ pkgver = 0.8.2
+ pkgrel = 1
+ url = http://banisterfiend.wordpress.com
+ arch = any
+ depends = ruby
+ noextract = method_source-0.8.2.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/method_source-0.8.2.gem
+ sha1sums = ea691a5adb25c9485d9916690dbc339e646aa8b1
+
+pkgname = ruby-method_source
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bdece68da5f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: Rhys Davies <rhys@johnguant.com>
+
+_gemname=method_source
+pkgname=ruby-$_gemname
+pkgver=0.8.2
+pkgrel=1
+pkgdesc='retrieve the sourcecode for a method'
+arch=(any)
+url='http://banisterfiend.wordpress.com'
+license=()
+depends=(ruby)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('ea691a5adb25c9485d9916690dbc339e646aa8b1')
+
+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"
+}