aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-htmlentities/APKBUILD
blob: 8e06465b32f7021547e74428774eb39258071d26 (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
33
34
35
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"