diff options
Diffstat (limited to 'unmaintained/ruby-htmlentities')
-rw-r--r-- | unmaintained/ruby-htmlentities/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/unmaintained/ruby-htmlentities/APKBUILD b/unmaintained/ruby-htmlentities/APKBUILD new file mode 100644 index 0000000000..8e06465b32 --- /dev/null +++ b/unmaintained/ruby-htmlentities/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=ruby-htmlentities +_gemname=htmlentities +pkgver=4.3.1 +pkgrel=0 +pkgdesc="A module for encoding and decoding (X)HTML entities." +url="https://github.com/threedaymonk/htmlentities" +arch="noarch" +license="MIT" +depends="ruby" +depends_dev="" +makedepends="$depends_dev ruby-dev" +install="" +subpackages="" +source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" + +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="53a9218c02ef3671d6fc9fe843ebd360 htmlentities-4.3.1.gem" +sha256sums="d199741b653ea3e84a55e07f4d8190806465e693b04031c63c2a215b382e0397 htmlentities-4.3.1.gem" +sha512sums="6da6e1c2903622972ede1633e3d139d41bbe580097301848d9cd89e0f76d1b97ab512e444f7669763e2a4403c774bcbf0333b2b17465801c7c905f8c2acc8df6 htmlentities-4.3.1.gem" |