-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.packager
73 lines (73 loc) · 1.77 KB
/
.packager
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# -*- mode: ruby -*-
# -*- encoding: utf-8 -*-
# this is a comment
Packager.build do
ubuntu do
target do
platform 'ubuntu'
version '14.04'
package 'deb'
end
dependencies do
build [
'autoconf',
'automake',
'bison',
'build-essential',
'curl',
'libc6-dev',
'libcurl4-openssl-dev',
'libffi-dev',
'libreadline-dev',
'libreadline6',
'libreadline6-dev',
'libsqlite3-dev',
'libssl-dev',
'libtool',
'libxml2-dev',
'libxslt1-dev',
'libyaml-dev',
'ncurses-dev',
'openssl',
'patch',
'pkg-config',
'python-software-properties',
'sqlite3',
'wget',
'zlib1g',
'zlib1g-dev'
]
runtime [
'libstdc++6',
'libc6',
'libffi6',
'libgdbm3',
'libncurses5',
'libreadline6',
'libssl0.9.8',
'libyaml-0-2',
'zlib1g'
]
end
build do
name 'heavywater-ruby'
template :generic
commands do
build [
'wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.gz',
'/bin/tar -zxf ruby-2.1.5.tar.gz',
'mv -f ruby-2.1.5/* .',
'autoconf',
'./configure --prefix=/usr --disable-install-doc',
'cpucores=`nproc` make -j `expr $cpucores - 1 \| 1`',
'make install DESTDIR=$PKG_DIR',
'make install',
'gem install bundler -v "~> 1.10" --no-document',
'gem install bundler -v "~> 1.10" --no-document --install-dir $PKG_DIR',
'mkdir -p $PKG_DIR/usr/lib/ruby/gems/2.1.0',
'cp -R /usr/lib/ruby/gems/2.1.0/* $PKG_DIR/usr/lib/ruby/gems/2.1.0'
]
end
end
end
end