mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
added tmux + libevent dependency
This commit is contained in:
16
packages/libevent.rb
Normal file
16
packages/libevent.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
require 'package' # include package class file
|
||||
|
||||
class Libevent < Package # name the package and make it a Package class instance
|
||||
version '2.0.21' # software version
|
||||
source_url 'https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz' # software source tarball url
|
||||
source_sha1 '3e6674772eb77de24908c6267c698146420ab699' # source tarball sha1 sum
|
||||
|
||||
def self.build # self.build contains commands needed to build the software from source
|
||||
system "./configure"
|
||||
system "make" # ordered chronologically
|
||||
end
|
||||
|
||||
def self.install # self.install contains commands needed to install the software on the target system
|
||||
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system
|
||||
end # during installation
|
||||
end
|
||||
20
packages/tmux.rb
Normal file
20
packages/tmux.rb
Normal file
@@ -0,0 +1,20 @@
|
||||
require 'package' # include package class file
|
||||
|
||||
class Tmux < Package # name the package and make it a Package class instance
|
||||
version '1.9a' # software version
|
||||
source_url 'http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz' # software source tarball url
|
||||
source_sha1 '815264268e63c6c85fe8784e06a840883fcfc6a2' # source tarball sha1 sum
|
||||
|
||||
depends_on 'readline' # software dependencies
|
||||
depends_on 'libevent'
|
||||
depends_on 'ncurses'
|
||||
|
||||
def self.build # self.build contains commands needed to build the software from source
|
||||
system "./configure"
|
||||
system "make" # ordered chronologically
|
||||
end
|
||||
|
||||
def self.install # self.install contains commands needed to install the software on the target system
|
||||
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system
|
||||
end # during installation
|
||||
end
|
||||
Reference in New Issue
Block a user