blob: beac147a01e3e2bf35a552ee02b76a07879137b2 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
name = "tmux"
version = "3.1c"
version_is_semver = false
# no patches by default
patches = []
[[sources]]
url = "https://github.com/tmux/tmux/archive/3.1c.tar.gz"
hash.type = "sha1"
hash.hash = "5e8bcaa3c758f84f01935a914e2bbf01309462ae"
[dependencies]
system = ["libevent"]
system_runtime = []
build = []
runtime = []
# Root description of phases
# can be overridden as well
[phases]
unpack.script = '''
mkdir /build
tar -C /build -xzf /inputs/*source
'''
# We use a depinst phase here because we don't want to add a Dockerfile to the
# repo where we prepare a build container.
# This is, of course, not be the way it would be done in a real-world scenario!
depinst.script = '''
apt update
apt install -y pkg-config gcc bison make autotools-dev autoconf libevent-dev libncurses5-dev
'''
configure.script = '''
cd /build/tmux-3.1c/
echo "SOURCES: "
ls
echo "-----"
./autogen.sh || exit 1
./configure || exit 1
'''
build.script = '''
cd /build/tmux-3.1c
make || exit 1
'''
install.script = '''
cd /build/tmux-3.1c
make install || exit 1
'''
package.script = '''
# I am simple
mkdir /outputs/
tar czf /outputs/tmux-3.1c.tgz /usr/local/bin/tmux
'''
|