Commit fbc6b4b2 authored by Damian Montero's avatar Damian Montero

Merge branch 'master' of https://github.com/thedamian/chromebrew

parents 72909709 49b3b88b
......@@ -30,7 +30,7 @@ Installation
------------
Open the terminal with Ctrl+Alt+T and type `shell`.
If this command returns `Unknown command: 'shell'` please have a second look at the prerequisites and make sure your Chromebook is in developer mode.
If this command returns `ERROR: unknown command: shell` please have a second look at the prerequisites and make sure your Chromebook is in developer mode.
Then download and run the installation script
......
......@@ -15,8 +15,19 @@ CREW_CONFIG_PATH = CREW_PREFIX + '/etc/crew/'
CREW_BREW_DIR = CREW_PREFIX + '/tmp/crew/'
CREW_DEST_DIR = CREW_BREW_DIR + '/dest'
ARCH = `uname -m | tr -d '\n\r'`
SHORTARCH = `getconf LONG_BIT | tr -d '\n\r'`
ARCH = `uname -m`.strip
#SHORTARCH = `getconf LONG_BIT`.strip # will refactor this line in the future
case ARCH
when "i686"
SHORTARCH="32"
when "x86_64"
SHORTARCH="64"
when "armv7l"
SHORTARCH="32"
else
SHORTARCH="32"
end
$LOAD_PATH.unshift "#{CREW_LIB_PATH}lib"
......@@ -229,12 +240,30 @@ def install
unless @pkg.is_fake?
meta = download
topdir = ""
Dir.chdir CREW_BREW_DIR do
puts "Unpacking archive, this may take a while..."
system "tar", "xf", meta[:filename]
if meta[:filename][-4,4] == ".zip"
system "unzip", "-qq", "-d", "tmpzip", meta[:filename]
else
system "tar", "xf", meta[:filename]
end
if meta[:source] == true
abort "You don't have a working C compiler. Run 'crew install buildessential' to get one and try again." unless system("gcc", "--version")
topdir = `tar -tf #{meta[:filename]} | sed -e 's@/.*@@' | uniq`.chomp!
if meta[:filename][-4,4] == ".zip"
Dir.chdir "tmpzip" do
entries=Dir["*"]
if entries.length == 0
abort "empty zip archive: #{meta[:filename]}"
elsif entries.length == 1
topdir = "tmpzip/" + entries.first
else
topdir = "tmpzip/"
end
end
else
topdir = `tar -tf #{meta[:filename]} | sed -e 's@/.*@@' | uniq`.chomp!
end
Dir.chdir CREW_BREW_DIR + topdir do
puts "Building from source, this may take a while..."
@pkg.build
......
......@@ -38,9 +38,9 @@ echo "Downloading ruby..."
case "$architecture" in
"armv7l")
link='https://dl.dropboxusercontent.com/s/w4y8b0an136fk3i/ruby-2.0.0p247-chromeos-armv7l.tar.xz'
tarname='ruby-2.0.0p247-chromeos-'$architecture'.tar.gz'
sha256='f3e6287ef47c78d2211e31d1d72453292c086f8b6bd08c8608abcf67f87de862'
link='https://dl.dropboxusercontent.com/s/02afb4qm4ugl0os/ruby-2.0.0p247-chromeos-armv7l.tar.xz'
tarname='ruby-2.0.0p247-chromeos-'$architecture'.tar.xz'
sha256='de01196461edd57bb39288e7b9dee1ee3cdc605e4e8be6b8871ba47dbe1ca972'
;;
"i686")
link='https://dl.dropboxusercontent.com/s/tufbuqcn80ubypx/ruby-2.0.0p247-chromeos-i686.tar.gz'
......@@ -99,27 +99,6 @@ for file in git zlibpkg libssh2 perl curl expat gettext python readline ruby bui
wget -N -c $URL/packages/$file.rb
done
#install gcc on arm only. It requires special treatments
case "$architecture" in
"armv7l")
echo y | crew install gcc
if [ ! -d $HOME/Downloads/tools ]; then
mkdir $HOME/Downloads/tools
mkdir $HOME/Downloads/tools/bin
mkdir $HOME/Downloads/tools/lib
mkdir $HOME/Downloads/tools/libexec
mkdir $HOME/Downloads/tools/share
ln -s /usr/local/armv7a-cros-linux-gnueabi $HOME/Downloads/tools
ln -s /usr/local/bin/as $HOME/Downloads/tools/bin
ln -s /usr/local/bin/bison $HOME/Downloads/tools/bin
ln -s /usr/local/bin/ld $HOME/Downloads/tools/bin
ln -s /usr/local/bin/m4 $HOME/Downloads/tools/bin
ln -s /usr/local/lib/gcc $HOME/Downloads/tools/lib
ln -s /usr/local/libexec/gcc $HOME/Downloads/tools/libexec
ln -s /usr/local/share/bison $HOME/Downloads/tools/share
fi;;
esac
#install readline for ruby
echo y | crew install readline
......
require "package"
class A2ps < Package
version "4.14"
source_url "http://ftp.gnu.org/gnu/a2ps/a2ps-4.14.tar.gz"
source_sha1 "365abbbe4b7128bf70dad16d06e23c5701874852"
depends_on "gperf"
depends_on "filecmd"
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Bacon < Package
version '3.5'
source_url 'http://www.basic-converter.org/stable/bacon-3.5.tar.gz'
source_sha1 '878da51d1f8bef9baea6523be8f09d8a616f8e9f'
def self.build
system "./configure --prefix=/usr/local"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,12 +3,12 @@ require 'package'
class Binutils < Package
version '2.23.2'
binary_url ({
armv7l: "https://dl.dropboxusercontent.com/s/kut6emhlda9pbc9/dummy-1.0.0-chromeos-armv7l.tar.gz",
armv7l: "https://dl.dropboxusercontent.com/s/jkaqtj356gmh5un/binutils-2.25-chromeos-armv7l.tar.xz",
i686: 'https://dl.dropboxusercontent.com/s/u3cp7mpdyfx99ij/binutils-2.23.2-chromeos-i686.tar.gz?token_hash=AAGsFB9HXNb5tSAm_Wd2GyIUL59BkZYgMTHkj4CkHLxggg&dl=1',
x86_64: 'https://dl.dropboxusercontent.com/s/mnu21v101rdbm8k/binutils-2.23.2-chromeos-x86_64.tar.gz?token_hash=AAEn4ngAJs-fpRUz1n1Q_2WKxQvQnPMwlgcEHBDKyLOpoA&dl=1'
})
binary_sha1 ({
armv7l: "049db60338a74d798e72afabe05097f3a4c4f7cd",
armv7l: "60d855c14c2ffb6fd9a486a6284c1b888cbe04ab",
i686: 'a7edc9bdaf9fc72112fe6b370f158a9a1aee87ac',
x86_64: '1c13b8f261e419a66b87f09653f3fbaf8449efe1'
})
......
require 'package'
class Chicken < Package
version '4.11.0'
source_url 'https://code.call-cc.org/releases/4.11.0/chicken-4.11.0.tar.gz'
source_sha1 'b8b1e8b741a5ea5b318c449c3bf8a42f8de8ba69'
def self.build
system "make", "PLATFORM=linux"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install", "PLATFORM=linux"
end
end
......@@ -3,12 +3,12 @@ require 'package'
class Curl < Package
version '7.32.0'
binary_url ({
armv7l: 'https://dl.dropboxusercontent.com/s/lvs0o30t4u9zjre/curl-7.32.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.dropboxusercontent.com/s/vvs612glzxrnjva/curl-7.32.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.dropboxusercontent.com/s/h3x2iiy5ibi97vr/curl-7.32.0-chromeos-i686.tar.gz?token_hash=AAETu-MnNyBTCHQbkh4O817QbNK3wRLbAP_gQhjgNyFGtw&dl=1',
x86_64: 'https://dl.dropboxusercontent.com/s/u2hmmd6wfz25qnn/curl-7.32.0-chromeos-x86_64.tar.gz?token_hash=AAGHjx6ATIsDW-Xi4pNUbCMknfWUa6GGQbAquWDkH1xzgg&dl=1'
})
binary_sha1 ({
armv7l: '0ee487342dc4e2cb10aa088a39b04b449b410e7c',
armv7l: '5d974555b12b54ec47f044dc1cfe7a8ed31bb7e7',
i686: 'af3abbae663884ed367c5b6b467ebb310052f53f',
x86_64: '94766f554b195583040e31ce8e85846d8271ac11'
})
......
......@@ -5,14 +5,6 @@ class Diffutils < Package
source_url 'ftp://ftp.gnu.org/gnu/diffutils/diffutils-3.3.tar.xz'
source_sha1 '6463cce7d3eb73489996baefd0e4425928ecd61e'
# arm has 3.3 diffutils in system, so leave it as is
binary_url({
armv7l: "https://dl.dropboxusercontent.com/s/kut6emhlda9pbc9/dummy-1.0.0-chromeos-armv7l.tar.gz",
})
binary_sha1({
armv7l: "049db60338a74d798e72afabe05097f3a4c4f7cd",
})
depends_on "libsigsegv"
def self.build
......
......@@ -11,7 +11,7 @@ class Emacs < Package
depends_on "automake"
def self.build
system "./configure --prefix=/usr/local --without-x --without-makeinfo"
system "./configure --prefix=/usr/local --without-x --without-makeinfo --disable-selinux"
system "sed -i '/static void \\*/{ N; /static void \\*\\naligned_alloc/{ s/static //g}}' src/alloc.c"
system "make"
end
......
require 'package'
class Erlang < Package
version '19.0'
source_url 'http://www.erlang.org/download/otp_src_19.0.tar.gz'
source_sha1 '3be958b529de4be19d77eb77f587a76210b43bfd'
version '19.2'
source_url 'http://www.erlang.org/download/otp_src_19.2.tar.gz'
source_sha1 'f5188ba6f496b9d1c37597705d095b4e6aa7bcd3'
def self.build
system 'export ERL_OTP=`pwd`'
......
......@@ -3,12 +3,12 @@ require 'package'
class Expat < Package
version '2.1.0'
binary_url ({
armv7l: 'https://dl.dropboxusercontent.com/s/iwa36x4jjekcrnp/expat-2.1.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.dropboxusercontent.com/s/0wq0gbbg1cf5uub/expat-2.1.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.dropboxusercontent.com/s/jh5uw42elm40t9a/expat-2.1.0-chromeos-i686.tar.gz?token_hash=AAGYckE0KoTPsydZGG85KTkpr7Nt5U1OUs0egJ1K0iJ1mg&dl=1',
x86_64: 'https://dl.dropboxusercontent.com/s/k89o1x1a3fwoamu/expat-2.1.0-chromeos-x86_64.tar.gz?token_hash=AAGBLOil45Zg7G2RlFlfDUxKfeDyTP3uUWjfBvGQrOjAYA&dl=1'
})
binary_sha1 ({
armv7l: '5d12c1fae84601735a803f9ed10cc4e113f47ab7',
armv7l: '42ddf5b8e5db3bd7898bbc43997c95f488799ba8',
i686: '9ab42ec03d06cc64d5d9944cb4cc7eaa61a0af84',
x86_64: '3ac96a0e02c1117718d15bcd4976ef4bcef1a9ac'
})
......
......@@ -4,12 +4,6 @@ class Gawk < Package
version '4.1.1'
source_url 'http://ftp.gnu.org/gnu/gawk/gawk-4.1.1.tar.gz'
source_sha1 '0480d23fffbf04bfd0d4ede4c1c3d57eb81cc771'
binary_url({
armv7l: "https://dl.dropboxusercontent.com/s/b7w6l92az4dmitf/gawk-4.1.1-chromeos-armv7l.tar.xz",
})
binary_sha1({
armv7l: "470c7f9360d563d88031d793f7bbe39a972e2209",
})
def self.build
system './configure --prefix=/usr/local'
......
......@@ -3,14 +3,13 @@ require 'package'
class Gcc < Package
version '4.8.1-baseline'
# GCC for ARM is taken from http://davy.nyacom.net/cros-arm-dev.html and modified little to fit crew package.
binary_url ({
armv7l: "https://dl.dropboxusercontent.com/s/fajmnew33ah8k34/gcc-4.9.x-google-20150123-chromeos-armv7l.tar.xz",
armv7l: "https://dl.dropboxusercontent.com/s/b0zmlefc40ddgvn/gcc-4.9.x-chromeos-armv7l.tar.xz",
i686: "https://dl.dropboxusercontent.com/s/c06pcge8ogsqfcd/gcc-4.8.1-baseline-chromeos-i686.tar.gz?token_hash=AAFLnE_8iL_lAnGtAAVM5G_sYqejA44jGW8D9r0a8xCjrQ&dl=1",
x86_64: "https://dl.dropboxusercontent.com/s/kk52ic170je87fc/gcc-4.8.1-baseline-chromeos-x86_64.tar.gz?token_hash=AAGcQBSj1y8OfHXUhsayxlFfvk4LRszY07ehx_Z6UoyNEg&dl=1"
})
binary_sha1 ({
armv7l: "f1a50672bb0d21496ae494f07da4d298773d146e",
armv7l: "a3c0465b7664057f132f6fd5d65c4dcd75590b57",
i686: "d720c9a804d26728d730b93748072ffa6df7ee3d",
x86_64: "59932a73cd149ae82b4b5c277b734788c1efab44"
})
......
require 'package'
class Gdbm < Package
version '1.12'
source_url 'ftp://ftp.gnu.org/gnu/gdbm/gdbm-1.12.tar.gz'
source_sha1 '86513e8871bb376bc014e9e5a2d18a8e0a8ea2f5'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,12 +3,12 @@ require 'package'
class Gettext < Package
version '0.18.3.1'
binary_url ({
armv7l: 'https://dl.dropboxusercontent.com/s/c6pqmdrvl6epblv/gettext-0.18.3.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.dropboxusercontent.com/s/wmfctz7x8bj6cwe/gettext-0.18.3.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.dropboxusercontent.com/s/xmsfr7q9r99dhcs/gettext-0.18.3.1-chromeos-i686.tar.gz?token_hash=AAGJo0pqudCOkGU3NHOcBuFG2zLwWpapNXLX-zUJLcS3aA&dl=1',
x86_64: 'https://dl.dropboxusercontent.com/s/nidj0ehxwserhz6/gettext-0.18.3.1-chromeos-x86_64.tar.gz?token_hash=AAFn-kdXlB23HDVDCKTn9n_U-i9LFNCIB6HU0jSUiJTctA&dl=1'
})
binary_sha1 ({
armv7l: '985fb8b666289b8abb3a820423a10860fa35e8ef',
armv7l: '5224004048dd80bb523cd0091ad577b21448790b',
i686: '1ecbff59d6134c7f8804bcf18fb2b1b7a9a6d4c0',
x86_64: '22174347defa4f034a360078c248a61710c5f854'
})
......
......@@ -3,12 +3,12 @@ require 'package'
class Git < Package
version '1.8.4'
binary_url ({
armv7l: 'https://dl.dropboxusercontent.com/s/axzamdiwfl1cbnq/git-1.8.4-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.dropboxusercontent.com/s/lnz5hmjv48d14f2/git-1.8.4-chromeos-armv7l.tar.xz',
i686: 'https://dl.dropboxusercontent.com/s/g3binxopw5nfky1/git-1.8.4-chromeos-i686.tar.gz?token_hash=AAEWnMNBfozSIzLD1unbYGJzT4FGkEfJmLFQ-3uzydfT_A&dl=1',
x86_64: 'https://dl.dropboxusercontent.com/s/i7vs9wfk94tsrzt/git-1.8.4-chromeos-x86_64.tar.gz?token_hash=AAHyvjayN7THoxlryZaxQ2Ejm9xyD6bZCqXZM81hYRC8iQ&dl=1'
})
binary_sha1 ({
armv7l: '6dafe06d2c430f492eba939982419e167e7e4e26',
armv7l: '084a3b9bb90c572e7c5b12aae485715f145053e5',
i686: '8c1bf4bcffb0e9c17bf20dd05981e86ea34d5d65',
x86_64: '067cb6c36616ac30999ab97e85f3dc0e9d1d57f4'
})
......
......@@ -2,14 +2,13 @@ require 'package'
class Glibc < Package
version '2.17.90-baseline'
# arm use 2.19 by system, so 2.19 here also
binary_url ({
armv7l: "https://dl.dropboxusercontent.com/s/nxyjvbea59nwwdi/glibc-2.19-minimum-chromeos-armv7l.tar.xz",
armv7l: "https://dl.dropboxusercontent.com/s/18kk32dzt17mxnu/glibc-2.19-chromeos-armv7l.tar.xz",
i686: "https://dl.dropboxusercontent.com/s/dic47f8eqxhpf89/glibc-2.17.90-baseline-chromeos-i686.tar.gz?token_hash=AAHx_77YtWLLnkjCJRaCJt7RsdKrfkT6lgKS9BZc4O-0Pg&dl=1",
x86_64: "https://dl.dropboxusercontent.com/s/x3tu160i7pmn6tp/glibc-2.17-baseline-chromeos-x86_64.tar.gz?token_hash=AAG794JG65HjzHMcAyAysQUbEPMUci1bZJPREj3ztCtnBg&dl=1"
})
binary_sha1 ({
armv7l: "ad342eb260c78d2951b3aaf3f6f1f4519ceb8dd4",
armv7l: "fd1ce2302b806a7ebdb4147bc89e0a29bcd90325",
i686: "3c3a0b86ed4591ec59daeb24d2dcda139574de1b",
x86_64: "d818775f74d91692828f12321044cd95fc649cf0"
})
......
......@@ -3,12 +3,12 @@ require 'package'
class Gmp < Package
version "5.1.2"
binary_url ({
armv7l: "https://dl.dropboxusercontent.com/s/kut6emhlda9pbc9/dummy-1.0.0-chromeos-armv7l.tar.gz",
armv7l: "https://dl.dropboxusercontent.com/s/zk1odzu8wxtffxm/gmp-5.1.2-chromeos-armv7l.tar.xz",
i686: "https://dl.dropboxusercontent.com/s/9cwila1kaomsyl2/gmp-5.1.2-chromeos-i686.tar.gz?token_hash=AAHO9VxBpvXU2GPWBwimsp4hL8DADIItfNnIaFbfcyynMg&dl=1",
x86_64: "https://dl.dropboxusercontent.com/s/zp1mw0l93jcg35e/gmp-5.1.3-chromeos-x86_64.tar.gz?token_hash=AAHa75_Uu5zFQlbQUbse19d_vhIAmEnZ8bYpshE6giSXGw&dl=1"
})
binary_sha1 ({
armv7l: "049db60338a74d798e72afabe05097f3a4c4f7cd",
armv7l: "daa46fe9c7a02542b58d9baeebdfafdbc7596e96",
i686: "b03b9508463588bfe9d09303c0725068cddd8810",
x86_64: "2aee1fee1e4b98261127a4c73f3f88670f1c8162"
})
......
......@@ -4,10 +4,22 @@ class Go < Package
version '1.7.4'
source_url 'https://storage.googleapis.com/golang/go1.7.4.src.tar.gz'
source_sha1 '0fb305c827c8794cfda7e437befa6101a2d06b2e'
# go is required to build versions of go > 1.4
if `which go` == ''
depends_on 'go_bootstrap'
end
def self.build
FileUtils.cd('src') do
system "TMPDIR=/usr/local/tmp ./make.bash"
# install with go_bootstrap if go is not in the path
if `which go` == ''
system "GOROOT_BOOTSTRAP=/usr/local/lib/go_bootstrap/go \
TMPDIR=/usr/local/tmp \
./make.bash"
else
system "TMPDIR=/usr/local/tmp ./make.bash"
end
end
end
......@@ -17,10 +29,10 @@ class Go < Package
FileUtils.mv Dir.pwd, dest
puts "--------"
puts "Installed Go for linux/amd64 in /usr/local/lib/go"
puts "Installed Go for #{ARCH} in /usr/local/lib/go"
puts "Make sure to set go environment variables."
puts "Minimal:"
puts "\texport GOROOT=/usr/local/lib/go"
puts "\texport PATH=$GOROOT/bin"
puts "\texport PATH=$PATH:$GOROOT/bin"
end
end
require 'package'
class Go_bootstrap < Package
version '1.4'
source_url 'https://storage.googleapis.com/golang/go1.4-bootstrap-20161024.tar.gz'
source_sha1 '47e02e41aa99dea899b65ebf7b50ec706141be8c'
def self.build
FileUtils.cd('src') do
system "TMPDIR=/usr/local/tmp ./make.bash"
end
end
def self.install
dest = "#{CREW_DEST_DIR}/usr/local/lib/go_bootstrap"
system "mkdir", "-p", dest
FileUtils.mv Dir.pwd, dest
puts "--------"
puts "Installed Go_bootstrap for #{ARCH} in /usr/local/lib/go_bootstrap"
end
end
\ No newline at end of file
require "package"
class Gperf < Package
version "3.0.4"
source_url "http://ftp.gnu.org/pub/gnu/gperf/gperf-3.0.4.tar.gz"
source_sha1 "e32d4aff8f0c730c9a56554377b2c6d82d0951b8"
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Groff < Package
version '1.22.3'
source_url 'http://ftp.gnu.org/gnu/groff/groff-1.22.3.tar.gz'
source_sha1 '61a6808ea1ef715df9fa8e9b424e1f6b9fa8c091'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Inetutils < Package
version '1.9.4'
source_url 'http://ftp.gnu.org/gnu/inetutils/inetutils-1.9.4.tar.gz' # Software source tarball url
source_sha1 'defae98a27c0e9516c4ef2321a374a3645adb3b9'
depends_on 'buildessential'
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
end
require 'package'
class Jq < Package
version '1.5'
source_url 'https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz'
source_sha1 '6eef3705ac0a322e8aa0521c57ce339671838277'
def self.build
system "./configure",
"--prefix=/usr/local",
"--disable-maintainer-mode", # disable make rules and dependencies not useful
"--disable-docs" # there's no support for manpages
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -4,12 +4,6 @@ class Less < Package
version '451'
source_url 'ftp://ftp.gnu.org/gnu/less/less-451.tar.gz'
source_sha1 'ee95be670e8fcc97ac87d02dd1980209130423d0'
binary_url({
armv7l: "https://dl.dropboxusercontent.com/s/tsyva5iweqp2blq/less-451-chromeos-armv7l.tar.xz",
})
binary_sha1({
armv7l: "c36725933672985b649073b0a6345e68c6bea96d",
})
depends_on 'buildessential'
depends_on 'ncurses'
......
require 'package'
class Libffi < Package
version '3.0.13'
source_url 'ftp://sourceware.org/pub/libffi/libffi-3.0.13.tar.gz'
source_sha1 'f5230890dc0be42fb5c58fbf793da253155de106'
depends_on 'autoconf'
depends_on 'automake'
def self.build
system "./configure", "--disable-debug", "--disable-dependency-tracking"
end
def self.install
system "make", "install"
end
end
require 'package'
class Libpipeline < Package
version '1.4.1'
source_url 'https://download.savannah.gnu.org/releases/libpipeline/libpipeline-1.4.1.tar.gz'
source_sha1 'b31cc955f22b1aa4545dc8d00ddbde831936594f'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,14 +5,6 @@ class Libsigsegv < Package
source_url 'ftp.gnu.org/gnu/libsigsegv/libsigsegv-2.10.tar.gz'
source_sha1 'b75a647a9ebda70e7a3b33583efdd550e0eac094'
# arm compiler doesn't recognize -m32 option, so I made binary for the ease of use
binary_url({
armv7l: "https://dl.dropboxusercontent.com/s/8tcvv9s16mmtdgs/libsigsegv-2.10-chromeos-armv7l.tar.xz",
})
binary_sha1({
armv7l: "004a4c6500946c7585c6ef782c912e36a056d8df",
})
def self.build
system "./configure --libdir=/usr/local/lib#{SHORTARCH}/ CC=\"gcc -m#{SHORTARCH}\" CFLAGS=\" -fPIC\""
system "make"
......
......@@ -3,12 +3,12 @@ require 'package'
class Libssh2 < Package
version '1.4.3'
binary_url ({
armv7l: 'https://dl.dropboxusercontent.com/s/rm6ww0r2afbsdvz/libssh2-1.4.3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.dropboxusercontent.com/s/fq23kj42gsifcvi/libssh2-1.4.3-chromeos-armv7l.tar.xz',
i686: 'https://dl.dropboxusercontent.com/s/zjnild1c2i10h53/libssh2-1.4.3-chromeos-i686.tar.gz?token_hash=AAG_aZ7_dPKOiOMCMUiW2g3mLkz8UKHnGn5jLcDAGcNCIA&dl=1',
x86_64: 'https://dl.dropboxusercontent.com/s/frzkbbnf35ie6ns/libssh2-1.4.3-chromeos-x86_64.tar.gz?token_hash=AAEk26mEOXT0MX05nM9gG6yNDPkL6KmLazRxKqQCR6qs8Q&dl=1'
})
binary_sha1 ({
armv7l: '1f2554b8199dba88d0f4fee5c9b3284da6657c24',
armv7l: '559f37b727f181ad0b623dba352a9efd0facf51a',
i686: '21b4b1a9608b12c0b3d1e6f0b6615f4a4152acb3',
x86_64: '903aae8255c47c6052003837be132ff39582422b'
})
......
require 'package'
class Libtiff < Package
version '4.0.7'
source_url 'ftp://download.osgeo.org/libtiff/tiff-4.0.7.tar.gz'
source_sha1 '2c1b64478e88f93522a42dd5271214a0e5eae648'
def self.build
system "./configure --libdir=/usr/local/lib#{SHORTARCH}/ CC=\"gcc -m#{SHORTARCH}\" CFLAGS=\" -fPIC\""
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,12 +3,12 @@ require 'package'
class Linuxheaders < Package
version '3.4.0'
binary_url ({
armv7l: "https://dl.dropboxusercontent.com/s/kut6emhlda9pbc9/dummy-1.0.0-chromeos-armv7l.tar.gz",
armv7l: "https://dl.dropboxusercontent.com/s/fvyzy5qpouj819z/linux-headers-3.14-chromeos-armv7l.tar.xz",
i686: "https://dl.dropboxusercontent.com/s/mdzdoyq7dtnz682/linux-headers-3.4.0-chromeos-i686.tar.gz?token_hash=AAE4yw5oH_SfZ3lAx02mFP603rnjmoB9Gp4vqTY14NsA-A&dl=1",
x86_64: "https://dl.dropboxusercontent.com/s/3ec3fjpls0t2iqn/linuxheaders-3.8.11-chromeos-x86_64.tar.gz?token_hash=AAFl1_1I3FtwGdoGvGJuGrGUqzaDkhumPzsGJMX5pYhZyQ&dl=1"
})
binary_sha1 ({
armv7l: "049db60338a74d798e72afabe05097f3a4c4f7cd",
armv7l: "1d9103909d0f7108ecff9202933bd5870b3d0fb8",
i686: "31c933f3a4e82fd9310b0f5b32d79c9a51514fee",
x86_64: "c113e16d72147429f774ba6678d72a221b19a5bc"
})
......
require 'package'
class Lua < Package
version '5.3.1'
source_url 'http://www.lua.org/ftp/lua-5.3.1.tar.gz'
source_sha1 '1676c6a041d90b6982db8cef1e5fb26000ab6dee'
version '5.3.3'
source_url 'https://www.lua.org/ftp/lua-5.3.3.tar.gz'
source_sha1 'a0341bc3d1415b814cc738b2ec01ae56045d64ef'
depends_on 'readline'
depends_on 'ncurses'
......
......@@ -3,12 +3,12 @@ require 'package'
class Make < Package
version '3.82'
binary_url ({
armv7l: "https://dl.dropboxusercontent.com/s/zadlpkkj73m10an/make-3.82-chromeos-armv7l.tar.xz",
armv7l: "https://dl.dropboxusercontent.com/s/2s68lllqlsix15i/make-3.82-chromeos-armv7l.tar.xz",
i686: "https://dl.dropboxusercontent.com/s/f6pg4bkg6m3vn7q/make-3.82-chromeos-i686.tar.gz?token_hash=AAHP__I3leN8BCLdP0pLbkNopoFGGhDuKX0sN-I6Zx4JYg&dl=1",
x86_64: "https://dl.dropboxusercontent.com/s/t818zxgixti6wvl/make-3.82-chromeos-x86_64.tar.gz?token_hash=AAGLBxpwv2mZj7dAgnzdmfFcO8G28wbCfb0lPM8_qwRtSA&dl=1"
})
binary_sha1 ({
armv7l: "b25e550b11ce3344744c26dad4089bfbc19a0fdb",
armv7l: "eb98493bf26f8ce670c12005b6a6f3c93f9a634d",
i686: "ccb01c7358e5abdf8b06305eb31b1969b8b174f7",
x86_64: "2bab91837440d101eb55129f41a7837101249b46"
})
......
require 'package'
class Mandb < Package
version '2.7.6'
source_url 'https://download.savannah.gnu.org/releases/man-db/man-db-2.7.6.tar.xz'
source_sha1 '35a10f80d5cf6411d5c73376fcddcec1539e788a'
depends_on 'libpipeline'
depends_on 'pkgconfig'
depends_on 'gdbm'
depends_on 'groff'
depends_on 'less'
def self.build
system './configure',
'--with-systemdtmpfilesdir=/usr/local/lib/tmpfiles.d', # we can't write to /usr/lib/tmpfiles.d
'--disable-cache-owner', # we can't create the user 'man'
'--with-pager=/usr/local/bin/less' # the pager is not at the default location
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
puts ""
puts "You will have to change the default PAGER env variable to be able to use mandb:"
puts "echo \"export PAGER=/usr/local/bin/less\" >> ~/.bashrc && . ~/.bashrc"
end
end
......@@ -3,12 +3,12 @@ require 'package'
class Mpc < Package
version '1.0.1'
binary_url ({
armv7l: "https://dl.dropboxusercontent.com/s/kut6emhlda9pbc9/dummy-1.0.0-chromeos-armv7l.tar.gz",
armv7l: "https://dl.dropboxusercontent.com/s/l302ru0xdq9qtsu/mpc-1.0.1-chromeos-armv7l.tar.xz",
i686: "https://dl.dropboxusercontent.com/s/3o6uc8n4uy3oved/mpc-1.0.1-chromeos-i686.tar.gz?token_hash=AAH_OlvQWGUF7lyFhV3DXXgYRM1fupgKoHIwyiVmmVyWUQ&dl=1",
x86_64: "https://dl.dropboxusercontent.com/s/qr1x2fr1z0af26o/mpc-1.0.1-chromeos-x86_64.tar.gz?token_hash=AAFGK8OM8sm4k02lBAudZg8olgKxs_HmieFFqU6MZZONOA&dl=1"
})
binary_sha1 ({
armv7l: "049db60338a74d798e72afabe05097f3a4c4f7cd",
armv7l: "861960c75696ff613a410e3a1ab406c7128a790c",
i686: "f11c6e74e9059bf400b0978e6e05fe67c7f3dfe9",
x86_64: "24c4be4ea026d2d6e432a0aa9edb6dd27cf3e7df"
})
......
......@@ -3,12 +3,12 @@ require 'package'
class Mpfr < Package
version '3.1.2'
binary_url ({
armv7l: "https://dl.dropboxusercontent.com/s/kut6emhlda9pbc9/dummy-1.0.0-chromeos-armv7l.tar.gz",
armv7l: "https://dl.dropboxusercontent.com/s/56np7jwgybpcel8/mpfr-3.1.2-chromeos-armv7l.tar.xz",
i686: "https://dl.dropboxusercontent.com/s/lo9ks3g7ar3zpfu/mpfr-3.1.2-chromeos-i686.tar.gz?token_hash=AAH1GlLfYtUs4uxl1ayeGTBe8RJ5uTXzOAsXgSlv8G5rrA&dl=1",
x86_64: "https://dl.dropboxusercontent.com/s/ev2a1yha3gm1hwy/mpfr-3.1.2-chromeos-x86_64.tar.gz?token_hash=AAErYQPCHkhALqnX4Y0LjATZITtD2qoKNbkdn67LOmRVRQ&dl=1"
})
binary_sha1 ({
armv7l: "049db60338a74d798e72afabe05097f3a4c4f7cd",
armv7l: "cad1a1d66f52199733d84638b7cb4178069efdb9",
i686: "eb81b9bb83ebb43b94ab33e43293f1df3bcbad7c",
x86_64: "a80c48bee7e6e8ddcd1771c4fd7708d89f2abb9c"
})
......
require 'package'
class Ncftp < Package
version '3.2.6'
source_url 'ftp://ftp.ncftp.com/ncftp/ncftp-3.2.6-src.tar.gz' # Software source tarball url
source_sha1 'e2351802b40db18d6cbab2537a9644cd858b934d'
depends_on 'buildessential'
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
end
......@@ -5,14 +5,6 @@ class Ncurses < Package
source_url 'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz'
source_sha1 '3e042e5f2c7223bffdaac9646a533b8c758b65b5'
# arm has 5.9 ncurses library in system, so leave it as is
binary_url({
armv7l: "https://dl.dropboxusercontent.com/s/kut6emhlda9pbc9/dummy-1.0.0-chromeos-armv7l.tar.gz",
})
binary_sha1({
armv7l: "049db60338a74d798e72afabe05097f3a4c4f7cd",
})
depends_on "diffutils"
def self.build
......
require 'package'
class Netcat < Package
version '0.7.1'
source_url 'http://downloads.sourceforge.net/project/netcat/netcat/0.7.1/netcat-0.7.1.tar.gz'
source_sha1 'b5cbc52a7ceed2fd5c4f5081f5747130b2d0fe01'
def self.build
system "./configure --prefix=/usr/local"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Nethack4 < Package
# "nethack4" fork of nethack with a few patches and a modern build system
version '4.3.0-beta2'
source_url 'http://nethack4.org/media/releases/nethack4-4.3-beta2.tar.gz'
source_sha1 'e261c0ac618589a47e63525ed56eb17e72b14754'
depends_on 'buildessential'
depends_on 'ncurses'
depends_on 'bison'
depends_on 'flex'
depends_on 'perl'
def self.build
target=CREW_BREW_DIR+"nethack4-4.3-beta2/build"
system "mkdir -p " + target
Dir.chdir target do
#build with rpath pointing at /usr/local
system "/usr/local/bin/perl ../aimake --config-only -i /usr/local/ --directory-layout=prefix --without=gui"
system "/usr/local/bin/perl ../aimake"
end
end
def self.install
target=CREW_BREW_DIR+"nethack4-4.3-beta2/build"
Dir.chdir target do
#install in destdir so package manager can keep track
system "/usr/local/bin/perl ../aimake --install-only -i #{CREW_DEST_DIR}/usr/local/ --directory-layout=prefix --without=gui"
end
end
end
require 'package'
class Newlisp < Package
version '10.7.0'
source_url 'http://www.newlisp.org/downloads/newlisp-10.7.0.tgz'
source_sha1 '8c256d134e4879d97f83087585cfe90d462def22'
#depends_on 'readline'
#depends_on 'libffi'
def self.build
# This works but readline and ffi are disabled. When using the
# standard ./configure it's looking in the wrong place for ffi.h
# and readline isn't linked against libtermcap/ncurses.
#
# Looks like the readline issue is the system libreadline vs the
# one shipped with bash.
#
# Ideally I'll figure out how to get it building properly as follows:
# system "./configure --prefix=/usr/local --enable-readline --enable-ffi"
system "./configure-alt --prefix=/usr/local"
system "make"
system "make", "check"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Nmap < Package
version '7.31'
source_url 'https://nmap.org/dist/nmap-7.31.tgz' # Software source tarball url
source_sha1 'ccf1bb34463f39a645d9a924ce9e3c9e15eefbbf'
depends_on 'buildessential'
def self.build # self.build contains commands needed to build the software from source
system "./configure --with-pcap=linux --without-zenmap"
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
end
......@@ -3,12 +3,12 @@ require 'package'
class Perl < Package
version '5.16.3'
binary_url ({
armv7l: 'https://dl.dropboxusercontent.com/s/84esb5d5638plvn/perl-5.16.3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.dropboxusercontent.com/s/s1rae23cgzwaf7h/perl-5.16.3-chromeos-armv7l.tar.xz',
i686: 'https://dl.dropboxusercontent.com/s/qwbwhvqed0yyv3l/perl-5.16.3-chromeos-i686.tar.gz?token_hash=AAHjq1OrZ3iNYerA9y6QIPtsn3fOnW5QeIFbYlBbBN-OkA&dl=1',
x86_64: 'https://dl.dropboxusercontent.com/s/gg2q9tsvy2ybf80/perl-5.18.1-chromeos-x86_64.tar.gz?token_hash=AAFbAeYB604esg7FRBM_TeBh2hiDg2Bw8eZfPHFH8zCdHw&dl=1'
})
binary_sha1 ({
armv7l: '4ce1cbeea2cd79610f8a681a9c094370590c981f',
armv7l: '1ae814842e24bbe4e6b3da5d13e1f7e8862957ba',
i686: 'e2a8c5280b8a4abec70256f41d5e5b04253d6796',
x86_64: '5bf7c1762499a40f2ce8684be6f5699c6a4658e1'
})
......
......@@ -3,12 +3,12 @@ require 'package'
class Python < Package
version '3.3.2'
binary_url ({
armv7l: 'https://dl.dropboxusercontent.com/s/1uwhvkteeqwxy38/python-3.3.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.dropboxusercontent.com/s/xsu18iggr51ewqh/python-3.3.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.dropboxusercontent.com/s/mxgfmq992hhiawk/python-3.3.2-chromeos-i686.tar.gz?token_hash=AAFA2YzFp293uyV3zYfP70iwCk8oH9HCLKMTrK0dtMU8GQ&dl=1',
x86_64: 'https://dl.dropboxusercontent.com/s/r1zvmza51hrr87q/python-3.3.2-chromeos-x86_64.tar.gz?token_hash=AAHIdz6pWcOrfty7C8ACuRcLDq0d0ERYs0jCgOPLn5USUQ&dl=1'
})
binary_sha1 ({
armv7l: '0bca057b1ce5c368fa8a80353b5b9f0e6eedfb89',
armv7l: 'b32ee2db9c14d7e2d1df6d43836312521a3ece91',
i686: 'a985a4bba243b4fa701db302dc2fa554aef76f1c',
x86_64: 'fbfe0946c2f9191bd6110705994d459e373a8b09'
})
......
require 'package'
class R < Package
version '3.3.2'
source_url 'https://cran.rstudio.com/src/base/R-3/R-3.3.2.tar.gz'
source_sha1 '0e39e9c2d28fe6bab9c55ca23e08ba8727fd2fca'
def self.build
system './configure',
'--with-x=no' # X is not available
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Rsync < Package
version '3.1.1'
source_url 'http://rsync.samba.org/ftp/rsync/src/rsync-3.1.1.tar.gz' # software source tarball url
source_sha1 'c84faba04f721d393feccfa0476bfeed9b5b5250'
version '3.1.2'
source_url 'http://rsync.samba.org/ftp/rsync/src/rsync-3.1.2.tar.gz' # software source tarball url
source_sha1 '0d4c7fb7fe3fc80eeff922a7c1d81df11dbb8a1a'
depends_on 'buildessential'
......
......@@ -3,12 +3,12 @@ require 'package'
class Ruby < Package
version '2.0.0p247-chromeos1'
binary_url ({
armv7l: "https://dl.dropboxusercontent.com/s/w4y8b0an136fk3i/ruby-2.0.0p247-chromeos-armv7l.tar.xz",
armv7l: "https://dl.dropboxusercontent.com/s/02afb4qm4ugl0os/ruby-2.0.0p247-chromeos-armv7l.tar.xz",
i686: "https://dl.dropboxusercontent.com/s/tufbuqcn80ubypx/ruby-2.0.0p247-chromeos-i686.tar.gz&dl=1",
x86_64: "https://www.dropbox.com/s/x3jt0z5i1r4afyv/ruby-2.0.0p247-chromeos-x86_64.tar.gz?dl=1"
})
binary_sha1 ({
armv7l: "0340b0dfd35e94d634a3f4a5647e13d496aea4e0",
armv7l: "f575e27e9b20cbb6f1c77cdd87270748e83cf6b2",
i686: "49eeba5d542e4c3e6aa3686f215485e0946fb99a",
x86_64: "f1de1ef5ed690c3b78f4e40208a4fb93e227c4ed"
})
......
require 'package'
class Scrollz < Package
version '2.3'
source_url 'http://www.scrollz.info/download/ScrollZ-2.3.tar.gz' # Software source tarball url
source_sha1 '991e6acfdf95d84ca159a37336c2d45a624d432f'
depends_on 'buildessential'
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
end
require 'package'
class Socat < Package
version '1.7.3.1'
source_url 'http://www.dest-unreach.org/socat/download/socat-1.7.3.1.tar.gz'
source_sha1 'a6f1d8ab3e85f565dbe172f33a9be6708dd52ffb'
depends_on 'readline'
depends_on 'openssl'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -22,7 +22,11 @@ class Unzip < Package
def self.build
self.patch
system "make -f unix/Makefile generic"
if ARCH == "armv7l"
system "make -f unix/Makefile linux_noasm"
else
system "make -f unix/Makefile generic"
end
end
def self.install
......
require 'package'
class Vim < Package
version '7.4'
source_url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2'
source_sha1 '601abf7cc2b5ab186f40d8790e542f86afca86b7'
version '8.0'
source_url 'ftp://ftp.vim.org/pub/vim/unix/vim-8.0.tar.bz2'
source_sha1 '1f852a99d667bd675d2f2a70e82094bdbe844108'
depends_on 'ncurses'
depends_on 'perl'
......@@ -11,7 +11,7 @@ class Vim < Package
depends_on 'ruby'
def self.build
system './configure --prefix=/usr/local --enable-gui=no --with-features=huge --without-x --disable-nls --with-tlib=ncurses --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --with-ruby-command=/usr/local/bin/ruby'
system './configure --prefix=/usr/local --enable-gui=no --with-features=huge --without-x --disable-nls --enable-multibyte --with-tlib=ncurses --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --with-ruby-command=/usr/local/bin/ruby --disable-selinux'
system "make"
end
......
......@@ -3,12 +3,12 @@ require 'package'
class Zlibpkg < Package
version '1.2.8'
binary_url ({
armv7l: 'https://dl.dropboxusercontent.com/s/0abbkyzj6unp5lz/zlibpkg-1.2.8-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.dropboxusercontent.com/s/7y34bh0wph4iipa/zlibpkg-1.2.8-chromeos-armv7l.tar.xz',
i686: 'https://dl.dropboxusercontent.com/s/ljhhvr12u1izayj/zlib-1.2.8-chromeos-i686.tar.gz?token_hash=AAEABTatYkxOOybZGoCj3Kg_DKEbFbSfolzZklfHwCsP_A&dl=1',
x86_64: 'https://dl.dropboxusercontent.com/s/h4lqj0rnand0jqu/zlib-1.2.8-chromeos-x86_64.tar.gz?token_hash=AAGabAMhX4CGpzhpkcuKMmmWPxFZDiNOC-r9B0o7x4D7eQ&dl=1'
})
binary_sha1 ({
armv7l: 'ff64005a9e5c953a1d4b05cfa3a1a5d36006f969',
armv7l: '85980c0e6765e6264b191db1fa4c58508e663d3f',
i686: 'e02974780bfb3bf46940183043d15897a765ab4e',
x86_64: 'cb764e22b68b7e2884372708b5b585d11efca972'
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment