diff options
Diffstat (limited to 'unmaintained/ruby-webrobots/APKBUILD')
-rw-r--r-- | unmaintained/ruby-webrobots/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/unmaintained/ruby-webrobots/APKBUILD b/unmaintained/ruby-webrobots/APKBUILD new file mode 100644 index 0000000000..7596c437a8 --- /dev/null +++ b/unmaintained/ruby-webrobots/APKBUILD @@ -0,0 +1,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" |