blob: 221cddb777bccaf231de6b8cec092fd1030ef327 (
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=require
pkgname=ruby-$_gemname
pkgver=0.2.7
pkgrel=1
pkgdesc="A dependencies manager"
url="http://github.com/winton/require"
arch="noarch"
license="MIT"
depends="ruby"
depends_dev=""
makedepends="ruby-dev"
install=""
subpackages=""
source="http://rubygems.org/downloads/$_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="9a1caf852bf72ebf251bc1ceb6a3dec0 require-0.2.7.gem"
sha256sums="353fbb7f73faa1af266956999298e649e6ccd12a6d27397e813a9d6788ac1928 require-0.2.7.gem"
sha512sums="f732967d21e2e834809b661bb69f7750e311fc833a4113481788d5410b3041f791161a25167181e89354d841893d57682273d4dfa8bf3b2643d1e141af83a66c require-0.2.7.gem"
|