blob: 833c4c922bd77dc90e3b4774583bf0d24bcbbfc6 (
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
40
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
_gemname=isbn
pkgname=ruby-$_gemname
pkgver=2.0.9
pkgrel=1
pkgdesc="A library to transform ISBN's from new to used"
url="http://rubygems.org/gems/isbn"
arch="noarch"
license="MIT"
depends="ruby"
depends_dev="ruby-dev"
makedepends="$depends_dev"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
_builddir="$srcdir"/$_gemname-$pkgver
build() {
mkdir -p "$_builddir" || return 1
local _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
}
md5sums="5901fadabb0f742f75e77fad0e31f28c isbn-2.0.9.gem"
sha256sums="f645884282f3a6e5d074b950dfa4bae0e336af570a70ef7017f561ba7e230b48 isbn-2.0.9.gem"
sha512sums="3960c53a764e03d73e3c3574c4a5933e346ef2ea0516448489e5ddeed0f6a13443e31a256474f960a11f2fb1d692cf62bc65c6c99465cc2f1d16f39e5bf156f4 isbn-2.0.9.gem"
|