aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-unf-ext/APKBUILD
blob: cdc5153ea1bf1e36464c7cb7552c25819980b9b3 (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
37
38
39
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>

_gemname=unf_ext
pkgname=ruby-$_gemname
pkgver=0.0.7.1
pkgrel=1
pkgdesc="Unicode Normalization Form support library for CRuby"
arch="all"
url="https://github.com/knu/ruby-unf_ext"
license="MIT"
depends="ruby"
makedepends="ruby-dev"
source="https://rubygems.org/downloads/$_gemname-$pkgver.gem"
_builddir="$srcdir"/$_gemname-$pkgver

build() {
        mkdir -p "$_builddir" || return 1
        export _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
        gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \
                --ignore-dependencies \
                --verbose \
                --no-rdoc \
                --no-ri \
                || return 1
        rm -rf "$pkgdir"/$_gemdir/cache \
                "$pkgdir"/$_geminstdir/ext \
                "$pkgdir"/$_geminstdir/.require_paths
}

package() {
        mkdir -p "$pkgdir" || return 1
        cp -ra "$_builddir"/* "$pkgdir"/ || return 1
        install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}

md5sums="39bfbb9e124410f57a97d1837f02d42a  unf_ext-0.0.7.1.gem"
sha256sums="ab58d1a808d38872817bea89fc3f055bfc250af48d9653425e35c7c18caec253  unf_ext-0.0.7.1.gem"
sha512sums="06239dc5870ad0f345266b12ad6ed9508ab731dfd37b450d0e1eae1ef8e8301f8ad1ef7fffbbcf69b56b0af5aa257ea279dda3a252bdf397d11949e9885db3d4  unf_ext-0.0.7.1.gem"