-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.py
More file actions
31 lines (26 loc) · 939 Bytes
/
tmux.py
File metadata and controls
31 lines (26 loc) · 939 Bytes
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
""" Formula for building tmux """
import os
from pakit import Archive, Git, Recipe
class Tmux(Recipe):
"""
A modern GNU screen replacement
"""
def __init__(self):
super(Tmux, self).__init__()
self.src = 'https://github.com/tmux/tmux'
self.homepage = self.src
self.repos = {
'stable': Archive('https://github.com/tmux/tmux/releases/download'
'/2.0/tmux-2.0.tar.gz',
hash='795f4b4446b0ea968b9201c25e8c1ef8a6ade7'
'10ebca4657dd879c35916ad362'),
'unstable': Git(self.src),
}
def build(self):
if os.path.exists('autogen.sh'):
self.cmd('sh autogen.sh')
self.cmd('./configure --prefix {prefix}')
self.cmd('make install')
def verify(self):
lines = self.cmd('tmux -V').output()
assert lines[0].find('tmux') != -1