Natanael Copa d3b914236b testing/ruby-stringex: new aport
Some useful extensions to Ruby's String class
http://rubygems.org/gems/stringex
2014-05-27 16:28:24 +02:00

40 lines
1.2 KiB
Plaintext

# Contributor: Seung Soo Mun <hamletmun@gmail.com>
# Maintainer:
_gemname=stringex
pkgname=ruby-$_gemname
pkgver=2.5.2
pkgrel=0
pkgdesc="Some useful extensions to Ruby's String class"
url="http://rubygems.org/gems/$_gemname"
arch="noarch"
license="MIT"
depends="ruby"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
_builddir="$srcdir"/$_realname-$pkgver
build() {
return 0
}
package() {
local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
local _geminstdir=$_gemdir/gems/$_gemname-$pkgver
mkdir -p "$pkgdir" || return 1
gem install --local --install-dir "$pkgdir"/$_gemdir \
--ignore-dependencies --verbose --no-rdoc --no-ri \
"$srcdir"/$_gemname-$pkgver.gem || return 1
rm -rf "$pkgdir"/$_gemdir/cache \
"$pkgdir"/$_geminstdir/ext \
"$pkgdir"/$_geminstdir/.require_paths
}
md5sums="4ae12860b6e52396581546408f032778 stringex-2.5.2.gem"
sha256sums="27a8ee92a808a83284438e51ed391f3539ae6b39731b95cb4ad940974f6d0a94 stringex-2.5.2.gem"
sha512sums="06905b5d59b40f59c0901bbaacbf303cd906be110cd69a4b8cc29cecd69b6aa73d80cee0c9c0e2014f662b9fca1611c0fe334fcba3c4fa686224dac94f4e0d41 stringex-2.5.2.gem"