summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Korpel2015-07-08 22:29:32 +0200
committerMarcel Korpel2015-07-08 22:29:32 +0200
commit51bff461332a786826c08e2448a13c66b5b65761 (patch)
treed4ff76e8cefb058e4f3fc6dbdb28253aca15c43b
downloadaur-51bff461332a786826c08e2448a13c66b5b65761.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD27
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..57fce57c4ed
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = ruby-highline
+ pkgdesc = A high-level text user interface toolkit for Ruby
+ pkgver = 1.7.2
+ pkgrel = 1
+ url = http://rubygems.org/gems/highline
+ arch = any
+ license = GPL2
+ license = RUBY
+ depends = ruby
+ noextract = highline-1.7.2.gem
+ options = !emptydirs
+ source = http://rubygems.org/downloads/highline-1.7.2.gem
+ sha256sums = 5beef0869e444075e701ffd87f47a9ebc6beb4c417976425d454d2775bdf9d91
+
+pkgname = ruby-highline
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..42031a56593
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Marcel Korpel <marcel[dot]korpel[at]gmail>
+# Contributor: Vojtěch Aschenbrenner <v@asch.cz>
+# Contributor: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr>
+# Contributor: Peter Richard Lewis <plewis@aur.archlinux.org>
+# Contributor: Emiliano Vavassori <syntaxerrormmm@gmail.com>
+
+pkgname=ruby-highline
+_gemname=highline
+pkgver=1.7.2
+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')
+options=(!emptydirs)
+source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
+noextract=(${_gemname}-${pkgver}.gem)
+sha256sums=('5beef0869e444075e701ffd87f47a9ebc6beb4c417976425d454d2775bdf9d91')
+
+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"
+}