summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Korpel2015-07-08 17:59:24 +0200
committerMarcel Korpel2015-07-08 17:59:24 +0200
commit5833d3d7eea5d6f1a6c5c0a732f505480559f6d3 (patch)
tree547944bc10d3e840685363edbe251f7052d9a762
downloadaur-5833d3d7eea5d6f1a6c5c0a732f505480559f6d3.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD28
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..44adb2eeea4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = ruby-highline-1.6
+ pkgdesc = A high-level text user interface toolkit for Ruby
+ pkgver = 1.6.21
+ pkgrel = 1
+ url = http://rubygems.org/gems/highline
+ arch = any
+ license = GPL2
+ license = RUBY
+ depends = ruby
+ provides = ruby-highline=1.6.21
+ conflicts = ruby-highline
+ noextract = highline-1.6.21.gem
+ options = !emptydirs
+ source = http://rubygems.org/downloads/highline-1.6.21.gem
+ sha256sums = c136298eee86ceff87baadc71d764ea07986f89805636e4a6a305b2d5da07519
+
+pkgname = ruby-highline-1.6
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e1ebd792064
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Marcel Korpel <marcel[dot]korpel[at]gmail>
+# Contributor: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr>
+# Contributor: Peter Richard Lewis <plewis@aur.archlinux.org>
+# Contributor: Emiliano Vavassori <syntaxerrormmm@gmail.com>
+
+pkgname=ruby-highline-1.6
+_gemname=highline
+pkgver=1.6.21
+pkgrel=1
+pkgdesc="A high-level text user interface toolkit for Ruby"
+arch=('any')
+url="http://rubygems.org/gems/highline"
+license=('GPL2' 'RUBY')
+depends=('ruby')
+provides=("ruby-highline=$pkgver")
+conflicts=('ruby-highline')
+options=(!emptydirs)
+source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
+noextract=(${_gemname}-${pkgver}.gem)
+sha256sums=('c136298eee86ceff87baadc71d764ea07986f89805636e4a6a305b2d5da07519')
+
+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/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+ install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}