aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-webrobots/APKBUILD
blob: 7596c437a86397cb0101b4cc8b64f04afe5c63cd (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=webrobots
pkgname=ruby-$_gemname
pkgver=0.1.1
pkgrel=0
pkgdesc="A Ruby library to help write robots.txt compliant web robots"
arch="noarch"
url="https://github.com/knu/webrobots"
license="'2-clause BSDL'"
depends="ruby"
depends_dev=
makedepends="$depends_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="d2330caff6eb246b687cf8cdfdc06fdd  webrobots-0.1.1.gem"
sha256sums="568c5e5a149c5e7fbd5065522bb986ddd8f147e8586818ab7e79d6a02e8496ca  webrobots-0.1.1.gem"
sha512sums="f303c238620d17cb64064d11eb352d2afb32529f7092609484e5e232ccbc903683f89116a0e5232605b6d0286a4a76b82e71e44884a7b77d12125f3b3c6c5a34  webrobots-0.1.1.gem"