diff options
author | Grey Christoforo | 2017-02-27 01:45:38 +0000 |
---|---|---|
committer | Grey Christoforo | 2017-02-27 01:45:38 +0000 |
commit | ab810dfd4119ae11018f85613404a2eca48a9dca (patch) | |
tree | 838d7b2c5a0e38578d488084b7e1d8f66c626485 | |
download | aur-ab810dfd4119ae11018f85613404a2eca48a9dca.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 23 |
3 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..915b91f6a2ee --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# Mon Feb 27 01:45:33 UTC 2017 +pkgbase = ruby-stringex + pkgdesc = Some [hopefully] useful extensions to Ruby's String class + pkgver = 2.7.1 + pkgrel = 1 + url = http://github.com/rsl/stringex + arch = any + license = MIT + depends = ruby + noextract = stringex-2.7.1.gem + options = !emptydirs + source = https://rubygems.org/downloads/stringex-2.7.1.gem + sha1sums = d462d32da69b6d65657d3e3ea436eab0128ea700 + +pkgname = ruby-stringex + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..32f0ae164510 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +src/ +pkg/ +*.tar.gz +*.tar.xz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6e8da3f643ea --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Generated by gem2arch (https://github.com/anatol/gem2arch) +# Maintainer: Grey Christoforo <grey@christoforo.net> + +_gemname=stringex +pkgname=ruby-$_gemname +pkgver=2.7.1 +pkgrel=1 +pkgdesc='Some [hopefully] useful extensions to Ruby'\''s String class' +arch=(any) +url='http://github.com/rsl/stringex' +license=(MIT) +depends=(ruby) +options=(!emptydirs) +source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) +noextract=($_gemname-$pkgver.gem) +sha1sums=('d462d32da69b6d65657d3e3ea436eab0128ea700') + +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/MIT-LICENSE" "$pkgdir/usr/share/licenses/$pkgname/MIT-LICENSE" +} |