blob: 2ec3ee77539131c1abe81b862b3fada71d5b43f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Contributor: gem2arch 0.1
# Contributor: theapodan
# Contributor: mnussbaum
pkgname=ruby-htmlentities
_gemname=htmlentities
pkgver=4.3.4
pkgrel=2
pkgdesc="A Ruby library to encode named and numerical entities in HTML and XHTML documents"
arch=("any")
url="https://github.com/threedaymonk/htmlentities"
license=("MIT")
depends=("ruby")
makedepends=("rubygems")
options=(!emptydirs)
noextract=("$_gemname-$pkgver.gem")
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
sha256sums=("125a73c6c9f2d1b62100b7c3c401e3624441b663762afa7fe428476435a673da")
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"
}
# vim:set ts=2 sw=2 et:
|