Skip to content

Instantly share code, notes, and snippets.

@skycocker
Created September 28, 2013 23:30
Show Gist options
  • Save skycocker/6747775 to your computer and use it in GitHub Desktop.
Save skycocker/6747775 to your computer and use it in GitHub Desktop.
Chromebrew package file example
require 'package' # include package class file
class Vim < Package # name the package and make it a Package class instance
version '7.4' # software version
source_url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2' # software source tarball url
source_sha1 '601abf7cc2b5ab186f40d8790e542f86afca86b7' # source tarball sha1 sum
depends_on 'ncurses' # software dependencies
def self.build # self.build contains commands needed to build the software from source
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment