blob: 63352fd698ac61fe93a646f067f39ef9342aea14 (
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
|
#!/bin/sh
NAME="ruby-rake"
DESC="A Ruby task runner, inspired by make"
MAKEDEPS=""
PKG_VER=13.0.6
SOURCE="https://github.com/ruby/rake/archive/v$PKG_VER/rake-$PKG_VER.tar.gz"
build() {
gem build rake.gemspec
}
package() {
local gemdir="$PKG_DEST/$(ruby -e 'puts Gem.default_dir')"
gem install \
--local \
--install-dir "$gemdir" \
--bindir "$PKG_DEST/usr/bin" \
--ignore-dependencies \
--document ri \
--verbose \
rake
# Remove unnessecary files
cd "$gemdir"
rm -rf build_info cache extensions plugins
cd gems/rake-*
rm -rf doc *.rdoc MIT-LICENSE
}
|