summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHyacinthe Cartiaux2017-10-19 15:17:08 +0200
committerHyacinthe Cartiaux2017-10-19 15:17:08 +0200
commitf0b1377cde4b6cf5deccb889e628c35fa65b23cb (patch)
tree4cfd389752d56b7121a8bc887f34877aa6604dd8
downloadaur-f0b1377cde4b6cf5deccb889e628c35fa65b23cb.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD25
3 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..600e5b73392
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Thu Oct 19 13:16:41 UTC 2017
+pkgbase = ruby-ddplugin
+ pkgdesc = Provides plugin management for Ruby projects
+ pkgver = 1.0.1
+ pkgrel = 1
+ url = https://rubygems.org/gems/ddplugin
+ arch = any
+ license = MIT
+ makedepends = rubygems
+ depends = ruby
+ noextract = ddplugin-1.0.1.gem
+ source = https://rubygems.org/downloads/ddplugin-1.0.1.gem
+ sha256sums = 40f220c4a3fb163927f6a58c5238c3bdc2db8c01827b98a1107d2e11743ef451
+
+pkgname = ruby-ddplugin
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..3b0a7244f9e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+src
+pkg
+*.gem
+*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f1a93647c78
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Hyacinthe Cartiaux <hyacinthe.cartiaux (a) free.fr>
+pkgname=ruby-ddplugin
+pkgver=1.0.1
+_gemname=${pkgname#ruby-}
+pkgrel=1
+pkgdesc="Provides plugin management for Ruby projects"
+arch=(any)
+url="https://rubygems.org/gems/${_gemname}"
+license=("MIT")
+depends=('ruby')
+makedepends=(rubygems)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+sha256sums=('40f220c4a3fb163927f6a58c5238c3bdc2db8c01827b98a1107d2e11743ef451')
+noextract=($_gemname-$pkgver.gem)
+
+package() {
+ cd "$srcdir"
+
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ HOME="/tmp" GEM_HOME="$_gemdir" GEM_PATH="$_gemdir" gem install \
+ --no-user-install --ignore-dependencies \
+ -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" "$_gemname-$pkgver.gem"
+
+ rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+}