Commit 5f8da72e authored by Yan Couto's avatar Yan Couto

Merging crew refactor and importing lib/color

parents c4f97ee1 64748405
......@@ -37,28 +37,36 @@ Then download and run the installation script below:
wget -q -O - https://raw.github.com/skycocker/chromebrew/master/install.sh | bash
On a rooted Google OnHub, the command need to be run with "chronos" user. In order to make sudo work, a password is needed for chronos user.
passwd chronos
# Choose your password
su - chronos
curl -L https://raw.github.com/skycocker/chromebrew/master/install.sh | bash
# When prompt, use the password you just created for "chronos" user.
Usage
-----
crew <command> <package> <keep[temporary files]>
crew <command> [-k|--keep] <package1> [<package2> ...]
Where available commands are:
* build [build a package from source and store the archive and checksum in the current working directory]
* download [download a package to `CREW_BREW_DIR` (`/usr/local/tmp/crew` by default), but don't install it]
* build [build package(s) from source and store the archive and checksum in the current working directory]
* download [download package(s) to `CREW_BREW_DIR` (`/usr/local/tmp/crew` by default), but don't install]
* help [get information about command usage]
* install [install a package along with its dependencies after prompting for confirmation]
* remove [remove a package]
* install [install package(s) along with dependencies after prompting for confirmation]
* remove [remove package(s)]
* search [look for a package]
* update [update crew itself]
* upgrade [update all or a specific package]
* upgrade [update all or specific package(s)]
* whatprovides [regex search for package(s) that contains file(s)]
Available packages are listed in the [packages directory](https://github.com/skycocker/chromebrew/tree/master/packages).
Chromebrew will wipe its `BREW_DIR` (`/usr/local/tmp/crew` by default) after installation unless you pass "keep" as the last parameter when running "crew install".
Chromebrew will wipe its `BREW_DIR` (`/usr/local/tmp/crew` by default) after installation unless you pass `-k` or `--keep` when running `crew install`.
crew install <package> keep
crew install --keep <package1> [<package2> ...]
License
-------
......
#!/usr/bin/env ruby
require_relative 'lib/color'
# Disallow sudo
abort "Chromebrew should not be run as root.".lightred if Process.uid == 0
require 'find'
require 'net/http'
require 'uri'
require 'digest/sha2'
require 'json'
require 'fileutils'
require_relative 'lib/color'
require_relative 'lib/const'
# Add lib to LOAD_PATH
......@@ -33,9 +37,6 @@ Usage:
version 0.4.3
DOCOPT
# Disallow sudo
abort "Chromebrew should not be run as root.".lightred if Process.uid == 0
# Parse arguments using docopt
require_relative 'lib/docopt'
begin
......@@ -298,7 +299,7 @@ def download
sha256sum = @pkg.binary_sha256[@device[:architecture]]
end
Dir.chdir CREW_BREW_DIR do
system('wget', '--continue', '--no-check-certificate', url, '-O', filename)
system('curl', '-C', '-', '--insecure', '-L', '-#', url, '-o', filename)
abort 'Checksum mismatch. :/ Try again.'.lightred unless
Digest::SHA256.hexdigest( File.read("./#{filename}") ) == sha256sum
end
......@@ -350,8 +351,8 @@ def build_and_preconfigure (target_dir)
end
end
def post_install (target_dir)
Dir.chdir target_dir do
def post_install (dest_dir)
Dir.chdir dest_dir do
puts "Performing post-install..."
@pkg.postinstall
end
......@@ -543,7 +544,7 @@ def install
install_package dest_dir
# perform post-install process
post_install target_dir
post_install dest_dir
end
#add to installed packages
......
......@@ -3,7 +3,7 @@ OWNER="skycocker"
REPO="chromebrew"
BRANCH="master"
URL="https://raw.githubusercontent.com/$OWNER/$REPO/$BRANCH"
CREW_PREFIX=/usr/local
CREW_PREFIX=${CREW_PREFIX:-/usr/local}
CREW_LIB_PATH=$CREW_PREFIX/lib/crew/
CREW_CONFIG_PATH=$CREW_PREFIX/etc/crew/
CREW_BREW_DIR=$CREW_PREFIX/tmp/crew/
......@@ -26,7 +26,7 @@ case "$architecture" in
esac
#This will allow things to work without sudo
sudo chown -R `id -u`:`id -g` /usr/local
sudo chown -R `id -u`:`id -g` "${CREW_PREFIX}"
#prepare directories
for dir in $CREW_LIB_PATH $CREW_CONFIG_PATH $CREW_CONFIG_PATH/meta $CREW_BREW_DIR $CREW_DEST_DIR $CREW_PACKAGES_PATH; do
......@@ -41,32 +41,36 @@ case "$architecture" in
"aarch64")
urls+=('https://dl.bintray.com/chromebrew/chromebrew-cross/ruby-2.4.1-chromeos-armv7l.tar.xz')
sha256s+=('6c0ef23447d4591739dc00fa9b021a4d83291acbc37330e659d257efed474caf')
urls+=('https://dl.bintray.com/chromebrew/chromebrew-cross/git-2.13.0-chromeos-armv7l.tar.xz')
sha256s+=('d66cedbf908e39275db149407fe631f497ee82bf3ae3ea433b1e8c31c40a6c25')
urls+=('https://dl.bintray.com/chromebrew/chromebrew/git-2.14.1-1-chromeos-armv7l.tar.xz')
sha256s+=('8548a8273beeb7956fed40e5db078d624b3d0f9c7b5897980b31aaba5d0837b8')
urls+=('https://dl.bintray.com/chromebrew/chromebrew-cross/libssh2-1.8.0-chromeos-armv7l.tar.xz')
sha256s+=('94662756e545c73d76c37b2b83dd9852ebe71f4a17fc80d85db0fbaef72d4ca3')
;;
"armv7l")
if ! type "xz" > /dev/null; then
urls+=('https://github.com/snailium/chrome-cross/releases/download/v1.8.1/xz-5.2.3-chromeos-armv7l.tar.gz')
sha256s+=('4dc9f086ee7613ab0145ec0ed5ac804c80c620c92f515cb62bae8d3c508cbfe7')
fi
urls+=('https://dl.bintray.com/chromebrew/chromebrew-cross/ruby-2.4.1-chromeos-armv7l.tar.xz')
sha256s+=('6c0ef23447d4591739dc00fa9b021a4d83291acbc37330e659d257efed474caf')
urls+=('https://dl.bintray.com/chromebrew/chromebrew-cross/git-2.13.0-chromeos-armv7l.tar.xz')
sha256s+=('d66cedbf908e39275db149407fe631f497ee82bf3ae3ea433b1e8c31c40a6c25')
urls+=('https://dl.bintray.com/chromebrew/chromebrew/git-2.14.1-1-chromeos-armv7l.tar.xz')
sha256s+=('8548a8273beeb7956fed40e5db078d624b3d0f9c7b5897980b31aaba5d0837b8')
urls+=('https://dl.bintray.com/chromebrew/chromebrew-cross/libssh2-1.8.0-chromeos-armv7l.tar.xz')
sha256s+=('94662756e545c73d76c37b2b83dd9852ebe71f4a17fc80d85db0fbaef72d4ca3')
;;
"i686")
urls+=('https://dl.bintray.com/chromebrew/chromebrew-cross/ruby-2.4.1-chromeos-i686.tar.xz')
sha256s+=('851a40ca3860eadfe21a1b77422f8769497a73fd1f275d370e3874948ddb64bd')
urls+=('https://dl.bintray.com/chromebrew/chromebrew-cross/git-2.13.0-chromeos-i686.tar.xz')
sha256s+=('922142616e26a25551a206e1681c20c23da43eb7b83a63cfafca9297f260f987')
urls+=('https://dl.bintray.com/chromebrew/chromebrew/git-2.14.1-1-chromeos-i686.tar.xz')
sha256s+=('11c1979b55f8ce623ceee18e78b3177c7038d6909bcbba717bda9fc8e9a6d3f2')
urls+=('https://dl.bintray.com/chromebrew/chromebrew-cross/libssh2-1.8.0-chromeos-i686.tar.xz')
sha256s+=('7d6086f80abd3905a82bd34ffd2b811658c1eaf9ac0e63ad73df39d4ce7c3d9d')
;;
"x86_64")
urls+=('https://dl.bintray.com/chromebrew/chromebrew-cross/ruby-2.4.1-chromeos-x86_64.tar.xz')
sha256s+=('fb15f0d6b8d02acf525ae5efe59fc7b9bc19908123c47d39559bc6e86fe1d655')
urls+=('https://dl.bintray.com/chromebrew/chromebrew-cross/git-2.13.0-chromeos-x86_64.tar.xz')
sha256s+=('0f9d9b57a5f2bfd5e20cc2dcf4682993734d40f4db3879e60ea57e7b0fb23989')
urls+=('https://dl.bintray.com/chromebrew/chromebrew/git-2.14.1-1-chromeos-x86_64.tar.xz')
sha256s+=('5950f17a8016f39002e3e25d9c2bd015bb82e5b253285ae144a18a0f8c8fb2f6')
urls+=('https://dl.bintray.com/chromebrew/chromebrew-cross/libssh2-1.8.0-chromeos-x86_64.tar.xz')
sha256s+=('a5ebeb68c8e04e6587621a09cc43d0a3d7baf0cdb4dd945fd22253a6e0a11846')
;;
......@@ -78,7 +82,7 @@ function download_check () {
#download
echo "Downloading $1..."
wget -c $2 -O $3
curl -C - -# -L --ssl $2 -o "$3"
#verify
echo "Verifying $1..."
......@@ -156,15 +160,15 @@ done
#download, prepare and install chromebrew
cd $CREW_LIB_PATH
rm -rf crew lib packages
wget -N $URL/crew
curl -# -o crew $URL/crew
chmod +x crew
rm -f $CREW_PREFIX/bin/crew
ln -s `pwd`/crew $CREW_PREFIX/bin
#install crew library
mkdir -p $CREW_LIB_PATH/lib
cd $CREW_LIB_PATH/lib
wget -N $URL/lib/package.rb
wget -N $URL/lib/package_helpers.rb
curl -# -o package.rb $URL/lib/package.rb
curl -# -o package_helpers.rb $URL/lib/package_helpers.rb
#Making GCC act like CC (For some npm packages out there)
rm -f /usr/local/bin/cc
......
......@@ -79,7 +79,7 @@ class Package
end
# Function to perform post-install for all even if it is a fake package.
# Function to perform post-install for both source build and binary distribution
def self.postinstall
end
......
......@@ -3,24 +3,17 @@ require 'package'
class Aspell < Package
description 'GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell.'
homepage 'http://aspell.net/'
version '0.60.7-rc1-1'
version '0.60.7-rc1-2'
source_url 'ftp://alpha.gnu.org/gnu/aspell/aspell-0.60.7-rc1.tar.gz'
source_sha256 '86b5662f24316142f70c5890787bdc5596625ca3604dfe85926ee61f27f2365e'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/aspell-0.60.7-rc1-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/aspell-0.60.7-rc1-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/aspell-0.60.7-rc1-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/aspell-0.60.7-rc1-1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'ca034e3223929f915c21d78bb79362d24aed843d4a57128c77a3d1fb98f095fd',
armv7l: 'ca034e3223929f915c21d78bb79362d24aed843d4a57128c77a3d1fb98f095fd',
i686: 'bae1a0dddf70e94915b274f982227f1b166860db2337dc34abe87e0992377075',
x86_64: 'b2091d31a112bda77f2692a686f48760b647521b277391cd6d5f56f783a03f5f',
})
depends_on 'ruby' unless File.exists? '/usr/local/bin/ruby'
depends_on 'ncursesw'
def self.build
system "./configure --libdir=#{CREW_LIB_PREFIX}"
......
......@@ -2,9 +2,9 @@ require 'package'
class Cbase < Package
description 'cbase is a C library of useful functions that simplify systems software development on System V UNIX.'
homepage 'http://www.hyperrealm.com/main.php?s=cbase'
version '1.3.7'
source_url 'http://www.hyperrealm.com/cbase/cbase-1.3.7.tar.gz'
homepage 'http://www.hyperrealm.com/oss_cbase.shtml'
version '1.3.7-1'
source_url 'http://www.hyperrealm.com/packages/cbase-1.3.7.tar.gz'
source_sha256 'c4d155686ac2e9d1480319de311967fadad745a6ab6971d53d495d9a9e52dc47'
binary_url ({
......@@ -13,8 +13,8 @@ class Cbase < Package
})
def self.build
system './configure'
system 'make'
system "./configure --prefix=#{CREW_PREFIX}"
system "make"
end
def self.install
......
......@@ -3,21 +3,21 @@ require 'package'
class Cmake < Package
description 'CMake is an open-source, cross-platform family of tools designed to build, test and package software.'
homepage 'https://cmake.org/'
version '3.9.0'
source_url 'https://cmake.org/files/v3.9/cmake-3.9.0.tar.gz'
source_sha256 '167701525183dbb722b9ffe69fb525aa2b81798cf12f5ce1c020c93394dfae0f'
version '3.9.1'
source_url 'https://cmake.org/files/v3.9/cmake-3.9.1.tar.gz'
source_sha256 'd768ee83d217f91bb597b3ca2ac663da7a8603c97e1f1a5184bc01e0ad2b12bb'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/cmake-3.9.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/cmake-3.9.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/cmake-3.9.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/cmake-3.9.0-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/cmake-3.9.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/cmake-3.9.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/cmake-3.9.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/cmake-3.9.1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'cedb60b66b4224baf0c1b7b4c7f6c7fba9fc88c42d0b97bbc18aa70215180420',
armv7l: 'cedb60b66b4224baf0c1b7b4c7f6c7fba9fc88c42d0b97bbc18aa70215180420',
i686: 'bacc959acecf7a05d58d2e94ae6669203e26135c28a1acd81b49c53e55b4cba2',
x86_64: '0d169a61d4dca18cd4d49a52063725bccd19b3c625b2dbd43b454ef1a4a3bf3d',
aarch64: '0735ec6920a6598a066e9cddca144eb3e6d3d56313d766d19ce0f91eafa3f90a',
armv7l: '0735ec6920a6598a066e9cddca144eb3e6d3d56313d766d19ce0f91eafa3f90a',
i686: '3ed6f69859386916cd001cd3d68330b361133883a7f65146b08080b238efcb7f',
x86_64: '2ddaca97b6f8e4973d7fe1631652734ac414e47b6e221ac126de61c0f5e12455',
})
depends_on 'buildessential'
......
......@@ -3,21 +3,21 @@ require 'package'
class Curl < Package
description 'Command line tool and library for transferring data with URLs.'
homepage 'https://curl.haxx.se/'
version '7.54.1'
source_url 'https://curl.haxx.se/download/curl-7.54.1.tar.bz2'
source_sha256 'fdfc4df2d001ee0c44ec071186e770046249263c491fcae48df0e1a3ca8f25a0'
version '7.55.1'
source_url 'https://curl.haxx.se/download/curl-7.55.1.tar.bz2'
source_sha256 'e5b1a92ed3b0c11f149886458fa063419500819f1610c020d62f25b8e4b16cfb'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.54.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.54.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.54.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.54.1-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.55.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.55.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.55.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.55.1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'daccab6923899c4a39479689051ab4842ba5a90c88cd0f8d360902db685e0698',
armv7l: 'daccab6923899c4a39479689051ab4842ba5a90c88cd0f8d360902db685e0698',
i686: '0132bc64633d7407c1551972bcdad0227c109ad79afd9e75bb041ddc13897ba6',
x86_64: '5770fa2afa9d6c9b34c911752a50a799de3f6c3a00a5934e7a8d7967a2868e55',
aarch64: '7ef956dad600af8a22681f2d03360b88900ced7f27d3515904ef3f9aac47685e',
armv7l: '7ef956dad600af8a22681f2d03360b88900ced7f27d3515904ef3f9aac47685e',
i686: '85e4c5086ff52f3c0e86db39fc23cf9fc942ebc2acfeb34cb9c02a59d1d7ad85',
x86_64: 'a033d6ed5133d8f0e6e6f76a38b2e4b6fb241803d21ff0b593e11d5a9481ed3c',
})
depends_on 'openssl' => :build
......
require 'package'
class Cvs < Package
description "CVS is a version control system, an important component of Source Configuration Management (SCM). Using it, you can record the history of sources files, and documents. It fills a similar role to the free software RCS, PRCS, and Aegis packages."
homepage "http://www.nongnu.org/cvs/"
version "1.11.23"
source_url "https://ftp.gnu.org/non-gnu/cvs/source/stable/1.11.23/cvs-1.11.23.tar.bz2"
source_sha256 "400f51b59d85116e79b844f2d5dbbad4759442a789b401a94aa5052c3d7a4aa9"
depends_on 'gcc'
def self.build
system "sed 's/getline /get_line /' <lib/getline.c >lib/getline.c2" # A bug in cvs, read here: http://permalink.gmane.org/gmane.linux.lfs.devel/10198
system "sed 's/getline /get_line /' <lib/getline.h >lib/getline.h2"
system "mv lib/getline.h2 lib/getline.h"
system "mv lib/getline.c2 lib/getline.c"
system "./configure --prefix=#{CREW_PREFIX}"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Doxygen < Package
description 'Doxygen is the de facto standard tool for generating documentation from annotated C++ sources'
homepage 'http://www.stack.nl/~dimitri/doxygen/'
version '1.8.13'
source_url 'https://github.com/doxygen/doxygen/archive/Release_1_8_13.zip'
source_sha256 '1a1f67106c7e7642b79884f02faaf753d2e42be1ebac04083c173224123783b5'
binary_url ({
})
binary_sha256 ({
})
depends_on 'cmake'
depends_on 'unzip'
def self.build
system "cmake ."
system "make"
end
def self.install
system "make", "PREFIX=#{CREW_PREFIX}", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,34 +3,36 @@ require 'package'
class Dropbox < Package
description 'Dropbox simplifies the way you create, share and collaborate. Bring your photos, docs, and videos anywhere and keep your files safe.'
homepage 'https://www.dropbox.com/'
version '32.4.23-1'
version '33.4.23'
case ARCH
when 'i686'
source_url 'https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86-32.4.23.tar.gz'
source_sha256 'd7e130f2872fb2d141f8d2f892f7a2c29b95ccd3620398c21ea53dee878dc075'
source_url 'https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86-33.4.23.tar.gz'
source_sha256 '27e1bfd3823bdab797b27614cb3b1761316da6a29a2b39505fa6d07a7b0c521f'
when 'x86_64'
source_url 'https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-32.4.23.tar.gz'
source_sha256 'a18dca750e72e0604b9798bfe5e0b9b7a2b5ed43116ab96166a298ae3c1b5086'
source_url 'https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-33.4.23.tar.gz'
source_sha256 'bf635cc4dad1094dc3c42cac6208c8a7ad791e9419f0873ac1cb75b0c3691a7d'
else
puts 'Unable to install dropboxd. Supported architectures include i686 and x86_64 only.'.lightred
end
binary_url ({
i686: 'https://dl.bintray.com/chromebrew/chromebrew/dropbox-32.4.23-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/dropbox-32.4.23-1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
i686: '9b1223d26c8d93a9e1b981bb0746fcb2053c175caaa57494af9de779551ffb7b',
x86_64: '372981c324e128d2b9df037c1c8413c9e7a055aae3267954cd9f213cf00c8f16',
})
depends_on 'python27' unless File.exists? '/usr/local/bin/python'
depends_on 'python27' unless File.exists? "#{CREW_PREFIX}/bin/python"
def self.build
system "wget https://linux.dropbox.com/packages/dropbox.py"
system "sed -i 's,~/.dropbox-dist,#{CREW_LIB_PREFIX}/dropbox,g' dropbox.py"
system "echo '#!/bin/bash' > dropboxd"
system "echo 'PWD=$(pwd)' >> dropboxd"
system "echo 'cd #{CREW_LIB_PREFIX}/dropbox' >> dropboxd"
system "echo './dropboxd' >> dropboxd"
system "echo 'cd $PWD' >> dropboxd"
system "chmod +x dropboxd"
system "echo '#!/bin/bash' > dropbox"
system "echo 'python #{CREW_PREFIX}/bin/dropbox.py \"\$@\"' >> dropbox"
system "echo 'python #{CREW_PREFIX}/bin/dropbox.py \"$@\"' >> dropbox"
system "chmod +x dropbox"
end
......@@ -39,6 +41,17 @@ class Dropbox < Package
system "mkdir -p #{CREW_DEST_LIB_PREFIX}/dropbox"
system "cp -r .dropbox-dist/* #{CREW_DEST_LIB_PREFIX}/dropbox"
system "cp dropbox.py #{CREW_DEST_PREFIX}/bin"
system "cp dropboxd #{CREW_DEST_PREFIX}/bin"
system "cp dropbox #{CREW_DEST_PREFIX}/bin"
end
def self.postinstall
puts
puts "To finish the installation, execute 'dropboxd'.".lightblue
puts "Login to dropbox.com, highlight the url and paste into Chrome.".lightblue
puts "Type Ctrl+C to exit dropboxd after linking your system.".lightblue
puts "Execute 'dropbox start' and after synching is complete, files will be available in ~/Dropbox.".lightblue
puts "Execute 'dropbox' to see the full list of available options.".lightblue
puts
end
end
......@@ -3,21 +3,21 @@ require 'package'
class Elixir < Package
description 'Elixir is a dynamic, functional language designed for building scalable and maintainable applications.'
homepage 'http://elixir-lang.org/'
version '1.5.0'
source_url 'https://github.com/elixir-lang/elixir/releases/download/v1.5.0/Precompiled.zip'
source_sha256 '01841d8f973e10ea2e8e29342193063efb5ebe2c598c21dc8a3b93ec8428466a'
version '1.5.1'
source_url 'https://github.com/elixir-lang/elixir/releases/download/v1.5.1/Precompiled.zip'
source_sha256 '84af6eb4cb68d0f60b3edf4e275eb024f8eb8cccae91b18c2bbbc4b70a88934f'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/elixir-1.5.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/elixir-1.5.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/elixir-1.5.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/elixir-1.5.0-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/elixir-1.5.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/elixir-1.5.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/elixir-1.5.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/elixir-1.5.1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'a458311760be3d9ea9f16bfdf2e046fa791afca94e15bd9b0852271403ccef8d',
armv7l: 'a458311760be3d9ea9f16bfdf2e046fa791afca94e15bd9b0852271403ccef8d',
i686: '948d4aa81a02fd1bd16dbecce969005235beba009d508bf9da852ab765805d98',
x86_64: 'f3dac90e7051c6c44ea2c6e0a0dad962efcbe05925718fba1c638d196da5f7f3',
aarch64: '54a5afb5f1a6ac89dde31da18c8d8c0982de24a8f6235fb6dc680bf4faeb1962',
armv7l: '54a5afb5f1a6ac89dde31da18c8d8c0982de24a8f6235fb6dc680bf4faeb1962',
i686: 'a9e86ddd0120238198f7aea64b148818034b7d9a75b7f56f8c1b79c67bae5098',
x86_64: '01a4e221a51f9c73ab55906c1d1b9676435a551743482c72c16200ad62c4648e',
})
depends_on 'erlang'
......
require 'package'
class Fop < Package
description 'Apache FOP (Formatting Objects Processor) is a print formatter driven by XSL formatting objects (XSL-FO) and an output independent formatter.'
homepage 'https://xmlgraphics.apache.org/fop/'
version '2.2'
source_url 'http://apache.forsale.plus/xmlgraphics/fop/binaries/fop-2.2-bin.tar.gz'
source_sha256 '9dc1f9d1cb9acf5b3352116924c0b7678a88703b1214d537bc027c6867ec4dfe'
depends_on 'jdk8'
def self.install
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
system "mkdir -p #{CREW_DEST_LIB_PREFIX}/fop"
system "cp -r . #{CREW_DEST_LIB_PREFIX}/fop"
system "chmod +x #{CREW_DEST_LIB_PREFIX}/fop/fop/fop"
FileUtils.cd("#{CREW_DEST_PREFIX}/bin") do
system "echo '#!/bin/bash' > fop"
system "echo 'PWD=$(pwd)' >> fop"
system "echo 'cd #{CREW_LIB_PREFIX}/fop/fop' >> fop"
system "echo './fop \"$@\"' >> fop"
system "echo 'cd $PWD' >> fop"
system "chmod +x fop"
end
end
def self.postinstall
puts
puts "To complete the installation, set the environment variable as follows:".lightblue
puts "echo 'export JAVA_HOME=#{CREW_LIB_PREFIX}/jdk8' >> ~/.bashrc && source ~/.bashrc".lightblue
puts
end
end
require 'package'
class Freebasic < Package
description 'FreeBASIC is a free/open source (GPL), BASIC compiler for Microsoft Windows, DOS and Linux.'
homepage 'https://www.freebasic.net/'
version '1.05.0'
case ARCH
when 'i686'
source_url 'https://downloads.sourceforge.net/project/fbc/Binaries%20-%20Linux/FreeBASIC-1.05.0-linux-x86.tar.gz'
source_sha256 'df20d3d11637d6f6173017dadf666d673133087189f8ecdb9756136f175e91b9'
when 'x86_64'
source_url 'https://downloads.sourceforge.net/project/fbc/Binaries%20-%20Linux/FreeBASIC-1.05.0-linux-x86_64.tar.gz'
source_sha256 '26d184061e2a55c7ee9c12213ac4bf062556ecec1bacf84037233a41aef6c74f'
else
puts 'Unable to install freebasic. Supported architectures include i686 and x86_64 only.'.lightred
end
binary_url ({
})
binary_sha256 ({
})
depends_on 'ncurses'
def self.install
system "mkdir -p #{CREW_DEST_LIB_PREFIX}"
FileUtils.cd("#{CREW_DEST_LIB_PREFIX}") do
# This is needed to fix fbc: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
# See http://www.linuxforums.org/forum/installation/6251-libtinfo-so-5-a.html for more information.
system "ln -s libncurses.so.6 libtinfo.so.5"
end
system "mkdir -p #{CREW_DEST_PREFIX}"
system "./install.sh -i #{CREW_DEST_PREFIX}"
end
end
......@@ -3,21 +3,21 @@ require 'package'
class Gdal < Package
description 'The Geospatial Data Abstraction Library is a translator for raster and vector geospatial data formats.'
homepage 'http://www.gdal.org/'
version '1.11.5'
source_url 'http://download.osgeo.org/gdal/1.11.5/gdal-1.11.5.tar.xz'
source_sha256 'd4fdc3e987b9926545f0a514b4328cd733f2208442f8d03bde630fe1f7eff042'
version '2.2.1'
source_url 'http://download.osgeo.org/gdal/2.2.1/gdal-2.2.1.tar.xz'
source_sha256 '927098d54083ac919a497f787b835b099e9a194f2e5444dbff901f7426b86066'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-1.11.5-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-1.11.5-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-1.11.5-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-1.11.5-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-2.2.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-2.2.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-2.2.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-2.2.1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '8ef717c1286b5f114a22326f88cdad52e2e2605600fb5f47334b85d74240f091',
armv7l: '8ef717c1286b5f114a22326f88cdad52e2e2605600fb5f47334b85d74240f091',
i686: 'e01778f779613e44fa74ba4cb0af30ff19690987e76c484784462dd667891bcf',
x86_64: '53f920cb22033654c94ba6fc8917cd39d42800b1cf574dbf8a7e453b3d2c1fa8',
aarch64: '4c384905671538d0eb26a9e29a8dc7d3b2cf5e3e429282c637a138e11c5d75d2',
armv7l: '4c384905671538d0eb26a9e29a8dc7d3b2cf5e3e429282c637a138e11c5d75d2',
i686: '8f6a1b7c965c3e58eda805e91c8ecc3e7f145aff766d34f15c2186ff4c3c22fe',
x86_64: 'b23583b8becbb229b1f6b958c4ab04374ddfdae0d22c506739bea3af25fdf9a0',
})
depends_on 'python27'
......
......@@ -3,21 +3,13 @@ require 'package'
class Geos < Package
description 'GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).'
homepage 'https://trac.osgeo.org/geos/'
version '3.6.1'
source_url 'http://download.osgeo.org/geos/geos-3.6.1.tar.bz2'
source_sha256 '4a2e4e3a7a09a7cfda3211d0f4a235d9fd3176ddf64bd8db14b4ead266189fc5'
version '3.6.2'
source_url 'http://download.osgeo.org/geos/geos-3.6.2.tar.bz2'
source_sha256 '045a13df84d605a866602f6020fc6cbf8bf4c42fb50de237a08926e1d7d7652a'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/geos-3.6.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/geos-3.6.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/geos-3.6.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/geos-3.6.1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '8d2e7f75294f0cd00f3bcb38ee036593cc3e763406d181418a23d1adc27a694f',
armv7l: '8d2e7f75294f0cd00f3bcb38ee036593cc3e763406d181418a23d1adc27a694f',
i686: 'be6d488ae59d5ccf00a421dbe604cf171d8eeeaa28f9893016c29093855e91db',
x86_64: '497af512e88361df4692a5fe7f2d405ea8d3ec061f387bb1af2df357b6e524b6',
})
def self.build
......
......@@ -3,21 +3,21 @@ require 'package'
class Glib < Package
description 'GLib provides the core application building blocks for libraries and applications written in C.'
homepage 'https://developer.gnome.org/glib/'
version '2.40.2'
version '2.40.2-1'
source_url 'https://ftp.gnome.org/pub/gnome/sources/glib/2.40/glib-2.40.2.tar.xz'
source_sha256 'e8ff8af2950897e805408480c454c415d1eade4e670ec5fb507f5e5853726c7a'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.40.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.40.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.40.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.40.2-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.40.2-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.40.2-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.40.2-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.40.2-1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '0cb6d4ea1398bceb72fd4ab673d8aa0a49ed3a567205ca0284e94b1e654146d0',
armv7l: '0cb6d4ea1398bceb72fd4ab673d8aa0a49ed3a567205ca0284e94b1e654146d0',
i686: '13d580fb427b9b508bfd7d31a9229df40fb0343cf5b1c62f74a9752960873b5d',
x86_64: '3805bdfd18ff5713bcd31a12f3c8b2a756093c6c30cce08c7b0e74249c97c546',
aarch64: '2dac85fcc4af6d049cee58cee774c644f3c7374b53344c62e62f6de90d99784e',
armv7l: '2dac85fcc4af6d049cee58cee774c644f3c7374b53344c62e62f6de90d99784e',
i686: '60e5ff58390596269e5690219afbc37f4c7a3f0808244e8b438ffa787c3deb3c',
x86_64: '3e14b78664198a520486af445ef0ed5a4650d7bbf22bb6e5d1f16c13c3fc7e15',
})
depends_on 'libffi'
......@@ -26,7 +26,7 @@ class Glib < Package
depends_on 'python27'
def self.build
system "./configure"
system "./configure --libdir=#{CREW_LIB_PREFIX}"
system "make"
end
......
......@@ -3,21 +3,21 @@ require 'package'
class Gnutls < Package
description 'GnuTLS is a secure communications library implementing the SSL, TLS and DTLS protocols and technologies around them.'
homepage 'http://gnutls.org/'
version '3.5.14-1'
source_url 'https://www.gnupg.org/ftp/gcrypt/gnutls/v3.5/gnutls-3.5.14.tar.xz'
source_sha256 '4aa12dec92f42a0434df794aca3d02f6f2a35b47b48c01252de65f355c051bda'
version '3.5.15'
source_url 'https://www.gnupg.org/ftp/gcrypt/gnutls/v3.5/gnutls-3.5.15.tar.xz'
source_sha256 '046081108b8b1fe455a13a4c5a4eaa0368e185b678f1670fe09a11a2d7ecfad5'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gnutls-3.5.14-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gnutls-3.5.14-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gnutls-3.5.14-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gnutls-3.5.14-1-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gnutls-3.5.15-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gnutls-3.5.15-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gnutls-3.5.15-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gnutls-3.5.15-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '9f49294e0e5896de387c29789df95c9b8d777025664c9a4fbe8f181101f6a92f',
armv7l: '9f49294e0e5896de387c29789df95c9b8d777025664c9a4fbe8f181101f6a92f',
i686: 'ba541aa4791bb15fba3b33ed3d884e1bf689027fb85c115d73f70b8894789554',
x86_64: 'fea2972759a7846dad494bb8a56e14d3b5378c4707bcb16c356e737193d40cfc',
aarch64: '3c9183dae47b19d037204b5bf1e3fb142ac88cd7a3ee2e24f2e22c9e414dd0a2',
armv7l: '3c9183dae47b19d037204b5bf1e3fb142ac88cd7a3ee2e24f2e22c9e414dd0a2',
i686: '71f725c3c414f203bdc2a9b7deea04ef655b12c8f28b0d7febfac09a1f688c88',
x86_64: '1a09cd1e743e08254bec0b1d60b00ac89bcf210af98c98734aa68d36f79d7c7a',
})
depends_on 'buildessential' => :build
......
......@@ -3,26 +3,19 @@ require 'package'
class Gox < Package
description 'A dead simple, no frills Go cross compile tool.'
homepage 'https://github.com/mitchellh/gox'
version '0.3.0'
version '0.3.0-1'
source_url 'https://github.com/mitchellh/gox/archive/v0.3.0.tar.gz'
source_sha256 '29dc6b689f670a5444cc54cd9111549ccb01501901bc9197d0e1325a35157802'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gox-0.3.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gox-0.3.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gox-0.3.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gox-0.3.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'fe6431f046bae54f6e7753cd2cf0c4f85087a004927da65845e184b82c54ab37',
armv7l: 'fe6431f046bae54f6e7753cd2cf0c4f85087a004927da65845e184b82c54ab37',
i686: '07f529c6d0ef5cd84d21a4ad37c370070d88bee02940ab5e9186ef1645bc513a',
x86_64: '7d43be449836eac9aaf368bbba2bd8571489a2cdeae1999ab7ac19d1d9a84d97',
})
depends_on 'go'
def self.install
system "go get github.com/mitchellh/iochan"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "go build -o #{CREW_DEST_DIR}/usr/local/bin/gox"
end
......
......@@ -3,21 +3,21 @@ require 'package'
class Imagemagick < Package
description 'Use ImageMagick to create, edit, compose, or convert bitmap images.'
homepage 'http://www.imagemagick.org/script/index.php'
version '7.0.6-7'
source_url 'https://www.imagemagick.org/download/releases/ImageMagick-7.0.6-7.tar.xz'
source_sha256 '732332a76cb62f067d680a90d85dd05a2f2592e0017af83becb639d05681106d'
version '7.0.6-10'
source_url 'https://www.imagemagick.org/download/releases/ImageMagick-7.0.6-10.tar.xz'
source_sha256 '5a9889c87dc351cf4b57ca3ae418c9cdcefc77aaa9a3b16044ae8a4eecf3aeed'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick-7.0.6-7-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick-7.0.6-7-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick-7.0.6-7-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick-7.0.6-7-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick-7.0.6-10-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick-7.0.6-10-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick-7.0.6-10-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick-7.0.6-10-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'c8aa6e01d8f29c77ed90ca6221ebbdff588653772b1561c408a3e6f73d5bd02e',
armv7l: 'c8aa6e01d8f29c77ed90ca6221ebbdff588653772b1561c408a3e6f73d5bd02e',
i686: '8ef193d2682140638ee4534da6fa7d249fed3f2dcdaa9aa3964d2b1f18932db9',
x86_64: '315627005ae0e959a01c4f4ad221a62355a558522cb0b4e4b5d0f04ee7c76579',
aarch64: '037a93341e12a029a09dc9c4a0549b18cec7082da027fc5d218d9dcd9231e88e',
armv7l: '037a93341e12a029a09dc9c4a0549b18cec7082da027fc5d218d9dcd9231e88e',
i686: 'e5c8de20e68f5b608c7e0ae243096f01ce82fbe35c7a6464f4479eeb4254da43',
x86_64: '1f409d7ce9007e3274685030b4f50743abb5ddb5fe7eab6c72e52960917bfa5f',
})
depends_on 'buildessential' => :build
......
......@@ -3,21 +3,21 @@ require 'package'
class Libpng < Package
description 'libpng is the official PNG reference library.'
homepage 'http://libpng.org/pub/png/libpng.html'
version '1.6.28'
source_url 'http://prdownloads.sourceforge.net/libpng/libpng-1.6.28.tar.gz'
source_sha256 'b6cec903e74e9fdd7b5bbcde0ab2415dd12f2f9e84d9e4d9ddd2ba26a41623b2'
version '1.6.32'
source_url 'http://prdownloads.sourceforge.net/libpng/libpng-1.6.32.tar.gz'
source_sha256 '1a8ae5c8eafad895cc3fce78fbcb6fdef663b8eb8375f04616e6496360093abb'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libpng-1.6.28-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libpng-1.6.28-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libpng-1.6.28-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libpng-1.6.28-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libpng-1.6.32-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libpng-1.6.32-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libpng-1.6.32-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libpng-1.6.32-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '52bb5b4d50d0373795d42856bf8fe4d53f6a8353e0254739a242138b600562ec',
armv7l: '52bb5b4d50d0373795d42856bf8fe4d53f6a8353e0254739a242138b600562ec',
i686: '042b9ed617899e66889e216a7194868bfb286fef7864317c353258a322dcd5f6',
x86_64: '11ada0286cff8d7ea6fb4ec22b9149beb87cf5739e32e787691c384ffebd634a',
aarch64: '575871d19e38d2cc4e51889bd3f7866b12dd52d9929d66830065c0f490c3a7e7',
armv7l: '575871d19e38d2cc4e51889bd3f7866b12dd52d9929d66830065c0f490c3a7e7',
i686: 'd401afe08f7e1ff6b78e6a12cf89a71214d880bb876a71bd5f764fa787db8c3e',
x86_64: 'aadb3ac7f63711ccd3410a9775053fc9730d7e4462d39efed0c9e0db93fb5bce',
})
def self.build
......
......@@ -2,10 +2,10 @@ require 'package'
class Libslz < Package
description 'SLZ is a fast and memory-less stream compressor which produces an output that can be decompressed with zlib or gzip.'
homepage 'https://github.com/haproxy/libslz'
version '1.1.0'
homepage 'http://www.libslz.org/'
version '1.1.0-1'
source_url 'http://git.1wt.eu/web?p=libslz.git;a=snapshot;h=afa04ae1f976957cf36287cc5370998d0559bc63;sf=tbz2'
source_sha256 '45527de53bca42faad9ad4078893c5e9a633e15c86eb9b06218d5b97e12f2096'
source_sha256 'cf6b2c00066890d3c7f40ef00e6620784b9dc4662e9a3b35f2059997037be728'
binary_url ({
})
......@@ -13,7 +13,7 @@ class Libslz < Package
})
def self.build
system "make PREFIX=/usr/local"
system "make PREFIX=#{CREW_PREFIX}"
end
def self.install
......
......@@ -3,24 +3,26 @@ require 'package'
class Libuv < Package
description 'libuv is a multi-platform support library with a focus on asynchronous I/O.'
homepage 'http://libuv.org/'
version '1.9.1'
source_url 'http://dist.libuv.org/dist/v1.9.1/libuv-v1.9.1.tar.gz'
source_sha256 'e83953782c916d7822ef0b94e8115ce5756fab5300cca173f0de5f5b0e0ae928'
version '1.14.0'
source_url 'https://dist.libuv.org/dist/v1.14.0/libuv-v1.14.0.tar.gz'
source_sha256 '7267f1564fc6bd84e1721ad7e3cdd7b5da06faab9fa09522f33589dc08d3edf9'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.9.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.9.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.9.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.9.1-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.14.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.14.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.14.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.14.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '4f39008b460b6762a5d0d535124bca9825be1e42a7919006f2be63dc38dee0e8',
armv7l: '4f39008b460b6762a5d0d535124bca9825be1e42a7919006f2be63dc38dee0e8',
i686: '1db5d574b282aaee557f6b062f290cf48989e839c3b6b2bb6ddcb9fea1ce57ee',
x86_64: 'ede50a331c2baa80058efcfe2ac83fc3f5ff6c4a6f985148a6f6d32f95154a71',
aarch64: '170083ce6a5327b399dd4a9d478e0d60730cd4025933be1304bf6a93122b51d1',
armv7l: '170083ce6a5327b399dd4a9d478e0d60730cd4025933be1304bf6a93122b51d1',
i686: '2d7d9d18d8f056592f84fad99978eefd9d4ed723f975b2f8f60de62800c50fac',
x86_64: '88801cf1d298dc695e956d29a059516db578ffe26ecb607128f381cdcf7a7b62',
})
depends_on 'automake'
depends_on 'glibc'
depends_on 'libtool'
def self.build
system './autogen.sh'
......
......@@ -3,21 +3,21 @@ require 'package'
class Lz4 < Package
description 'LZ4 is lossless compression algorithm, providing compression speed at 400 MB/s per core (0.16 Bytes/cycle).'
homepage 'http://lz4.github.io/lz4/'
version '1.7.5-1'
source_url 'https://github.com/lz4/lz4/archive/v1.7.5.tar.gz'
source_sha256 '0190cacd63022ccb86f44fa5041dc6c3804407ad61550ca21c382827319e7e7e'
version '1.8.0'
source_url 'https://github.com/lz4/lz4/archive/v1.8.0.tar.gz'
source_sha256 '2ca482ea7a9bb103603108b5a7510b7592b90158c151ff50a28f1ca8389fccf6'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/lz4-1.7.5-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/lz4-1.7.5-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/lz4-1.7.5-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/lz4-1.7.5-1-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/lz4-1.8.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/lz4-1.8.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/lz4-1.8.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/lz4-1.8.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'ca0ebdade6a9ed33c8723e5e887573112192b28d611abfd5a1988d7822c4ec74',
armv7l: 'ca0ebdade6a9ed33c8723e5e887573112192b28d611abfd5a1988d7822c4ec74',
i686: 'e58ebfa0234dd35c6b6a16570f5f53d889150aa7e2405d1538f53fca60d92007',
x86_64: '0fb867a1bd3410d3ad0ae5d257e245f00a9ecd6ecbf569dd89039e762c35b9a7',
aarch64: 'd3deb5400244b13666355ab9cfd6049dc432705a867633bdf9ae80903f64cd23',
armv7l: 'd3deb5400244b13666355ab9cfd6049dc432705a867633bdf9ae80903f64cd23',
i686: '6094dc22fe259ac989b6a1595f3de6ccc50a0a17eaadf446cee049b48746b490',
x86_64: 'd03b3e792586b53bd57e586e1ffc06465ffc3db90d3fe685bf7ffaff0af480ae',
})
def self.build
......
......@@ -3,21 +3,21 @@ require 'package'
class Memcached < Package
description 'Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.'
homepage 'https://memcached.org/'
version '1.5.0'
source_url 'https://memcached.org/files/memcached-1.5.0.tar.gz'
source_sha256 'c001f812024bb461b5e4d7d0506daab63dff9614eea26f46536c3b7e1e601c32'
version '1.5.1'
source_url 'https://memcached.org/files/memcached-1.5.1.tar.gz'
source_sha256 'a87908936b51d1bd3ef10a2347eef5647f003b63407a5d8161fa7928b1cd6b5c'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/memcached-1.5.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/memcached-1.5.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/memcached-1.5.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/memcached-1.5.0-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/memcached-1.5.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/memcached-1.5.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/memcached-1.5.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/memcached-1.5.1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '4d1f4a39ec38931a1d0d119ba44aedc39af6f9626cbabd5a42de7c09c067ef74',
armv7l: '4d1f4a39ec38931a1d0d119ba44aedc39af6f9626cbabd5a42de7c09c067ef74',
i686: 'c082e150d5638979f27d6d8e0158fd1b203e252f1114af8ac2408c22ab8dd680',
x86_64: 'fd9e0e3175e84c12a4e71818477f9b7630582cc343766c70fe5024179a8c92df',
aarch64: '21f95bb2d9f7034a894629340dccb498419fad98d831737ef2e8464fdabff92d',
armv7l: '21f95bb2d9f7034a894629340dccb498419fad98d831737ef2e8464fdabff92d',
i686: '0afb5959638e2c18184ef65fcc460f84edd618d522a3221c632175b8fe18d665',
x86_64: 'd3bddaab1921ee3d11b6eae45ad6933abebc41383fc3bb1f14ee666da582edb9',
})
depends_on 'libevent'
......
require 'package'
class Miniupnpc < Package
description 'UPnP IGD client lightweight library'
homepage 'http://miniupnp.free.fr/'
version '2.0'
source_url 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-2.0.tar.gz'
source_sha256 'd434ceb8986efbe199c5ca53f90ed53eab290b1e6d0530b717eb6fa49d61f93b'
binary_url ({
})
binary_sha256 ({
})
def self.build
system "sed -i '139s,/usr,,' Makefile"
system "make", "PREFIX=#{CREW_PREFIX}", "DESTDIR=#{CREW_DEST_DIR}"
end
def self.install
system "make", "PREFIX=#{CREW_PREFIX}", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -2,10 +2,10 @@ require 'package'
class Misctools < Package
description 'The misctools package is a collection of small but useful utilities.'
homepage 'http://www.hyperrealm.com/main.php?s=misctools'
version '2.5.5'
source_url 'http://www.hyperrealm.com/misctools/misctools-2.5.5.tar.bz2'
source_sha256 '4eb5913566da3e243ebd9cab499f927a2d46a2191baa51b810214f83eebb3ae9'
homepage 'http://www.hyperrealm.com/oss_misctools.shtml'
version '2.6'
source_url 'http://www.hyperrealm.com/packages/misctools-2.6.tar.bz2'
source_sha256 'b1f13bb3af52ffffddf45efd8c10f942a8c1548352b7878668fbbf27ffa68e1a'
binary_url ({
})
......@@ -15,8 +15,8 @@ class Misctools < Package
depends_on 'cbase'
def self.build
system './configure'
system 'make'
system "./configure --prefix=#{CREW_PREFIX}"
system "make"
end
def self.install
......
......@@ -3,25 +3,26 @@ require 'package'
class Nano < Package
description 'Nano\'s ANOther editor, an enhanced free Pico clone.'
homepage 'https://www.nano-editor.org/'
version '2.8.6'
source_url 'https://www.nano-editor.org/dist/v2.8/nano-2.8.6.tar.xz'
source_sha256 '9a46962a3ae59db922467a095217ed23280b42d80640f932f3a59ba2a6a85776'
version '2.8.7'
source_url 'https://www.nano-editor.org/dist/v2.8/nano-2.8.7.tar.xz'
source_sha256 'fbe31746958698d73c6726ee48ad8b0612697157961a2e9aaa83b4aa53d1165a'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/nano-2.8.6-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/nano-2.8.6-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/nano-2.8.6-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/nano-2.8.6-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/nano-2.8.7-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/nano-2.8.7-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/nano-2.8.7-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/nano-2.8.7-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '7f3e767b850eeb29bbceaea2d282ee5278697354e701b0495f99c480eab72e8b',
armv7l: '7f3e767b850eeb29bbceaea2d282ee5278697354e701b0495f99c480eab72e8b',
i686: '414a6aab9c02ee716dcaf3b11de9ee882702215d5cd30dcdddb0867bd62288f0',
x86_64: '3fd9b6cf8bf583d8ffce9faa00510eacf24c6ac426b2c09055821eca970787da',
aarch64: '742a93d42fd8f11ce1af41c4d09dc693c2837a6bda2cd6d1b31c9745e412acf6',
armv7l: '742a93d42fd8f11ce1af41c4d09dc693c2837a6bda2cd6d1b31c9745e412acf6',
i686: '6e146aad6426965477de0ff619d17cd764a59c806fd9dfb883a78d892ce1ef8f',
x86_64: 'b24e555f0d859c30deb50c2c1e754812dfbb790091d031a15c1defa8e71cd4e3',
})
depends_on 'buildessential'
depends_on 'ncurses'
depends_on 'filecmd'
def self.build
system "./configure CPPFLAGS=\"-I/usr/local/include/ncurses\""
......
require 'package'
class Nethack < Package
description 'Nethack is a classic roguelike. Descend through the dungeon and retrieve the Amulet of Yendor.'
homepage 'https://www.nethack.org/'
version '3.6.0'
source_url 'https://github.com/NetHack/NetHack/archive/NetHack-3.6.0_Release.tar.gz'
source_sha256 '5735e4d132d8aec0c49f0e2a72156c7cbe84ea7b5a3153531da61aa660c668a1'
depends_on 'patch'
depends_on 'bison'
depends_on 'flex'
depends_on 'ncurses'
def self.patch
# Apply a patch to set a hints file that will work for the current build environment.
system "curl -L 'https://gist.githubusercontent.com/anonymous/77b05c6cd87628ab3cb944e75ecc45b7/raw/d5f327450aa6b4d50cafb5352fad06ed60f91b69/nethack_chromebrew.patch' | patch -p0"
end
def self.build
self.patch
system "./sys/unix/setup.sh", "./sys/unix/hints/linux"
system "make"
end
def self.install
system "make", "PREFIX=#{CREW_DEST_PREFIX}", "install"
system "mkdir", "#{CREW_DEST_PREFIX}/bin/"
system "sed", "-i", "s|^HACKDIR=.*$|HACKDIR=#{CREW_PREFIX}/games/lib/nethackdir|g", "#{CREW_DEST_PREFIX}/games/nethack"
system "cp", "#{CREW_DEST_PREFIX}/games/nethack", "#{CREW_DEST_PREFIX}/bin/nethack"
end
end
......@@ -3,21 +3,21 @@ require 'package'
class Perl < Package
description 'Perl 5 is a highly capable, feature-rich programming language with over 29 years of development.'
homepage 'https://www.perl.org/'
version '5.24.1-2'
version '5.24.1-3'
source_url 'http://www.cpan.org/src/5.0/perl-5.24.1.tar.gz'
source_sha256 'e6c185c9b09bdb3f1b13f678999050c639859a7ef39c8cad418448075f5918af'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/perl-5.24.1-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/perl-5.24.1-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/perl-5.24.1-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/perl-5.24.1-1-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/perl-5.24.1-3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/perl-5.24.1-3-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/perl-5.24.1-3-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/perl-5.24.1-3-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'fe79dbe04afeddb1fe5f05aeaad6a5cad2cc7ebe5bebb81c0fa0adb6b3dc832a',
armv7l: 'fe79dbe04afeddb1fe5f05aeaad6a5cad2cc7ebe5bebb81c0fa0adb6b3dc832a',
i686: '3c00ae12d21edea1d4c97f35730c6047c1efcb286ffbaf80f06ba73f83151229',
x86_64: 'cdd728843bda0e1cdac2024ca6fd534e2ab167fefcd636a73b2aa2453b1c382e',
aarch64: '98a97e66b1bef91a97654675197141b4c2b25990b2ba17465ff33d98a494c521',
armv7l: '98a97e66b1bef91a97654675197141b4c2b25990b2ba17465ff33d98a494c521',
i686: '04930ee73e84e5df65c759e9b9b7be1f956c3c99cdc34dc74b504088d6b73021',
x86_64: '4f436341733c7230bfd843349a0737fd910e2762ff3f990ef976b466c305b930',
})
depends_on 'patch' => :build
......
......@@ -3,21 +3,21 @@ require 'package'
class Php5 < Package
description 'PHP is a popular general-purpose scripting language that is especially suited to web development.'
homepage 'http://www.php.net/'
version '5.6.31'
version '5.6.31-1'
source_url 'http://php.net/distributions/php-5.6.31.tar.xz'
source_sha256 'c464af61240a9b7729fabe0314cdbdd5a000a4f0c9bd201f89f8628732fe4ae4'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.31-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.31-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.31-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.31-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.31-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.31-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.31-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php5-5.6.31-1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'aeca560c546742d3204b65148f3a8da748e4f3228e3e24a9d8779ce8e44195dd',
armv7l: 'aeca560c546742d3204b65148f3a8da748e4f3228e3e24a9d8779ce8e44195dd',
i686: '88423ffa51e79a7377bb85c94600513428d2f0505d1fa6522598a678c6546666',
x86_64: '10a66b8ebe73dfd60f8c194664746330274c033564259f345c802de173c88cf7',
aarch64: '0e4862b4afb8c8846e462ce77f88e01d2bb3853fc108844ad48f2113045b6b50',
armv7l: '0e4862b4afb8c8846e462ce77f88e01d2bb3853fc108844ad48f2113045b6b50',
i686: 'f1527a845d79ea3a689f80198938ee4e26e2236766442040166a8fb45c61c72c',
x86_64: 'aefef7c188611a259d15500ecd9ebd6a5b91fa5d266e8659e6ac7b13c400d154',
})
depends_on 'pkgconfig'
......
......@@ -3,21 +3,21 @@ require 'package'
class Php7 < Package
description 'PHP is a popular general-purpose scripting language that is especially suited to web development.'
homepage 'http://www.php.net/'
version '7.1.8'
version '7.1.8-1'
source_url 'https://php.net/distributions/php-7.1.8.tar.xz'
source_sha256 '8943858738604acb33ecedb865d6c4051eeffe4e2d06f3a3c8f794daccaa2aab'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.1.8-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.1.8-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.1.8-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.1.8-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.1.8-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.1.8-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.1.8-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php7-7.1.8-1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '189dd7432d81613f46c36df7e833308fa4c4dfd42930fbb8ee259c7e5acdd2bc',
armv7l: '189dd7432d81613f46c36df7e833308fa4c4dfd42930fbb8ee259c7e5acdd2bc',
i686: 'e7af55ce2d1330b2078259e67a6437ff08b78134b5db7c2acb919265eb8bf02a',
x86_64: '0ed419400ca523f36d428e0aa778813274d4faf7554a5fcf3eab2d811c031414',
aarch64: 'f16f0456a071bc67d8f52d822b8a854e7e73903bad3b91bec87101f5ab8bb61f',
armv7l: 'f16f0456a071bc67d8f52d822b8a854e7e73903bad3b91bec87101f5ab8bb61f',
i686: '873824cdb85932a082fca7ab4e81eeed39ec03cff1621ee650e61892afff2490',
x86_64: 'b39ae5ea701573c27022ce0838b1cf64302b502ed8b54b3845ffd4793a99e82b',
})
depends_on 'pkgconfig'
......
require 'package'
class Pmd < Package
description 'An extensible cross-language static code analyzer.'
homepage 'https://pmd.github.io/'
version '5.8.1'
source_url 'https://github.com/pmd/pmd/releases/download/pmd_releases%2F5.8.1/pmd-bin-5.8.1.zip'
source_sha256 '2d854e30717b66e253213f36d4bcd202b83b180ea427836797d13a857c19a6b4'
binary_url ({
})
binary_sha256 ({
})
depends_on 'jdk8'
depends_on 'unzip'
def self.install
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
FileUtils.cd("#{CREW_DEST_PREFIX}/bin") do
system "echo '#!/bin/bash' > cpd"
system "echo 'PWD=$(pwd)' >> cpd"
system "echo 'cd #{CREW_LIB_PREFIX}/pmd' >> cpd"
system "echo 'bin/run.sh cpd \"$@\"' >> cpd"
system "echo 'cd $PWD' >> cpd"
system "chmod +x cpd"
system "echo '#!/bin/bash' > pmd"
system "echo 'PWD=$(pwd)' >> pmd"
system "echo 'cd #{CREW_LIB_PREFIX}/pmd' >> pmd"
system "echo 'bin/run.sh pmd \"$@\"' >> pmd"
system "echo 'cd $PWD' >> pmd"
system "chmod +x pmd"
end
system "mkdir -p #{CREW_DEST_LIB_PREFIX}/pmd"
system "cp -r . #{CREW_DEST_LIB_PREFIX}/pmd"
end
end
......@@ -3,25 +3,25 @@ require 'package'
class Powerstat < Package
description 'Powerstat measures the power consumption of a laptop using the ACPI battery information.'
homepage 'http://kernel.ubuntu.com/~cking/powerstat/'
version '0.02.11'
source_url 'http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-0.02.11.tar.gz'
source_sha256 'a274a7762c44695129434bab2ff10a23575ecb0c1199eb6e424e1324c61a2d46'
version '0.02.12'
source_url 'http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-0.02.12.tar.gz'
source_sha256 'dc802ae739120bb7c99f248f2631f14e8903767c187f2d16a093391e741e9a9a'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/powerstat-0.02.11-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/powerstat-0.02.11-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/powerstat-0.02.11-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/powerstat-0.02.11-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/powerstat-0.02.12-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/powerstat-0.02.12-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/powerstat-0.02.12-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/powerstat-0.02.12-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'f8f376c8d5af62036e7295b67ebe1a7b9fa85fb760572746c3488cdb747489b8',
armv7l: 'f8f376c8d5af62036e7295b67ebe1a7b9fa85fb760572746c3488cdb747489b8',
i686: 'ea7960849f28a7bee8308eb3626e489aeffebdcac4687bc5ca27e0a155c56557',
x86_64: '99018fc23068465e40ab3c4ab8753fc7004d7abef120b328af1521b6b5856eb2',
aarch64: '3f98c844ffa30b00c632382a764306995acfc4973d23ed781aea6a0b90aa57a4',
armv7l: '3f98c844ffa30b00c632382a764306995acfc4973d23ed781aea6a0b90aa57a4',
i686: '709a23dc76aa214fb13dfe9043d6e1482e276f042b7f1c43c1d3a4690576ce4f',
x86_64: 'c7c93f71d2d14d43431ecbd069996587e6a2650e5e96bd18abf60dcbcaa40db4',
})
def self.build
system "sed -i 's,/usr,/usr/local,g' Makefile"
system "sed -i 's,/usr,#{CREW_PREFIX},g' Makefile"
system "make"
end
......
require 'package'
class Qpdf < Package
description 'QPDF is a command-line program that does structural, content-preserving transformations on PDF files.'
homepage 'http://qpdf.sourceforge.net/'
version '7.0.b1'
source_url 'https://github.com/qpdf/qpdf/archive/release-qpdf-7.0.b1.tar.gz'
source_sha256 '2e0a26f7a03fe41c72be8e95c420744f98dbf553e025fb0d4c990f83df023d90'
binary_url ({
})
binary_sha256 ({
})
def self.build
system './autogen.sh'
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Scheme48 < Package
description 'Scheme byte-code interpreter'
homepage 'http://s48.org/'
version '1.9.2'
source_url 'http://s48.org/1.9.2/scheme48-1.9.2.tgz'
source_sha256 '9c4921a90e95daee067cd2e9cc0ffe09e118f4da01c0c0198e577c4f47759df4'
binary_url ({
})
binary_sha256 ({
})
def self.build
system "./configure", "--prefix=#{CREW_PREFIX}"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,28 +3,20 @@ require 'package'
class Screenfetch < Package
description 'Fetches system/theme information in terminal for Linux desktop screenshots.'
homepage 'https://github.com/KittyKatt/screenFetch'
version '3.7.0'
source_url 'https://github.com/KittyKatt/screenFetch/archive/v3.7.0.tar.gz'
source_sha256 '6711fe924833919d53c1dfbbb43f3777d33e20357a1b1536c4472f6a1b3c6be0'
version '3.8.0'
source_url 'https://github.com/KittyKatt/screenFetch/archive/v3.8.0.tar.gz'
source_sha256 '248283ee3c24b0dbffb79ed685bdd518554073090c1c167d07ad2a729db26633'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/screenfetch-3.7.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/screenfetch-3.7.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/screenfetch-3.7.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/screenfetch-3.7.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'ae230a5057261354e7ff68120509b9fa4792b5af22b5652d313b00e54b9cdbca',
armv7l: 'ae230a5057261354e7ff68120509b9fa4792b5af22b5652d313b00e54b9cdbca',
i686: '07ed19dfd9ca9cd1aa10f8344c35bd898dda10c830c03b41aaa9a900a6765e72',
x86_64: 'b362fecc330686e6cf334a1ecc2a33f79b19add1d266200ad1d0ff78c4243693',
})
def self.build
end
def self.install
system "install -D screenfetch-dev #{CREW_DEST_DIR}/usr/local/bin/screenfetch"
system "install -D screenfetch.1 #{CREW_DEST_DIR}/usr/local/man/man1/screenfetch.1"
system "install -D screenfetch-dev #{CREW_DEST_PREFIX}/bin/screenfetch"
system "install -D screenfetch.1 #{CREW_DEST_PREFIX}/man/man1/screenfetch.1"
end
end
......@@ -3,21 +3,21 @@ require 'package'
class Sejda_console < Package
description 'Sejda SDK is an open source, task oriented Java library to edit PDF files.'
homepage 'http://sejda.org/'
version '3.2.17'
source_url 'https://github.com/torakiki/sejda/releases/download/v3.2.17/sejda-console-3.2.17-bin.zip'
source_sha256 '62476a7985c7c272fc036b07d2b16dbeb8dfb0167f202f5d1c6d557fe14137ac'
version '3.2.22'
source_url 'https://github.com/torakiki/sejda/releases/download/v3.2.22/sejda-console-3.2.22-bin.zip'
source_sha256 '09379d7f89d6b373a39d3e642a377650f0660849e8a934e2b94169df51dd7c13'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/sejda_console-3.2.17-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/sejda_console-3.2.17-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/sejda_console-3.2.17-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/sejda_console-3.2.17-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/sejda_console-3.2.22-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/sejda_console-3.2.22-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/sejda_console-3.2.22-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/sejda_console-3.2.22-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '7d9ae694a3df31802075f15af16567bc581935a7450033e03d99e4aed0b5612a',
armv7l: '7d9ae694a3df31802075f15af16567bc581935a7450033e03d99e4aed0b5612a',
i686: 'f70cdb95ad0fc91feaf82951f33c5ede10fac0d394bed7a61724e9e70fa21a6f',
x86_64: '91e9dc1e77208544b9a9ba60f7e633bc7c3cd5b289e463a67675f968307610b8',
aarch64: '5e0882ccd657298a953e15e5aa3225bc30ec149c8b20e67d1f5470490a225667',
armv7l: '5e0882ccd657298a953e15e5aa3225bc30ec149c8b20e67d1f5470490a225667',
i686: '4faf168ee42419009062008f7d9bffe1f81b45072e4f1a934cedc80cbacb3b63',
x86_64: 'a92065131f5167366f2dc265d142f89d50efaa61b396800dc27bfc976eb56cde',
})
depends_on 'help2man'
......@@ -25,19 +25,19 @@ class Sejda_console < Package
depends_on 'unzip'
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/man/man1"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/share/sejda_console"
system "cp -r . #{CREW_DEST_DIR}/usr/local/share/sejda_console"
FileUtils.cd("#{CREW_DEST_DIR}/usr/local/bin") do
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
system "mkdir -p #{CREW_DEST_PREFIX}/man/man1"
system "mkdir -p #{CREW_DEST_PREFIX}/share/sejda_console"
system "cp -r . #{CREW_DEST_PREFIX}/share/sejda_console"
FileUtils.cd("#{CREW_DEST_PREFIX}/bin") do
system "echo '#!/bin/bash' > sejda-console"
system "echo 'PWD=$(pwd)' >> sejda-console"
system "echo 'cd /usr/local/share/sejda_console' >> sejda-console"
system "echo 'bin/sejda-console $1 $2 $3 $4 $5 $6 $7 $8 $9' >> sejda-console"
system "echo 'cd #{CREW_PREFIX}/share/sejda_console' >> sejda-console"
system "echo 'bin/sejda-console \"\$@\"' >> sejda-console"
system "echo 'cd $PWD' >> sejda-console"
system "chmod +x sejda-console"
end
system "cp #{CREW_DEST_DIR}/usr/local/bin/sejda-console /usr/local/bin"
system "help2man -N sejda-console > #{CREW_DEST_DIR}/usr/local/man/man1/sejda-console.1"
system "cp #{CREW_DEST_PREFIX}/bin/sejda-console #{CREW_PREFIX}/bin"
system "help2man -N sejda-console > #{CREW_DEST_PREFIX}/man/man1/sejda-console.1"
end
end
......@@ -3,21 +3,21 @@ require 'package'
class Sfk < Package
description 'The Swiss File Knife - A Command Line Tools Collection for Windows / Linux / Mac.'
homepage 'http://swissfileknife.sourceforge.net/'
version '1.8.6'
source_url 'https://sourceforge.net/projects/swissfileknife/files/1-swissfileknife/1.8.6/sfk-1.8.6.tar.gz'
source_sha256 'e65ec60b529785accdb90a77c99376888898764b2d79f6d4280077992994b1e2'
version '1.8.7'
source_url 'https://sourceforge.net/projects/swissfileknife/files/1-swissfileknife/1.8.7/sfk-1.8.7.tar.gz'
source_sha256 '1c53d4d9d05af752546c8341a718bf64be99b62491ff91db02ef100e2f93bfc3'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/sfk-1.8.6-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/sfk-1.8.6-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/sfk-1.8.6-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/sfk-1.8.6-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/sfk-1.8.7-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/sfk-1.8.7-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/sfk-1.8.7-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/sfk-1.8.7-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '66de7a4de3b92fad4a4e68df7fbedf6318f0576f98f3bbcd2be6bfa5026638f8',
armv7l: '66de7a4de3b92fad4a4e68df7fbedf6318f0576f98f3bbcd2be6bfa5026638f8',
i686: 'ba2504cdbfa127dddfeea0ce1d39d60cf0a06e8c1f9eda0c14870db9c53ba755',
x86_64: '714260e8edd3bac91f3a034e896ac36626f0dc4ec7f6a7ec4a88dfb7617ebc5b',
aarch64: '1666f3bd5271973be9ce535e6cc1a71a831ba3d479ba2a08b7c587d2142ef360',
armv7l: '1666f3bd5271973be9ce535e6cc1a71a831ba3d479ba2a08b7c587d2142ef360',
i686: 'e2366c801933f920eef6058c559883be2ab31470f314c0fc0bdd40187014331c',
x86_64: '86c8b0fc3953d74b5225e16aec90dfb8e5c6f794f4d02ffb731e8ab8469c97e6',
})
def self.build
......
require 'package'
class Shhmsg < Package
description 'C-functions for error messages, verbose messages and \'normal\' messages in terminal-based programs.'
homepage 'http://shh.thathost.com/pub-unix/#sshmsg'
version '1.4.2'
source_url 'http://shh.thathost.com/pub-unix/files/shhmsg-1.4.2.tar.gz'
source_sha256 '88c69e3f0b920b1ef93f6c10f354786f171d7cb3ab170a463bb9ab8bbf13a02b'
binary_url ({
})
binary_sha256 ({
})
def self.build
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Shhopt < Package
description 'C-functions for parsing command line options, both traditional one-character options, and GNU\'ish --long-options.'
homepage 'http://shh.thathost.com/pub-unix/#sshopt'
version '1.1.7'
source_url 'http://shh.thathost.com/pub-unix/files/shhopt-1.1.7.tar.gz'
source_sha256 'bae94335124efa6fcc2f0a55cabd68c9c90be935bcdb8054d7e5188e0d5da679'
binary_url ({
})
binary_sha256 ({
})
def self.build
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,21 +3,21 @@ require 'package'
class Sqlite < Package
description 'SQLite is a self-contained, high-reliability, embedded, full-featured, public-domain, SQL database engine.'
homepage 'http://www.sqlite.org/'
version '3.20.0'
source_url 'https://www.sqlite.org/2017/sqlite-autoconf-3200000.tar.gz'
source_sha256 '3814c6f629ff93968b2b37a70497cfe98b366bf587a2261a56a5f750af6ae6a0'
version '3.20.1'
source_url 'https://www.sqlite.org/2017/sqlite-autoconf-3200100.tar.gz'
source_sha256 'ec66595b29bc0798b023a5122021ea646ab4fa9e2f735937c5426feeba950742'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/sqlite-3.20.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/sqlite-3.20.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/sqlite-3.20.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/sqlite-3.20.0-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/sqlite-3.20.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/sqlite-3.20.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/sqlite-3.20.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/sqlite-3.20.1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'a52b755a1727f4015ccb011cb6ffd17d31d920cb70278208cb17956617774a0a',
armv7l: 'a52b755a1727f4015ccb011cb6ffd17d31d920cb70278208cb17956617774a0a',
i686: '912ec63e2072ba9cd71884633f4daff8e1fd40603b3c25baa96554ca2e624ced',
x86_64: 'c5851611c34ac47a5541b0d0d3600f2380940f18a9699072348f0edf49bb94e8',
aarch64: '82997802921a5617b6e0474feab46b5dd32180b05bf8ff41dd52ecc229b62ac6',
armv7l: '82997802921a5617b6e0474feab46b5dd32180b05bf8ff41dd52ecc229b62ac6',
i686: '78ba72682ee0b478cf63b82f8996ab67fe2545e54df0ffde4f3a43a7840fa118',
x86_64: '4c5064330aa4e12bd780945e743bfe1187ae7187d1be91dcb5c4f6fd5fe43658',
})
def self.build
......
......@@ -3,21 +3,21 @@ require 'package'
class Tcl < Package
description 'Tcl (Tool Command Language) is a very powerful but easy to learn dynamic programming language, suitable for a very wide range of uses, including web and desktop applications, networking, administration, testing and many more.'
homepage 'http://www.tcl.tk/'
version '8.6.6'
source_url 'http://downloads.sourceforge.net/tcl/tcl8.6.6-src.tar.gz'
source_sha256 'a265409781e4b3edcc4ef822533071b34c3dc6790b893963809b9fe221befe07'
version '8.6.7'
source_url 'http://downloads.sourceforge.net/tcl/tcl8.6.7-src.tar.gz'
source_sha256 '7c6b8f84e37332423cfe5bae503440d88450da8cc1243496249faa5268026ba5'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.6-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.6-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.6-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.6-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.7-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.7-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.7-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.7-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '1f7cce2d63b32d0babf41ea2ed0df58946ab61fc675d3b278f0814f09ee1ac23',
armv7l: '1f7cce2d63b32d0babf41ea2ed0df58946ab61fc675d3b278f0814f09ee1ac23',
i686: 'baa85fce23a8ff3febfd85f70c6481a13c1485a13325b4601fcbc53277f0247f',
x86_64: '98aab819039aa52db6a192f5733b0ff7e8ce1cde0bb6b27ea54df23cd7c3cc62',
aarch64: '8e4cda3f545673755249e8b168cb07503a51e6629137cb47c1bebdd707e05947',
armv7l: '8e4cda3f545673755249e8b168cb07503a51e6629137cb47c1bebdd707e05947',
i686: '1f20c9bc6a2a5699fd86f78e5b2bfc0535fe9f97fc613bcab5bc3a517fb29d58',
x86_64: '56fba3820399b6794ed05a5725b25886f3d8b6828c2b8b08bf0245e9b7d4360c',
})
def self.build
......
......@@ -3,33 +3,25 @@ require 'package'
class Vifm < Package
description 'Vifm is an ncurses based file manager with vi like keybindings/modes/options/commands/configuration, which also borrows some useful ideas from mutt.'
homepage 'https://vifm.info/'
version '0.8.2'
source_url 'https://downloads.sourceforge.net/project/vifm/vifm/vifm-0.8.2.tar.bz2'
source_sha256 '8b466d766658a24d07fc2039a26fefc6a018f5653684a6035183ca79f02c211f'
version '0.9'
source_url 'https://downloads.sourceforge.net/project/vifm/vifm/vifm-0.9.tar.bz2'
source_sha256 'ab10c99d1e4c24ff8a03c20be1c202cc15874750cc47a1614e6fe4f8d816a7fd'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/vifm-0.8.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/vifm-0.8.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/vifm-0.8.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/vifm-0.8.2-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'd40d9b2183d4e6f80febbc92baf43dc51d8843653a86988e9dbcd8834fc0d54c',
armv7l: 'd40d9b2183d4e6f80febbc92baf43dc51d8843653a86988e9dbcd8834fc0d54c',
i686: '0bfec14d7486442fd2878619cf3915adef6a23a15a2d0ce524ec504a51e35d3f',
x86_64: '4075037bc91bed7149b8cb4adfd5ca1688e88e971c6cf25d95df85531602b6b5',
})
depends_on 'ncurses'
def self.build
system "./configure", \
"--prefix=/usr/local", \
"--prefix=#{CREW_PREFIX}", \
"--without-gtk", \
"--without-X11", \
#"--with-curses=/usr/local/include/ncursesw" \
#"--with-curses=#{CREW_PREFIX}/include/ncursesw" \
#"--with-curses-name=ncursesw" \
"CPPFLAGS=-I/usr/local/include/ncursesw"
"CPPFLAGS=-I#{CREW_PREFIX}/include/ncursesw"
system "make"
end
......
require 'find'
require_relative '../lib/color'
@all_pkgs = {}
......
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