Commit 05fda8ae authored by Casey Strouse's avatar Casey Strouse Committed by GitHub

Merge branch 'master' into update-libpipeline

parents ae38d364 58591fa5
......@@ -6,11 +6,12 @@ Package manager for Chrome OS
Supported Systems
-----------------
| Architecture | Supported? |
|:--------------:|:----------:|
| x86_64 | Yes |
| i686 | Yes |
| arm (Exynos 5) | Yes |
| Architecture | Supported? |
|:---:|:---:|
| x86_64 | Yes |
| i686 | Yes |
| armv7l | Yes |
| aarch64 | Yes (use armv7l binaries) |
Overview
--------
......
......@@ -2,18 +2,25 @@
require 'find'
require 'net/http'
require 'uri'
require 'digest/sha1'
require 'digest/sha2'
require 'json'
require 'fileutils'
@command = ARGV[0]
@pkgName = ARGV[1]
ARCH = `uname -m`.strip
ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' end
CREW_PREFIX = '/usr/local'
CREW_LIB_PREFIX = CREW_PREFIX + '/' + ARCH_LIB
CREW_LIB_PATH = CREW_PREFIX + '/lib/crew/'
CREW_CONFIG_PATH = CREW_PREFIX + '/etc/crew/'
CREW_BREW_DIR = CREW_PREFIX + '/tmp/crew/'
CREW_DEST_DIR = CREW_BREW_DIR + 'dest'
CREW_DEST_PREFIX = CREW_DEST_DIR + CREW_PREFIX
CREW_DEST_LIB_PREFIX = CREW_DEST_DIR + CREW_LIB_PREFIX
# Set CREW_NPROC from environment variable or `nproc`
if ENV["CREW_NPROC"].to_s == ''
......@@ -22,6 +29,12 @@ else
CREW_NPROC = ENV["CREW_NPROC"]
end
# Set CREW_NOT_COMPRESS from environment variable
CREW_NOT_COMPRESS = ENV["CREW_NOT_COMPRESS"]
# Set CREW_NOT_STRIP from environment variable
CREW_NOT_STRIP = ENV["CREW_NOT_STRIP"]
# Set XZ_OPT environment variable for build command.
# If CREW_XZ_OPT is defined, use it by default. Use `-7e`, otherwise.
if ENV["CREW_XZ_OPT"].to_s == ''
......@@ -30,8 +43,6 @@ else
ENV["XZ_OPT"] = ENV["CREW_XZ_OPT"]
end
ARCH = `uname -m`.strip
$LOAD_PATH.unshift "#{CREW_LIB_PATH}lib"
USER = `whoami`.chomp
......@@ -118,8 +129,8 @@ end
def print_package(pkgName, extra = false)
search pkgName, true
Find.find(CREW_CONFIG_PATH + 'meta/') do |packageList|
print '(i) '.lightgreen if packageList == CREW_CONFIG_PATH + 'meta/' + pkgName + '.filelist'
print '(i) '.lightgreen if @device[:installed_packages].any? do |elem|
elem[:name] == pkgName
end
print @pkg.name
print ": #{@pkg.description}" if @pkg.description
......@@ -154,7 +165,7 @@ def search (pkgName, silent = false)
end
def regexp_search(pkgName)
results = Dir["#{CREW_LIB_PATH}packages/*.rb"] \
results = Dir["#{CREW_LIB_PATH}packages/*.rb"].sort \
.select { |f| File.basename(f, '.rb') =~ Regexp.new(pkgName, true) } \
.collect { |f| File.basename(f, '.rb') } \
.each { |f| print_package(f, ARGV[2] == "extra") }
......@@ -299,8 +310,25 @@ def upgrade
puts "#{@pkg.name} is already up to date.".lightgreen
end
else
toBeUpdated = []
# Make a installed packages list belong to the dependency order
dependencies = []
@device[:installed_packages].each do |package|
# skip package if it is dependent other packages previously checked
next if dependencies.include? package[:name]
# add package itself
dependencies = [ package[:name] ].concat(dependencies)
# expand depencencies and add it to the dependencies list
search package[:name], true
exp_dep = expand_dependencies
dependencies = exp_dep.concat(dependencies)
end
dependencies.uniq!
# Check version number of installed package and make a target list
toBeUpdated = []
dependencies.each do |dep|
package = @device[:installed_packages].find {|pkg| pkg[:name] == dep}
next unless package
search package[:name], true
if package[:version] != @pkg.version
toBeUpdated.push(package[:name])
......@@ -339,13 +367,14 @@ def download
uri = URI.parse url
filename = File.basename(uri.path)
if source
sha1sum = @pkg.source_sha1
sha256sum = @pkg.source_sha256
else
sha1sum = @pkg.binary_sha1[@device[:architecture]]
sha256sum = @pkg.binary_sha256[@device[:architecture]]
end
Dir.chdir CREW_BREW_DIR do
system('wget', '--continue', '--no-check-certificate', url, '-O', filename)
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA1.hexdigest( File.read("./#{filename}") ) == sha1sum
abort 'Checksum mismatch. :/ Try again.'.lightred unless
Digest::SHA256.hexdigest( File.read("./#{filename}") ) == sha256sum
end
puts "Archive downloaded".lightgreen
return {source: source, filename: filename}
......@@ -395,26 +424,60 @@ def build_and_preconfigure (target_dir)
end
end
def compress_doc (dir)
# check whether crew should compress
return if CREW_NOT_COMPRESS || !File.exist?("#{CREW_PREFIX}/bin/compressdoc")
if Dir.exist? dir
system "find #{dir} -type f ! -perm -200 | xargs -r chmod u+w"
system "compressdoc --gzip -9 #{dir}"
end
end
def prepare_package (destdir)
Dir.chdir destdir do
#create directory list
# compress manual files
compress_doc "#{destdir}#{CREW_PREFIX}/man"
compress_doc "#{destdir}#{CREW_PREFIX}/info"
compress_doc "#{destdir}#{CREW_PREFIX}/share/man"
compress_doc "#{destdir}#{CREW_PREFIX}/share/info"
# create directory list
system "find . -type f > ../filelist"
system "find . -type l >> ../filelist"
system "cut -c2- ../filelist > filelist"
#create file list
# create file list
system "find . -type d > ../dlist"
system "cut -c2- ../dlist > dlistcut"
system "tail -n +2 dlistcut > dlist"
#remove temporary files
# remove temporary files
system "rm dlistcut ../dlist ../filelist"
end
end
def strip_find_files (find_cmd, strip_option = "")
# check whether crew should strip
return if CREW_NOT_STRIP || !File.exist?("#{CREW_PREFIX}/bin/strip")
# run find_cmd and strip only ar or ELF files
system "#{find_cmd} | xargs -r chmod u+w"
system "#{find_cmd} | xargs -r sh -c 'for i in \"$0\" \"$@\"; do case \"$(head -c 4 $i)\" in ?ELF|\!?ar) echo \"$i\";; esac ; done' | xargs -r strip #{strip_option}"
end
def install_package (pkgdir)
Dir.chdir pkgdir do
FileUtils.mv 'dlist', CREW_CONFIG_PATH + "meta/#{@pkg.name}.directorylist"
FileUtils.mv 'filelist', CREW_CONFIG_PATH + "meta/#{@pkg.name}.filelist"
# Strip libraries with -S
strip_find_files "find . -type f -name 'lib*.a' -print", "-S"
strip_find_files "find . -type f -name 'lib*.so*' -print", "-S"
# Strip binaries but not compressed archives
strip_find_files "find . -type f ! -iname '*\.bz2' ! -iname '*\.gz' ! -iname '*\.lha' ! -iname '*\.rar' ! -iname '*\.tar' ! -iname '*\.tgz' ! -iname '*\.xz' ! -iname '*\.zip' -perm /111 -print | sed -e '/lib.*\.a$/d' -e '/lib.*\.so/d'"
system "tar cf - ./usr/* | (cd /; tar xp --keep-directory-symlink -f -)"
end
end
......@@ -443,12 +506,9 @@ end
def expand_dependencies
@dependencies = []
# check source packages existance
@source_package = 0
def push_dependencies
if @pkg.is_binary?(@device[:architecture]) ||
(!@pkg.in_upgrade && @device[:installed_packages].any? { |pkg| pkg[:name] == @pkg.name })
(!@pkg.in_upgrade && !@pkg.build_from_source && @device[:installed_packages].any? { |pkg| pkg[:name] == @pkg.name })
# retrieve name of dependencies that doesn't contain :build tag
check_deps = @pkg.dependencies.select {|k, v| !v.include?(:build)}.map {|k, v| k}
elsif @pkg.is_fake?
......@@ -457,8 +517,6 @@ def expand_dependencies
else
# retrieve name of all dependencies
check_deps = @pkg.dependencies.map {|k, v| k}
# count the number of source packages to add buildessential into dependencies later
@source_package += 1
end
# remove a dependent package which is equal to the target
......@@ -476,12 +534,6 @@ def expand_dependencies
push_dependencies
# Add buildessential's dependencies if any of dependent
# packages are made from source
if @source_package > 0
search 'buildessential', true
push_dependencies
end
@dependencies.uniq
end
......@@ -624,7 +676,7 @@ def archive_package (pwd)
system "tar cJf #{pwd}/#{pkg_name} *"
end
Dir.chdir pwd do
system "sha1sum #{pkg_name} > #{pkg_name}.sha1"
system "sha256sum #{pkg_name} > #{pkg_name}.sha256"
end
puts "#{pkg_name} is built!".lightgreen
end
......
......@@ -39,36 +39,36 @@ urls=()
sha256s=()
case "$architecture" in
"aarch64")
urls+=('https://dl.dropboxusercontent.com/s/02afb4qm4ugl0os/ruby-2.0.0p247-chromeos-armv7l.tar.xz')
sha256s+=('de01196461edd57bb39288e7b9dee1ee3cdc605e4e8be6b8871ba47dbe1ca972')
urls+=('https://dl.dropboxusercontent.com/s/lnz5hmjv48d14f2/git-1.8.4-chromeos-armv7l.tar.xz')
sha256s+=('f6f7d2500a41419937944af464494dd0ab95b15877ee630a4c13dd0abb37b02d')
urls+=('https://dl.dropboxusercontent.com/s/fq23kj42gsifcvi/libssh2-1.4.3-chromeos-armv7l.tar.xz')
sha256s+=('c1b8b09dfae6ab82ec6c961120c38e78ee50ecf902800f8257d0916e18db0b69')
urls+=('https://github.com/jam7/chrome-cross/releases/download/v1.8/ruby-2.4.1-chromeos-armv7l.tar.xz')
sha256s+=('6c0ef23447d4591739dc00fa9b021a4d83291acbc37330e659d257efed474caf')
urls+=('https://github.com/jam7/chrome-cross/releases/download/v1.8/git-2.13.0-chromeos-armv7l.tar.xz')
sha256s+=('d66cedbf908e39275db149407fe631f497ee82bf3ae3ea433b1e8c31c40a6c25')
urls+=('https://github.com/jam7/chrome-cross/releases/download/v1.8/libssh2-1.8.0-chromeos-armv7l.tar.xz')
sha256s+=('94662756e545c73d76c37b2b83dd9852ebe71f4a17fc80d85db0fbaef72d4ca3')
;;
"armv7l")
urls+=('https://dl.dropboxusercontent.com/s/02afb4qm4ugl0os/ruby-2.0.0p247-chromeos-armv7l.tar.xz')
sha256s+=('de01196461edd57bb39288e7b9dee1ee3cdc605e4e8be6b8871ba47dbe1ca972')
urls+=('https://dl.dropboxusercontent.com/s/lnz5hmjv48d14f2/git-1.8.4-chromeos-armv7l.tar.xz')
sha256s+=('f6f7d2500a41419937944af464494dd0ab95b15877ee630a4c13dd0abb37b02d')
urls+=('https://dl.dropboxusercontent.com/s/fq23kj42gsifcvi/libssh2-1.4.3-chromeos-armv7l.tar.xz')
sha256s+=('c1b8b09dfae6ab82ec6c961120c38e78ee50ecf902800f8257d0916e18db0b69')
urls+=('https://github.com/jam7/chrome-cross/releases/download/v1.8/ruby-2.4.1-chromeos-armv7l.tar.xz')
sha256s+=('6c0ef23447d4591739dc00fa9b021a4d83291acbc37330e659d257efed474caf')
urls+=('https://github.com/jam7/chrome-cross/releases/download/v1.8/git-2.13.0-chromeos-armv7l.tar.xz')
sha256s+=('d66cedbf908e39275db149407fe631f497ee82bf3ae3ea433b1e8c31c40a6c25')
urls+=('https://github.com/jam7/chrome-cross/releases/download/v1.8/libssh2-1.8.0-chromeos-armv7l.tar.xz')
sha256s+=('94662756e545c73d76c37b2b83dd9852ebe71f4a17fc80d85db0fbaef72d4ca3')
;;
"i686")
urls+=('https://dl.dropboxusercontent.com/s/tufbuqcn80ubypx/ruby-2.0.0p247-chromeos-i686.tar.gz')
sha256s+=('e16b0925f21c8651f780fa0be721ba04546bb70017d6da2a84fad83e4ff4ebe2')
urls+=('https://dl.dropboxusercontent.com/s/g3binxopw5nfky1/git-1.8.4-chromeos-i686.tar.gz')
sha256s+=('ef561d3b0d498b847327a90ff8c9d75daa0ae04adb83a71f22bffdbb575f6097')
urls+=('https://dl.dropboxusercontent.com/s/zjnild1c2i10h53/libssh2-1.4.3-chromeos-i686.tar.gz')
sha256s+=('195aef637b35166eef4c7634b133d945536fb5d3fda2c1acac99a2b74ddcc580')
urls+=('https://github.com/jam7/chrome-cross/releases/download/v1.8/ruby-2.4.1-chromeos-i686.tar.xz')
sha256s+=('851a40ca3860eadfe21a1b77422f8769497a73fd1f275d370e3874948ddb64bd')
urls+=('https://github.com/jam7/chrome-cross/releases/download/v1.8/git-2.13.0-chromeos-i686.tar.xz')
sha256s+=('922142616e26a25551a206e1681c20c23da43eb7b83a63cfafca9297f260f987')
urls+=('https://github.com/jam7/chrome-cross/releases/download/v1.8/libssh2-1.8.0-chromeos-i686.tar.xz')
sha256s+=('7d6086f80abd3905a82bd34ffd2b811658c1eaf9ac0e63ad73df39d4ce7c3d9d')
;;
"x86_64")
urls+=('https://dl.dropboxusercontent.com/s/3dw5ue5vhf5nj8k/ruby-2.0.0-p247-chromeos1-chromeos-x86_64.tar.gz')
sha256s+=('77bd45734f460737e14d58cc73f5b9e16d22daa05eac704115047c0d8f9b5d44')
urls+=('https://dl.dropboxusercontent.com/s/i7vs9wfk94tsrzt/git-1.8.4-chromeos-x86_64.tar.gz')
sha256s+=('2938d817d1a66c94c03c886eb9cc9b2deb4f96cad6f46be82729caee46cb0197')
urls+=('https://dl.dropboxusercontent.com/s/frzkbbnf35ie6ns/libssh2-1.4.3-chromeos-x86_64.tar.gz')
sha256s+=('eaf7c34b7f694a0df2fc80ddea117997428e0f364f2729ef943ca81572dfcd6c')
urls+=('https://github.com/jam7/chrome-cross/releases/download/v1.8/ruby-2.4.1-chromeos-x86_64.tar.xz')
sha256s+=('fb15f0d6b8d02acf525ae5efe59fc7b9bc19908123c47d39559bc6e86fe1d655')
urls+=('https://github.com/jam7/chrome-cross/releases/download/v1.8/git-2.13.0-chromeos-x86_64.tar.xz')
sha256s+=('0f9d9b57a5f2bfd5e20cc2dcf4682993734d40f4db3879e60ea57e7b0fb23989')
urls+=('https://github.com/jam7/chrome-cross/releases/download/v1.8/libssh2-1.8.0-chromeos-x86_64.tar.xz')
sha256s+=('a5ebeb68c8e04e6587621a09cc43d0a3d7baf0cdb4dd945fd22253a6e0a11846')
;;
esac
......@@ -86,7 +86,7 @@ function download_check () {
case $? in
0) ;;
*)
echo 'Verification failed, something may be wrong with the $1 download.'
echo "Verification failed, something may be wrong with the $1 download."
exit 1;;
esac
}
......
require 'package_helpers'
class Package
property :description, :homepage, :version, :binary_url, :binary_sha1, :source_url, :source_sha1, :is_fake
property :description, :homepage, :version, :binary_url, :binary_sha1, :binary_sha256, :source_url, :source_sha1, :source_sha256, :is_fake
class << self
attr_reader :is_fake
......@@ -9,8 +9,6 @@ class Package
attr_accessor :in_upgrade
end
@@debug_symbol = ENV['CREW_DEBUG_SYMBOL'] || false
def self.dependencies
# We need instance variable in derived class, so not define it here,
# base class. Instead of define it, we initialize it in a function
......
require "package"
require 'package'
class A2png < Package
description 'Converts plain ASCII text into PNG bitmap images.'
homepage 'https://sourceforge.net/projects/a2png/'
version "0.1.5"
source_url "https://sourceforge.net/projects/a2png/files/a2png/0.1.5/a2png-0.1.5.tar.bz2"
source_sha1 "07c093920f2e520b2b7b77417021cdff0e92a4ed"
version '0.1.5'
source_url 'https://sourceforge.net/projects/a2png/files/a2png/0.1.5/a2png-0.1.5.tar.bz2'
source_sha256 'd3ae1c771f5180d93f35cded76d9bb4c4cc2023dbe65613e78add3eeb43f736b'
depends_on 'cairo'
def self.build
system "./configure --enable-cairo \
system './configure --enable-cairo \
--with-cairo-lib=/usr/local/lib \
--with-cairo-include=/usr/local/include/cairo"
system "make"
--with-cairo-include=/usr/local/include/cairo'
system 'make'
end
def self.install
......
require "package"
require 'package'
class A2ps < Package
description 'GNU a2ps is an Any to PostScript filter.'
homepage 'http://www.gnu.org/software/a2ps/'
version "4.14"
source_url "http://ftp.gnu.org/gnu/a2ps/a2ps-4.14.tar.gz"
source_sha1 "365abbbe4b7128bf70dad16d06e23c5701874852"
version '4.14'
source_url 'http://ftp.gnu.org/gnu/a2ps/a2ps-4.14.tar.gz'
source_sha256 'f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4'
depends_on "gperf"
depends_on "filecmd"
depends_on 'gperf'
depends_on 'filecmd'
def self.build
system "./configure"
system "make"
system './configure'
system 'make'
end
def self.install
......
......@@ -5,13 +5,13 @@ class Acl < Package
homepage 'http://savannah.nongnu.org/projects/acl'
version '2.2.52'
source_url 'http://download.savannah.gnu.org/releases/acl/acl-2.2.52.src.tar.gz'
source_sha1 '537dddc0ee7b6aa67960a3de2d36f1e2ff2059d9'
source_sha256 '179074bb0580c06c4b4137be4c5a92a701583277967acdb5546043c7874e0d23'
depends_on "attr"
depends_on 'attr'
def self.build
system "./configure --prefix=/usr/local --libexecdir=/usr/local/lib --disable-static"
system "make"
system './configure --prefix=/usr/local --libexecdir=/usr/local/lib --disable-static'
system 'make'
end
def self.install
......
require 'package'
class Ag < Package
description 'The Silver Searcher. Very fast search similar to ack or grep. (ag)'
homepage 'https://github.com/ggreer/the_silver_searcher'
version '2.0.0'
source_url 'https://github.com/ggreer/the_silver_searcher/archive/2.0.0.tar.gz'
source_sha256 'ff7243863f22ed73eeab6f7a6d17cfff585a7eaa41d5ab3ae4f5d6db97701d5f'
depends_on "autoconf"
depends_on "automake"
depends_on "pkgconfig"
depends_on "pcre"
depends_on "xzutils"
def self.build
system "autoreconf", "-fiv"
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # the steps required to install the package
end
end
......@@ -3,9 +3,9 @@ require 'package'
class Aircrack_ng < Package
description 'Key cracker for the 802.11 WEP and WPA-PSK protocols.'
homepage 'https://www.aircrack-ng.org'
version '1.2-rc4'
version '1.2-rc4-1'
source_url 'http://download.aircrack-ng.org/aircrack-ng-1.2-rc4.tar.gz'
source_sha1 '2b2fbe50fedb606b3bd96a34d49f07760e8e618a'
source_sha256 'd93ac16aade5b4d37ab8cdf6ce4b855835096ccf83deb65ffdeff6d666eaff36'
depends_on "buildessential" => :build
depends_on "bison" => :build
......@@ -16,9 +16,8 @@ class Aircrack_ng < Package
depends_on "rfkill"
def self.build
system "make",
"sqlite=true",
"experimental=true"
# Need to specify TMPDIR to run automatic configuration tool correctly
system "TMPDIR=/usr/local/tmp make sqlite=true experimental=true"
end
def self.install
......
......@@ -3,28 +3,28 @@ require 'package'
class Antiword < Package
description 'Antiword is a free MS Word reader for Linux and RISC OS.'
homepage 'http://www.winfield.demon.nl/'
version '0.37'
version '0.37-1'
source_url 'http://www.winfield.demon.nl/linux/antiword-0.37.tar.gz'
source_sha1 '4364f7f99cb2d37f7d1d5bc14a335ccc0c67292e'
source_sha256 '8e2c000fcbc6d641b0e6ff95e13c846da3ff31097801e86702124a206888f5ac'
def self.build
system 'make'
end
def self.install
system "sed -i 's,GLOBAL_RESOURCES_DIR = /usr/share/antiword,GLOBAL_RESOURCES_DIR = /usr/local/antiword,' Makefile.Linux"
system "sed -i 's,GLOBAL_RESOURCES_DIR = /usr/share/antiword,GLOBAL_RESOURCES_DIR = /usr/local/share/antiword,' Makefile.Linux"
system "sed -i 's,/share/,/,g' antiword.h"
system "sed -i 's,/usr/antiword,/usr/local/antiword,g' antiword.h"
system "sed -i 's,/usr/share/antiword,/usr/local/antiword,' Docs/antiword.1"
system "mkdir /home/$(whoami)/user/.antiword"
system "mkdir -p #{CREW_DEST_DIR}/home/$(whoami)/user/.antiword"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/antiword"
system "sed -i 's,/usr/antiword,/usr/local/share/antiword,g' antiword.h"
system "sed -i 's,/usr/share/antiword,/usr/local/share/antiword,' Docs/antiword.1"
system "mkdir /home/#{USER}/user/.antiword"
system "mkdir -p #{CREW_DEST_DIR}/home/#{USER}/user/.antiword"
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/antiword"
system "cp antiword #{CREW_DEST_DIR}/usr/local/bin"
system "cp Docs/antiword.1 #{CREW_DEST_DIR}/usr/local/man/man1"
system "cp Resources/* #{CREW_DEST_DIR}/usr/local/antiword"
system "cp Resources/UTF-8.txt /home/$(whoami)/user/.antiword"
system "cp Resources/UTF-8.txt #{CREW_DEST_DIR}/home/$(whoami)/user/.antiword"
system "cp Resources/* #{CREW_DEST_DIR}/usr/local/share/antiword"
system "cp Resources/UTF-8.txt /home/#{USER}/user/.antiword"
system "cp Resources/UTF-8.txt #{CREW_DEST_DIR}/home/#{USER}/user/.antiword"
end
end
require 'package'
class Applewmproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.4.2'
source_url 'https://www.x.org/archive/individual/proto/applewmproto-1.4.2.tar.gz'
source_sha256 'ff8ac07d263a23357af2d6ff0cca3c1d56b043ddf7797a5a92ec624f4704df2e'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,9 +3,9 @@ require 'package'
class Apr < Package
description 'The mission of the Apache Portable Runtime (APR) project is to create and maintain software libraries that provide a predictable and consistent interface to underlying platform-specific implementations. APR is the base portability library.'
homepage 'http://apr.apache.org/'
version '1.5.2'
source_url 'http://apache.claz.org/apr/apr-1.5.2.tar.bz2'
source_sha1 '6d757fcf7c687fc300c1066076f2e8380ff8cbc0'
version '1.6.2'
source_url 'http://apache.claz.org/apr/apr-1.6.2.tar.bz2'
source_sha256 '09109cea377bab0028bba19a92b5b0e89603df9eab05c0f7dbd4dd83d48dcebd'
depends_on 'buildessential'
......
require 'package'
class Apriconv < Package
description 'a portable implementation of the iconv() library'
homepage 'http://apr.apache.org/'
version '1.2.1'
source_url 'http://apache.claz.org/apr/apr-iconv-1.2.1.tar.bz2'
source_sha256 'c46c919bc2a36a705f91f4dea444b18a83236eef97a417528a988113b3a7e46e'
depends_on 'apr'
depends_on 'libtool'
def self.build
system './configure \
--prefix=/usr/local \
--with-apr=/usr/local'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "libtool --mode=finish #{CREW_DEST_DIR}/usr/local/lib/iconv"
end
end
......@@ -3,11 +3,12 @@ require 'package'
class Aprutil < Package
description 'APR-util provides a number of helpful abstractions on top of APR.'
homepage 'http://apr.apache.org/'
version '1.5.4'
source_url 'http://apache.claz.org//apr/apr-util-1.5.4.tar.gz'
source_sha1 '72cc3ac693b52fb831063d5c0de18723bc8e0095'
version '1.6.0'
source_url 'http://apache.claz.org/apr/apr-util-1.6.0.tar.bz2'
source_sha256 '8474c93fa74b56ac6ca87449abe3e155723d5f534727f3f33283f6631a48ca4c'
depends_on 'apr'
depends_on 'expat'
def self.build
system './configure --prefix=/usr/local --with-apr=/usr/local'
......
......@@ -5,13 +5,13 @@ class Aria2 < Package
homepage 'https://aria2.github.io/'
version '1.32.0'
source_url 'https://github.com/aria2/aria2/releases/download/release-1.32.0/aria2-1.32.0.tar.xz'
source_sha1 '91afc96d5ac8b5fb96ff221fba1fe6109b6f8b17'
source_sha256 '546e9194a9135d665fce572cb93c88f30fb5601d113bfa19951107ced682dc50'
depends_on 'c_ares'
depends_on 'libgcrypt'
depends_on 'libsqlite3'
depends_on 'libssh2'
depends_on 'libxml2'
depends_on 'sqlite'
depends_on 'zlibpkg'
def self.build
......
require "package"
require 'package'
class Ascii < Package
description 'List ASCII idiomatic names and octal/decimal code-point forms.'
homepage 'http://www.catb.org/~esr/ascii/'
version "3.15"
source_url "http://www.catb.org/~esr/ascii/ascii-3.15.tar.gz"
source_sha1 "94ac41d8ef89daf148ebfd30333c07f6e64d4dec"
version '3.16'
source_url 'http://www.catb.org/~esr/ascii/ascii-3.16.tar.gz'
source_sha256 'a94bb3970e8f1f63566f055517aecbdd46b11c4ccf142f77ffb80a79994f03a9'
def self.build
system "make"
system 'make'
end
def self.install
......
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'
source_url 'ftp://alpha.gnu.org/gnu/aspell/aspell-0.60.7-rc1.tar.gz'
source_sha256 '86b5662f24316142f70c5890787bdc5596625ca3604dfe85926ee61f27f2365e'
depends_on 'ruby' unless File.exists? '/usr/local/bin/ruby'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Aspell_en < Package
description 'English Aspell Dictionary'
homepage 'ftp://ftp.gnu.org/gnu/aspell/dict/0index.html'
version '2017.01.22-0'
source_url 'ftp://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-2017.01.22-0.tar.bz2'
source_sha256 '93c73fae3eab5ea3ca6db3cea8770715a820f1b7d6ea2b932dd66a17f8fd55e1'
depends_on 'aspell'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Aspell_es < Package
description 'Spanish Aspell Dictionary'
homepage 'ftp://ftp.gnu.org/gnu/aspell/dict/0index.html'
version '1.11-2'
source_url 'ftp://ftp.gnu.org/gnu/aspell/dict/es/aspell6-es-1.11-2.tar.bz2'
source_sha256 'ad367fa1e7069c72eb7ae37e4d39c30a44d32a6aa73cedccbd0d06a69018afcc'
depends_on 'aspell'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Atomicparsley < Package
description 'AtomicParsley is a lightweight command line program for reading, parsing and setting metadata into MPEG-4 files, in particular, iTunes-style metadata.'
homepage 'https://github.com/wez/atomicparsley'
version '0.9.6'
source_url 'https://bitbucket.org/wez/atomicparsley/get/0.9.6.tar.gz'
source_sha256 '8ba4e3e21d7a9239932e2a6f34842194d8f9eba84ce9eb83fb35369f5f3f05ab'
depends_on 'autoconf'
depends_on 'automake'
depends_on 'zlibpkg'
def self.build
system "./autogen.sh"
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Attr < Package
homepage 'http://savannah.nongnu.org/projects/attr'
version '2.4.47'
source_url 'http://download.savannah.gnu.org/releases/attr/attr-2.4.47.src.tar.gz'
source_sha1 '5060f0062baee6439f41a433325b8b3671f8d2d8'
source_sha256 '25772f653ac5b2e3ceeb89df50e4688891e21f723c460636548971652af0a859'
depends_on 'gettext'
......
......@@ -5,7 +5,7 @@ class Autoconf < Package
homepage 'http://www.gnu.org/software/autoconf/'
version '2.69'
source_url 'ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz'
source_sha1 'e891c3193029775e83e0534ac0ee0c4c711f6d23'
source_sha256 '64ebcec9f8ac5b2487125a86a7760d2591ac9e1d3dbd59489633f9de62a57684'
depends_on 'perl'
depends_on 'm4'
......
......@@ -5,7 +5,7 @@ class Autoconf_archive < Package
homepage 'https://www.gnu.org/software/autoconf-archive/'
version '2017-03-21'
source_url 'http://ftpmirror.gnu.org/autoconf-archive/autoconf-archive-2017.03.21.tar.xz'
source_sha1 '93483641babea959e4a307a808cbd74fb9e90d58'
source_sha256 '386ad455f12bdeb3a7d19280441a5ab77355142349200ff11040a8d9d455d765'
depends_on 'perl'
depends_on 'm4'
......
......@@ -3,9 +3,9 @@ require 'package'
class Automake < Package
description 'Automake is a tool for automatically generating Makefile.in files compliant with the GNU Coding Standards.'
homepage 'http://www.gnu.org/software/automake/'
version '1.15'
source_url 'ftp://ftp.gnu.org/gnu/automake/automake-1.15.tar.xz'
source_sha1 'c279b35ca6c410809dac8ade143b805fb48b7655'
version '1.15.1'
source_url 'https://ftp.gnu.org/gnu/automake/automake-1.15.1.tar.xz'
source_sha256 'af6ba39142220687c500f79b4aa2f181d9b24e4f8d8ec497cea4ba26c64bedaf'
depends_on 'autoconf'
......
......@@ -3,11 +3,11 @@ require 'package'
class Aws < Package
description 'The AWS CLI is an open source tool built on top of the AWS SDK for Python (Boto) that provides commands for interacting with AWS services.'
homepage 'https://aws.amazon.com/documentation/cli/'
version '1.11.110'
source_url 'https://github.com/aws/aws-cli/archive/1.11.110.tar.gz'
source_sha1 'a30e4f23951c06bb4ab9ffaa9ac42188fae6d6ba'
version '1.11.121'
source_url 'https://github.com/aws/aws-cli/archive/1.11.121.tar.gz'
source_sha256 'c667e77880a093d5ef3d635f19e7eab3cb0b7527f648d74e571fca8d170474a8'
depends_on 'python' unless File.exists? '/usr/local/bin/python'
depends_on 'python27' unless File.exists? '/usr/local/bin/python'
depends_on 'unzip'
def self.install
......
......@@ -3,9 +3,9 @@ require 'package'
class Bacon < Package
description 'BaCon is a free BASIC to C translator for Unix-based systems.'
homepage 'http://www.basic-converter.org/'
version '3.5.3'
source_url 'http://www.basic-converter.org/stable/bacon-3.5.3.tar.gz'
source_sha1 'd88cc452d0580309e106f692639293ef2c249f58'
version '3.5.4'
source_url 'http://www.basic-converter.org/stable/bacon-3.5.4.tar.gz'
source_sha256 '7b1c72fd46daaa43d19e1bfac2f9bcd9decc5b8443d8f5640e903bfc35e122b9'
def self.build
system "./configure --prefix=/usr/local --disable-gui"
......
require 'package'
class Bash_completion < Package
description 'Programmable completion functions for bash'
homepage 'https://github.com/scop/bash-completion'
version '2.7-1'
source_url 'https://github.com/scop/bash-completion/archive/2.7.tar.gz'
source_sha256 'dba2b88c363178622b61258f35d82df64dc8d279359f599e3b93eac0375a416c'
depends_on 'autoconf'
depends_on 'automake'
def self.build
system "autoreconf -i"
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
puts
puts "To complete installation, execute the following:".lightblue
puts "echo '# bash completion' >> ~/.bashrc".lightblue
puts "echo '[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion ]] && \\' >> ~/.bashrc".lightblue
puts "echo '. /usr/local/share/bash-completion/bash_completion' >> ~/.bashrc".lightblue
puts "source ~/.bashrc".lightblue
puts
end
end
......@@ -5,7 +5,7 @@ class Bashdb < Package
homepage 'http://bashdb.sourceforge.net/'
version '4.4-0.92'
source_url 'https://downloads.sourceforge.net/project/bashdb/bashdb/4.2-0.92/bashdb-4.4-0.92.tar.gz'
source_sha1 '918c7d576c476c4b7d768e1fccda6150cf5ca62d'
source_sha256 'fb3d48a22b05d4e3c7a9b8205916d50fa33aac5908f0c9bcd15ff9d4dfa59c86'
def self.build
system "./configure \
......
......@@ -5,11 +5,12 @@ class Bc < Package
homepage 'http://www.gnu.org/software/bc/'
version '1.07.1'
source_url 'https://ftp.gnu.org/gnu/bc/bc-1.07.1.tar.gz'
source_sha1 'b4475c6d66590a5911d30f9747361db47231640a'
source_sha256 '62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a'
depends_on 'readline'
depends_on 'flex' => :build
depends_on 'flex'
depends_on 'ed' => :build
depends_on 'texinfo' => :build
def self.build
system "./configure", "--with-readline"
......
......@@ -5,7 +5,7 @@ class Bcif < Package
homepage 'http://www.researchandtechnology.net/bcif/index.php'
version '1.0-beta'
source_url 'http://www.researchandtechnology.net/bcif/downloads/bcif_sources_1_0_beta.zip'
source_sha1 '330c81ce5e7c471a629d59e22dae0c59a536b1c4'
source_sha256 'fe1dde329fa60160d9ac8a0b9e4b9360a9377bc26177eab1a31e07479839d812'
depends_on 'unzip'
......
require 'package'
class Bdwgc < Package
description 'The Boehm-Demers-Weiser conservative C/C++ Garbage Collecto'
homepage 'https://github.com/ivmai/bdwgc'
version '7.6.0'
source_url 'https://github.com/ivmai/bdwgc/files/1005477/gc-7.6.0.tar.gz'
source_sha256 'a14a28b1129be90e55cd6f71127ffc5594e1091d5d54131528c24cd0c03b7d90'
depends_on 'libatomic_ops'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
\ No newline at end of file
require 'package'
class Bigreqsproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.1.2'
source_url 'https://www.x.org/archive/individual/proto/bigreqsproto-1.1.2.tar.gz'
source_sha256 'de68a1a9dd1a1219ad73531bff9f662bc62fcd777387549c43cd282399f4a6ea'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,9 +3,9 @@ require 'package'
class Bind < Package
description 'BIND is open source software that enables you to publish your Domain Name System (DNS) information on the Internet, and to resolve DNS queries for your users.'
homepage 'https://www.isc.org/downloads/bind/'
version '9.10.4'
source_url 'https://www.isc.org/downloads/file/bind-9-10-4-p6/'
source_sha1 'c08bef47136b3b88844a4c3b8a6227445fca6f40'
version '9.10.5-p3'
source_url 'https://www.isc.org/downloads/file/9-10-5-p3/?version=tar-gz'
source_sha256 '8d7e96b5b0bbac7b900d4c4bbb82e0956b4e509433c5fa392bb72a929b96606a'
depends_on "buildessential"
depends_on "openssl"
......
......@@ -3,17 +3,17 @@ require 'package'
class Binutils < Package
description 'The GNU Binutils are a collection of binary tools.'
homepage 'http://www.gnu.org/software/binutils/'
version '2.25-cc1.3'
version '2.25-3'
binary_url ({
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/binutils-2.25-cc1.3-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/binutils-2.25-cc1.3-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/binutils-2.25-cc1.3-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/binutils-2.25-cc1.3-chromeos-x86_64.tar.xz',
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/binutils-2.25-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/binutils-2.25-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/binutils-2.25-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/binutils-2.25-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
aarch64: '926b6aeab6d9c33435eefb856e4cb5263753387c',
armv7l: '926b6aeab6d9c33435eefb856e4cb5263753387c',
i686: 'ebf66128ca99fa81c26b49b20163ea77eeb1e204',
x86_64: '5427ba83960d0b7866aec8de63415720595ffe4a',
binary_sha256 ({
aarch64: '1bacd0d559775a5e8c444ccb51e75158abc4b997a206756bee2414d83f60381d',
armv7l: '1bacd0d559775a5e8c444ccb51e75158abc4b997a206756bee2414d83f60381d',
i686: '0e633732a1b4c4ca0eb7d5e7bdb69e3dc027c398caa1ad940b0bceb5a067a371',
x86_64: '98f6862f011ba38d192c8dac80f45af667832b850dc85f73959548a2a251bd44',
})
end
......@@ -5,7 +5,7 @@ class Bison < Package
homepage 'http://www.gnu.org/software/bison/'
version '3.0.4-1'
source_url 'http://mirror.keystealth.org/gnu/bison/bison-3.0.4.tar.xz'
source_sha1 '8270497aad88c7dd4f2c317298c50513fb0c3c8e'
source_sha256 'a72428c7917bdf9fa93cb8181c971b6e22834125848cf1d03ce10b1bb0716fe1'
depends_on 'diffutils' => :build
depends_on 'm4' => :build
......@@ -14,13 +14,12 @@ class Bison < Package
# depends_on 'flex' => :build
def self.build
system './configure --prefix=/usr/local'
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
system "find . -name '*.a' -print | xargs strip -S"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
......@@ -3,15 +3,15 @@ require 'package'
class Boost < Package
description 'Boost provides free peer-reviewed portable C++ source libraries.'
homepage 'http://www.boost.org/'
version '1.59.0'
source_url 'http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz'
source_sha1 '5123209db194d66d69a9cfa5af8ff473d5941d97'
version '1.64.0'
source_url 'https://downloads.sourceforge.net/project/boost/boost/1.64.0/boost_1_64_0.tar.bz2'
source_sha256 '7bcc5caace97baa948931d712ea5f37038dbb1c5d89b43ad4def4ed7cb683332'
def self.build
system './bootstrap --prefix=/usr/local'
system './bootstrap.sh'
end
def self.install
system './b2 install'
system "./b2 -a --prefix=#{CREW_DEST_DIR}#{CREW_PREFIX} --libdir=#{CREW_DEST_DIR}#{CREW_LIB_PREFIX} install"
end
end
......@@ -4,9 +4,9 @@ class Buildessential < Package
description 'A collection of tools essential to compile and build software.'
homepage ''
version '1.0'
is_fake
depends_on 'gcc'
depends_on 'linuxheaders'
depends_on 'make'
......
......@@ -5,7 +5,7 @@ class Byobu < Package
homepage 'http://byobu.org/'
version '5.119'
source_url 'https://launchpadlibrarian.net/322131788/byobu_5.119.orig.tar.gz'
source_sha1 '1d8d07da4c94c4adeb662a7f8b33fe02482d9839'
source_sha256 '4b092ca12d3a33e89d84cc90c4a41af2ba8697d48e26080a45d64d6b7800ca77'
depends_on 'gawk'
......
......@@ -5,7 +5,7 @@ class Bz2 < Package
homepage 'http://www.bzip.org/'
version '1.0.6'
source_url 'http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz'
source_sha1 '3f89f861209ce81a6bab1fd1998c0ef311712002'
source_sha256 'a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd'
depends_on 'diffutils' => :build
......@@ -34,13 +34,9 @@ class Bz2 < Package
system "ln", "-sf", "bzip2", "#{CREW_DEST_DIR}/usr/local/bin/bzcat"
# Install shared library by hand
system "cp", "-p", "libbz2.so.1.0.6", "#{CREW_DEST_DIR}/usr/local/lib"
system "ln", "-s", "libbz2.so.1.0.6", "#{CREW_DEST_DIR}/usr/local/lib/libbz2.so.1.0"
# Strip binaries and libraries
system "strip #{CREW_DEST_DIR}/usr/local/bin/bzip2"
system "strip #{CREW_DEST_DIR}/usr/local/bin/bzip2recover"
system "strip -S #{CREW_DEST_DIR}/usr/local/lib/*"
system "mkdir", "-p", "#{CREW_DEST_DIR}#{CREW_LIB_PREFIX}"
system "cp", "-p", "libbz2.so.1.0.6", "#{CREW_DEST_DIR}#{CREW_LIB_PREFIX}"
system "ln", "-s", "libbz2.so.1.0.6", "#{CREW_DEST_DIR}#{CREW_LIB_PREFIX}/libbz2.so.1.0"
end
def self.check
......
......@@ -5,7 +5,7 @@ class C_ares < Package
homepage 'https://c-ares.haxx.se/'
version '1.13.0'
source_url 'https://c-ares.haxx.se/download/c-ares-1.13.0.tar.gz'
source_sha1 'dde50284cc3d505fb2463ff6276e61d5531b1d68'
source_sha256 '03f708f1b14a26ab26c38abd51137640cb444d3ec72380b21b20f1a8d2861da7'
def self.build
system "./configure"
......
......@@ -5,7 +5,7 @@ class Cabextract < Package
homepage 'https://www.cabextract.org.uk/'
version '1.6'
source_url 'https://www.cabextract.org.uk/cabextract-1.6.tar.gz'
source_sha1 '64f6d5056d3e417a943648c23cb22218b7079ced'
source_sha256 'cee661b56555350d26943c5e127fc75dd290b7f75689d5ebc1f04957c4af55fb'
def self.build
system './configure'
......
......@@ -5,7 +5,7 @@ class Cadaver < Package
homepage 'http://www.webdav.org/cadaver/'
version '0.23.3'
source_url 'http://www.webdav.org/cadaver/cadaver-0.23.3.tar.gz'
source_sha1 '4ad8ea2341b77e7dee26b46e4a8a496f1a2962cd'
source_sha256 'fd4ce68a3230ba459a92bcb747fc6afa91e46d803c1d5ffe964b661793c13fca'
def self.build
system "./configure"
......
......@@ -2,16 +2,18 @@ require 'package'
class Cairo < Package
description 'Cairo is a 2D graphics library with support for multiple output devices.'
homepage 'https://www.cairographics.org/'
version '1.14.8'
source_url 'https://www.cairographics.org/releases/cairo-1.14.8.tar.xz'
source_sha1 'c6f7b99986f93c9df78653c3e6a3b5043f65145e'
homepage 'https://www.cairographics.org'
version '1.14.10-1'
source_url 'https://www.cairographics.org/releases/cairo-1.14.10.tar.xz'
source_sha256 '7e87878658f2c9951a14fc64114d4958c0e65ac47530b8ac3078b2ce41b66a09'
depends_on 'libpng'
depends_on 'pixman'
depends_on 'freetype' # pango requires cairo with freetype
depends_on 'fontconfig' # pango requires cairo with fontconfig
def self.build
system "./configure"
system "./configure --disable-xlib"
system "make"
end
......
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'
source_sha256 'c4d155686ac2e9d1480319de311967fadad745a6ab6971d53d495d9a9e52dc47'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Cdrkit < Package
homepage 'https://launchpad.net/cdrkit'
version '1.1.11'
source_url 'https://downloads.sourceforge.net/project/wodim/cdrkit/cdrkit_1.1.11.orig.tar.gz'
source_sha1 '3f7ddc06db0272942e1a4cd98c3c96462df77387'
source_sha256 'd1c030756ecc182defee9fe885638c1785d35a2c2a297b4604c0e0dcc78e47da'
depends_on 'cmake'
depends_on 'libcap'
......
......@@ -5,7 +5,7 @@ class Chicken < Package
homepage 'https://code.call-cc.org/'
version '4.12.0'
source_url 'https://code.call-cc.org/releases/4.12.0/chicken-4.12.0.tar.gz'
source_sha1 'f128b57d42ce6f1d4a56a372916e9e538ae1ceab'
source_sha256 '605ace459bc66e8c5f82abb03d9b1c9ca36f1c2295931d244d03629a947a6989'
def self.build
system "make", "PLATFORM=linux"
......
......@@ -3,11 +3,18 @@ require 'package'
class Clamav < Package
description 'ClamAV is an open source antivirus engine for detecting trojans, viruses, malware & other malicious threats.'
homepage 'https://www.clamav.net/'
version '0.99.2'
version '0.99.2-1'
source_url 'https://www.clamav.net/downloads/production/clamav-0.99.2.tar.gz'
source_sha1 'c1a47411834d8527f7b40727aebee63f01d488af'
source_sha256 '167bd6a13e05ece326b968fdb539b05c2ffcfef6018a274a10aeda85c2c0027a'
depends_on 'patch'
depends_on 'autoconf'
def self.build
# Apply patch available at https://bugzilla.clamav.net/show_bug.cgi?id=11711.
# This will be fixed in next release.
system "curl -L 'https://bugzilla.clamav.net/attachment.cgi?id=7207' | patch -p0"
system "autoconf"
system "./configure"
system "make"
end
......
......@@ -5,7 +5,7 @@ class Clisp < Package
homepage 'http://www.gnu.org/software/clisp/'
version '2.49-2'
source_url 'ftp://ftp.gnu.org/pub/gnu/clisp/release/2.49/clisp-2.49.tar.bz2'
source_sha1 '7e8d585ef8d0d6349ffe581d1ac08681e6e670d4'
source_sha256 '8132ff353afaa70e6b19367a25ae3d5a43627279c25647c220641fed00f8e890'
depends_on 'libsigsegv'
depends_on 'ffcall'
......
......@@ -3,17 +3,17 @@ require 'package'
class Cloog < Package
description 'Chunky Loop Generator which is used to perform optimization in gcc'
homepage 'https://www.cloog.org/'
version "0.18.4-cc1.3"
version '0.18.4-2'
binary_url ({
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/cloog-0.18.4-cc1.3-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/cloog-0.18.4-cc1.3-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/cloog-0.18.4-cc1.3-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/cloog-0.18.4-cc1.3-chromeos-x86_64.tar.xz',
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/cloog-0.18.4-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/cloog-0.18.4-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/cloog-0.18.4-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/cloog-0.18.4-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
aarch64: 'e54784816f181c185dbd0eddc1b0c9f898db2caa',
armv7l: 'e54784816f181c185dbd0eddc1b0c9f898db2caa',
i686: '3409f9c55e187533308f4febee39651833f592ad',
x86_64: 'cb29abf230eff44903a9a727f901903cba8bd1c7',
binary_sha256 ({
aarch64: 'f79bede55ba092c133a26b03c79b71a4d9e7f46c7118308f9d182f3a2ed3f2c0',
armv7l: 'f79bede55ba092c133a26b03c79b71a4d9e7f46c7118308f9d182f3a2ed3f2c0',
i686: '7bf5c2b4eb9b0d27fe10c4da4315ffb767f22dcc0281803e1f38bfbf6cbb6c74',
x86_64: 'e5f20db359ef15b7881f0b15f25851a462fc06ccd5e17f23cfc420a6b29b79f6',
})
end
......@@ -3,9 +3,9 @@ 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.7.2'
source_url 'https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz'
source_sha1 'ea73af0c3c832e586bf2f82a13a708ea509d5a88'
version '3.9.0'
source_url 'https://cmake.org/files/v3.9/cmake-3.9.0.tar.gz'
source_sha256 '167701525183dbb722b9ffe69fb525aa2b81798cf12f5ce1c020c93394dfae0f'
depends_on 'buildessential'
depends_on 'openssl'
......
......@@ -3,15 +3,15 @@ require 'package'
class Cmatrix < Package
description "CMatrix is a program to see the cool scrolling lines from 'The Matrix' movie."
homepage 'http://www.asty.org/cmatrix/'
version '1.2a'
version '1.2a-1'
source_url 'http://www.asty.org/cmatrix/dist/cmatrix-1.2a.tar.gz'
source_sha1 'ca078c10322a47e327f07a44c9a42b52eab5ad93'
source_sha256 '1fa6e6caea254b6fe70a492efddc1b40ad7ccb950a5adfd80df75b640577064c'
depends_on 'buildessential'
depends_on 'ncurses'
def self.build
system './configure --prefix=/usr/local CPPFLAGS="-I/usr/local/include/ncurses"'
system "CPPFLAGS=-I#{CREW_PREFIX}/include/ncurses ./configure --prefix=#{CREW_PREFIX}"
system "make"
end
......
......@@ -5,7 +5,7 @@ class Composer < Package
homepage 'https://getcomposer.org/'
version '1.4.2'
source_url 'https://github.com/composer/composer/archive/1.4.2.tar.gz'
source_sha1 'd0179a967011891c2c1e6067acc1faa1e8a8c81c'
source_sha256 'b5ebe7bfddf6e05be9ab071d5d53dc49e7c9059a12238460ec86e2e6ab722e06'
depends_on 'php7' unless File.exists? '/usr/local/bin/php'
......
require 'package'
class Compositeproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '0.4'
source_url 'https://www.x.org/archive/individual/proto/compositeproto-0.4.tar.gz'
source_sha256 '1607f58409185203077de59801970b07a36f41e586a499918284c8d768d870cc'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Compressdoc < Package
description 'Compress (with bzip2 or gzip) all man pages in a hierarchy and update symlinks'
homepage 'https://github.com/ojab/BLFS/blob/master/auxfiles/compressdoc'
version '9b2b12'
source_url 'https://github.com/ojab/BLFS/archive/9b2b12c0d809e287e1ea3fa4790a73a71feffbe4.tar.gz'
source_sha256 '6ebe4a9bbef5d0e84a36e56ac6fb1f0a2cfa86cb00c49628a0d3151d37f5d2f1'
binary_url ({
aarch64: 'https://github.com/jam7/chromebrew/releases/download/binaries/compressdoc-9b2b12-chromeos-x86_64.tar.xz',
armv7l: 'https://github.com/jam7/chromebrew/releases/download/binaries/compressdoc-9b2b12-chromeos-x86_64.tar.xz',
i686: 'https://github.com/jam7/chromebrew/releases/download/binaries/compressdoc-9b2b12-chromeos-x86_64.tar.xz',
x86_64: 'https://github.com/jam7/chromebrew/releases/download/binaries/compressdoc-9b2b12-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '4743bfb71bf851cb659dce71465e034fae19250e72f97aa7a50d6d8298f03347',
armv7l: '4743bfb71bf851cb659dce71465e034fae19250e72f97aa7a50d6d8298f03347',
i686: '4743bfb71bf851cb659dce71465e034fae19250e72f97aa7a50d6d8298f03347',
x86_64: '4743bfb71bf851cb659dce71465e034fae19250e72f97aa7a50d6d8298f03347',
})
def self.install
system "chmod +x auxfiles/compressdoc"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp auxfiles/compressdoc #{CREW_DEST_DIR}/usr/local/bin"
end
end
require 'package'
class Coreutils < Package
description 'The GNU Core Utilities are the basic file, shell and text manipulation utilities of the GNU operating system.'
homepage 'http://www.gnu.org/software/coreutils/coreutils.html'
version '8.27'
source_url 'https://ftpmirror.gnu.org/coreutils/coreutils-8.27.tar.xz'
source_sha256 '8891d349ee87b9ff7870f52b6d9312a9db672d2439d289bc57084771ca21656b'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Cpio < Package
homepage 'https://www.gnu.org/software/cpio/'
version '2.12'
source_url 'http://ftp.gnu.org/gnu/cpio/cpio-2.12.tar.gz'
source_sha1 'b366685662ab26661c6204b4631af6232e48be3f'
source_sha256 '08a35e92deb3c85d269a0059a27d4140a9667a6369459299d08c17f713a92e73'
depends_on 'binutils'
depends_on 'gawk'
......
......@@ -3,11 +3,11 @@ require 'package'
class Cpustat < Package
description 'cpustat periodically dumps out the current CPU utilisation statistics of running processes.'
homepage 'http://kernel.ubuntu.com/~cking/cpustat/'
version '0.02.01'
source_url 'http://kernel.ubuntu.com/~cking/tarballs/cpustat/cpustat-0.02.01.tar.gz'
source_sha1 '0eca37a1c6e1282b05be51fc2dd1dac72875112d'
version '0.02.03'
source_url 'http://kernel.ubuntu.com/~cking/tarballs/cpustat/cpustat-0.02.03.tar.gz'
source_sha256 '8e48cbd6927b9060a59cd278bb855f6fcdb773ff5ff919a1f75c086c94b4c1d0'
depends_on "ncurses"
depends_on 'ncurses'
def self.build
system "sed -i 's,/usr,/usr/local,g' Makefile"
......
require 'package'
class Ctags < Package
description 'Exuberant Ctags is a multilanguage reimplementation of the Unix ctags utility.'
homepage 'https://sourceforge.net/projects/ctags/'
version '5.8'
source_url 'http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz'
source_sha1 '482da1ecd182ab39bbdc09f2f02c9fba8cd20030'
source_sha256 '0e44b45dcabe969e0bbbb11e30c246f81abe5d32012db37395eb57d66e9e99c7'
def self.build
system "./configure"
......
......@@ -5,7 +5,7 @@ class Ctorrent < Package
homepage 'http://www.rahul.net/dholmes/ctorrent/'
version '3.3.2'
source_url 'http://www.rahul.net/dholmes/ctorrent/ctorrent-dnh3.3.2.tar.gz'
source_sha1 'd4e221f0292268f80e2430ce9d451dd64cf1ffaa'
source_sha256 'c87366c91475931f75b924119580abd06a7b3cb3f00fef47346552cab1e24863'
def self.build
system "./configure"
......
......@@ -5,7 +5,7 @@ class Curl < Package
homepage 'https://curl.haxx.se/'
version '7.54.1'
source_url 'https://curl.haxx.se/download/curl-7.54.1.tar.bz2'
source_sha1 'f5193316e4b5ff23505cb09bc946763d35d02cd6'
source_sha256 'fdfc4df2d001ee0c44ec071186e770046249263c491fcae48df0e1a3ca8f25a0'
depends_on 'openssl' => :build
depends_on 'zlibpkg' => :build
......@@ -13,15 +13,12 @@ class Curl < Package
depends_on 'groff' => :build
def self.build
system "./configure", "--disable-static"
system "./configure", "--libdir=#{CREW_LIB_PREFIX}", "--disable-static"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
# strip debug symbol from library
system "strip -S #{CREW_DEST_DIR}/usr/local/lib/libcurl.so.*"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
require 'package'
class Damageproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.2.1'
source_url 'https://www.x.org/archive/individual/proto/damageproto-1.2.1.tar.gz'
source_sha256 'f65ccbf1de9750a527ea6e85694085b179f2d06495cbdb742b3edb2149fef303'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,10 +5,10 @@ class Darkhttpd < Package
homepage 'https://unix4lyfe.org/darkhttpd/'
version '1.12'
source_url 'https://unix4lyfe.org/darkhttpd/darkhttpd-1.12.tar.bz2'
source_sha1 '30892c4b5d617548410914c9a5e56e0ebce02256'
source_sha256 'a50417b622b32b5f421b3132cb94ebeff04f02c5fb87fba2e31147d23de50505'
def self.build
system 'make'
system 'make'
end
def self.install
......
require 'package'
class Dart < Package
version '1.22.0'
description 'The Dart SDK is a set of tools and libraries for the Dart programming language. You can find information about Dart online at dartlang.org.'
homepage 'https://www.dartlang.org'
version '1.24.2'
case ARCH
when 'i686'
source_url 'https://storage.googleapis.com/dart-archive/channels/stable/release/1.24.2/sdk/dartsdk-linux-ia32-release.zip'
source_sha256 '5b71cfe2331bea13227521c101bc7b3e8cfc8418c45615e6ea9dccf056bd323b'
when 'x86_64'
source_url 'https://storage.googleapis.com/dart-archive/channels/stable/release/1.24.2/sdk/dartsdk-linux-x64-release.zip'
source_sha256 'f774330896e60df918848075f3f1d9ada414bcce4fe81504e2646a79536eb333'
when 'armv7l'
source_url 'https://storage.googleapis.com/dart-archive/channels/stable/release/1.24.2/sdk/dartsdk-linux-arm-release.zip'
source_sha256 'c65d7ff111e396a9c7a691fc8470abe5e58cccdf70ef74c191d1cc527dc7c6fb'
when 'aarch64'
source_url 'https://storage.googleapis.com/dart-archive/channels/stable/release/1.24.2/sdk/dartsdk-linux-arm64-release.zip'
source_sha256 'b547ad50f0208cdedf9bf432b5c1c41c8b6c53d9c5ff5ac4325460e8ba604e49'
#
# comment out abort per discussion in #798
# https://github.com/skycocker/chromebrew/pull/798
# we have all current archs covered here anyway, i believe
#
# else
# abort 'Unable to install dart sdk. Architecture not supported.'.lightred
end
binary_url ({
armv7l: "https://www.dropbox.com/s/3w9kvs3yross3lw/dart-1.22.0-arm.tgz",
i686: "https://www.dropbox.com/s/p3ib8qx32j70qwi/dart-1.22.0-ia32.tgz",
x86_64: "https://www.dropbox.com/s/i8r0kzqd5r7iunz/dart-1.22.0-x64.tgz"
})
binary_sha1 ({
armv7l: "7d8d9cb9e92d72853eb7c536fd5af6183973958d",
i686: "0dc1c5de8f0802ff64ba111d60432191d8e852de",
x86_64: "472c6364d4afac21337fcd89c3001c04fa63bb4d"
})
depends_on 'unzip'
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local"
system "cp -r bin/ #{CREW_DEST_DIR}/usr/local"
system "cp -r lib/ #{CREW_DEST_DIR}/usr/local"
system "cp -r include/ #{CREW_DEST_DIR}/usr/local"
end
end
require 'package'
class Datamash < Package
description 'GNU Datamash is a command-line program which performs basic numeric,textual and statistical operations on input textual data files.'
homepage 'http://savannah.gnu.org/projects/datamash'
version '1.1.1'
source_url 'https://ftpmirror.gnu.org/datamash/datamash-1.1.1.tar.gz'
source_sha256 '420819b3d7372ee3ce704add847cff7d08c4f8176c1d48735d4a632410bb801b'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,9 +3,9 @@ require 'package'
class Dbus < Package
description 'D-Bus is a message bus system, a simple way for applications to talk to one another.'
homepage 'https://www.freedesktop.org/wiki/Software/dbus/'
version '1.11.12'
source_url 'https://dbus.freedesktop.org/releases/dbus/dbus-1.11.12.tar.gz'
source_sha1 '2e2247398abb22115e724b5e955fece2307dddb0'
version '1.11.14'
source_url 'https://dbus.freedesktop.org/releases/dbus/dbus-1.11.14.tar.gz'
source_sha256 '55cfc7fdd2cccb2fce1f75d2132ad4801b5ed6699fc2ce79ed993574adf90c80'
depends_on 'expat'
......
......@@ -3,9 +3,9 @@ require 'package'
class Di < Package
description '\'di\' is a disk information utility, displaying everything (and more) that your \'df\' command does.'
homepage 'http://gentoo.com/di/'
version '4.43'
source_url 'http://gentoo.com/di/di-4.43.tar.gz'
source_sha1 'ddced0d59d29ccdcbc4282bc7464a925d14955e1'
version '4.44'
source_url 'https://gentoo.com/di/di-4.44.tar.gz'
source_sha256 '963d00cadbf5a115ff31b31b0d6141be751c7b0a209e50990cb78e36d1a50320'
def self.build
system "sed -i '40s,= ,= $(DESTDIR)/,' Makefile" # set correct bin path
......
......@@ -3,11 +3,11 @@ require 'package'
class Diffutils < Package
description 'GNU Diffutils is a package of several programs related to finding differences between files.'
homepage 'http://www.gnu.org/software/diffutils/'
version '3.5-1'
source_url 'ftp://ftp.gnu.org/gnu/diffutils/diffutils-3.5.tar.xz'
source_sha1 '1169cce8eaaf7290dc087d65db7ed75de0dceb93'
version '3.6'
source_url 'https://ftp.gnu.org/gnu/diffutils/diffutils-3.6.tar.xz'
source_sha256 'd621e8bdd4b573918c8145f7ae61817d1be9deb4c8d2328a65cea8e11d783bd6'
depends_on "libsigsegv"
depends_on 'libsigsegv'
def self.build
system "./configure --prefix=/usr/local"
......@@ -15,7 +15,7 @@ class Diffutils < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
......@@ -3,11 +3,11 @@ require 'package'
class Diskscan < Package
description 'diskscan is intended to find sectors of a storage medium (hard disk, flash drive or pendrive, etc.) which are bad or in the process of going bad.'
homepage 'http://blog.disksurvey.org/proj/diskscan/'
version '0.19'
version '0.19-1'
source_url 'https://github.com/baruch/diskscan/archive/0.19.tar.gz'
source_sha1 '74777d57af378fffe209086a026b788cd35d4d05'
source_sha256 '92a7298af99043e1e584e4343040b6574b9229f44c122e1cbcb90ba478d928d1'
depends_on 'cmake'
depends_on 'cmake' => :build
depends_on 'termcap'
def self.build
......@@ -18,8 +18,4 @@ class Diskscan < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
system "make", "check"
end
end
require 'package'
class Dmidecode < Package
description "Dmidecode reports information about your system's hardware as described in your system BIOS according to the SMBIOS/DMI standard (see a sample output)."
homepage 'http://www.nongnu.org/dmidecode/'
version '3.1'
source_url 'http://download.savannah.gnu.org/releases/dmidecode/dmidecode-3.1.tar.xz'
source_sha256 'd766ce9b25548c59b1e7e930505b4cad9a7bb0b904a1a391fbb604d529781ac0'
def self.build
case ARCH
when 'i686', 'x86_64'
system 'make'
else
puts "#{ARCH} architecture not supported.".lightred
end
end
def self.install
case ARCH
when 'i686', 'x86_64'
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
puts ""
puts "To complete the installation, execute the following:".lightblue
puts "echo 'export PATH=$PATH:/usr/local/sbin' >> ~/.bashrc && source ~/.bashrc".lightblue
puts ""
end
end
end
require 'package'
class Dmxproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '2.3'
source_url 'https://www.x.org/archive/individual/proto/dmxproto-2.3.tar.gz'
source_sha256 'a911a086a61c1bb16d35f70b391f167744ee721b5e2a7f22c00bc5a2c1ecb242'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Docbook < Package
homepage 'http://docbook.sourceforge.net/'
version '1.79.1'
source_url 'https://downloads.sourceforge.net/project/docbook/docbook-xsl/1.79.1/docbook-xsl-1.79.1.tar.bz2'
source_sha1 '7487b2acc7106253bb77fcddc7e1a9788601ad23'
source_sha256 '725f452e12b296956e8bfb876ccece71eeecdd14b94f667f3ed9091761a4a968'
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/docbook"
......
require 'package'
# from LFS: http://www.linuxfromscratch.org/blfs/view/cvs/pst/docbook.html
class Docbook_xml < Package
description 'document type definitions for verification of XML data files against the DocBook rule set'
homepage 'http://www.docbook.org'
version '4.3'
source_url 'http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip'
source_sha256 '23068a94ea6fd484b004c5a73ec36a66aa47ea8f0d6b62cc1695931f5c143464'
depends_on 'unzip'
depends_on 'libxml2'
depends_on 'docbook'
def self.build
end
def self.install
system "install -v -d -m755 #{CREW_DEST_DIR}/usr/local/share/xml/docbook/xml-dtd-4.3"
system "install -v -d -m755 #{CREW_DEST_DIR}/usr/local/etc/xml"
system "cp -v -af docbook.cat *.dtd ent/ *.mod #{CREW_DEST_DIR}/usr/local/share/xml/docbook/xml-dtd-4.3"
system "if [ ! -e #{CREW_DEST_DIR}/usr/local/etc/xml/docbook ]; then
xmlcatalog --noout --create #{CREW_DEST_DIR}/usr/local/etc/xml/docbook
fi &&
xmlcatalog --noout --add 'public' \
'-//OASIS//DTD DocBook XML V4.3//EN' \
'http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//DTD DocBook XML CALS Table Model V4.3//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/calstblx.dtd' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//DTD XML Exchange Table Model 19990315//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/soextblx.dtd' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//ELEMENTS DocBook XML Information Pool V4.3//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/dbpoolx.mod' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.3//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/dbhierx.mod' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//ELEMENTS DocBook XML HTML Tables V4.3//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/htmltblx.mod' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//ENTITIES DocBook XML Notations V4.3//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/dbnotnx.mod' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//ENTITIES DocBook XML Character Entities V4.3//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/dbcentx.mod' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'public' \
'-//OASIS//ENTITIES DocBook XML Additional General Entities V4.3//EN' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3/dbgenent.mod' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'rewriteSystem' \
'http://www.oasis-open.org/docbook/xml/4.3' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook &&
xmlcatalog --noout --add 'rewriteURI' \
'http://www.oasis-open.org/docbook/xml/4.3' \
'file:///usr/local/share/xml/docbook/xml-dtd-4.3' \
#{CREW_DEST_DIR}/usr/local/etc/xml/docbook"
system "if [ ! -e #{CREW_DEST_DIR}/usr/local/etc/xml/catalog ]; then
xmlcatalog --noout --create #{CREW_DEST_DIR}/usr/local/etc/xml/catalog
fi &&
xmlcatalog --noout --add 'delegatePublic' \
'-//OASIS//ENTITIES DocBook XML' \
'file:///usr/local/etc/xml/docbook' \
#{CREW_DEST_DIR}/usr/local/etc/xml/catalog &&
xmlcatalog --noout --add 'delegatePublic' \
'-//OASIS//DTD DocBook XML' \
'file:///usr/local/etc/xml/docbook' \
#{CREW_DEST_DIR}/usr/local/etc/xml/catalog &&
xmlcatalog --noout --add 'delegateSystem' \
'http://www.oasis-open.org/docbook/' \
'file:///usr/local/etc/xml/docbook' \
#{CREW_DEST_DIR}/usr/local/etc/xml/catalog &&
xmlcatalog --noout --add 'delegateURI' \
'http://www.oasis-open.org/docbook/' \
'file:///usr/local/etc/xml/docbook' \
#{CREW_DEST_DIR}/usr/local/etc/xml/catalog"
end
end
require 'package'
# from LFS: http://www.linuxfromscratch.org/blfs/view/cvs/pst/docbook-xsl.html
class Docbook_xsl < Package
description 'The DocBook XSL Stylesheets package contains XSL stylesheets. These are useful for performing transformations on XML DocBook files.'
homepage 'https://github.com/docbook/xslt10-stylesheets'
version '1.79.1'
source_url 'http://downloads.sourceforge.net/docbook/docbook-xsl-1.79.1.tar.bz2'
source_sha256 '725f452e12b296956e8bfb876ccece71eeecdd14b94f667f3ed9091761a4a968'
depends_on 'unzip'
depends_on 'libxml2'
depends_on 'libxslt'
depends_on 'docbook_xml'
depends_on 'docbook'
def self.build
end
def self.install
system "install -v -m755 -d #{CREW_DEST_DIR}/usr/local/share/xml/docbook/xsl-stylesheets-1.79.1 &&
cp -v -R VERSION assembly common eclipse epub epub3 extensions fo \
highlighting html htmlhelp images javahelp lib manpages params \
profiling roundtrip slides template tests tools webhelp website \
xhtml xhtml-1_1 xhtml5 \
#{CREW_DEST_DIR}/usr/local/share/xml/docbook/xsl-stylesheets-1.79.1 &&
ln -s VERSION #{CREW_DEST_DIR}/usr/local/share/xml/docbook/xsl-stylesheets-1.79.1/VERSION.xsl &&
install -v -m644 -D README \
#{CREW_DEST_DIR}/usr/local/share/doc/docbook-xsl-1.79.1/README.txt &&
install -v -m644 RELEASE-NOTES* NEWS* \
#{CREW_DEST_DIR}/usr/local/share/doc/docbook-xsl-1.79.1"
system "xmlcatalog --noout --add 'rewriteSystem' \
'http://docbook.sourceforge.net/release/xsl/1.79.1' \
'#{CREW_DEST_DIR}/usr/local/share/xml/docbook/xsl-stylesheets-1.79.1' \
/usr/local/etc/xml/catalog &&
xmlcatalog --noout --add 'rewriteURI' \
'http://docbook.sourceforge.net/release/xsl/1.79.1' \
'#{CREW_DEST_DIR}/usr/local/share/xml/docbook/xsl-stylesheets-1.79.1' \
/usr/local/etc/xml/catalog &&
xmlcatalog --noout --add 'rewriteSystem' \
'http://docbook.sourceforge.net/release/xsl/current' \
'#{CREW_DEST_DIR}/usr/local/share/xml/docbook/xsl-stylesheets-1.79.1' \
/usr/local/etc/xml/catalog &&
xmlcatalog --noout --add 'rewriteURI' \
'http://docbook.sourceforge.net/release/xsl/current' \
'#{CREW_DEST_DIR}/usr/local/share/xml/docbook/xsl-stylesheets-1.79.1' \
/usr/local/etc/xml/catalog"
end
end
......@@ -3,13 +3,12 @@ require 'package'
class Dos2unix < Package
description 'dos2unix includes utilities to convert text files with DOS or Mac line endings to Unix line endings and vice versa.'
homepage 'http://freecode.com/projects/dos2unix'
version '7.3.4'
source_url 'https://sourceforge.net/projects/dos2unix/files/dos2unix/7.3.4/dos2unix-7.3.4.tar.gz'
source_sha1 'f19641741806b8411566144bfdf56df718b4aca0'
version '7.3.5'
source_url 'https://downloads.sourceforge.net/project/dos2unix/dos2unix/7.3.5/dos2unix-7.3.5.tar.gz'
source_sha256 'a72caa2fb5cb739403315472fe522eda41aabab2a02ad6f5589639330af262e5'
def self.build
system 'make'
system 'make strip'
end
def self.install
......
require 'package'
class Dri2proto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '2.8'
source_url 'https://www.x.org/archive/individual/proto/dri2proto-2.8.tar.gz'
source_sha256 '7e65b031eaa6ebe23c75583d4abd993ded7add8009b4200a4db7aa10728b0f61'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Dri3proto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.0'
source_url 'https://www.x.org/archive/individual/proto/dri3proto-1.0.tar.gz'
source_sha256 'e1a0dad3009ecde52c0bf44187df5f95cc9a7cc0e76dfc2f2bbf3e909fe03fa9'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
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.'
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 '28.4.14'
version '32.4.23-1'
case ARCH
when 'x86'
source_url 'https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86-28.4.14.tar.gz'
source_sha1 '32f5e412b8f630c057bc4d4a8a034fe9af685ddc'
when 'i686'
source_url 'https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86-32.4.23.tar.gz'
source_sha256 'd7e130f2872fb2d141f8d2f892f7a2c29b95ccd3620398c21ea53dee878dc075'
when 'x86_64'
source_url 'https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-28.4.14.tar.gz'
source_sha1 '40f4f37b64394d42f4fa3d6b3d53553f854587e4'
source_url 'https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-32.4.23.tar.gz'
source_sha256 'a18dca750e72e0604b9798bfe5e0b9b7a2b5ed43116ab96166a298ae3c1b5086'
else
abort 'Unable to install dropboxd. Supported architectures include x86 and x86_64 only.'.lightred
puts 'Unable to install dropboxd. Supported architectures include i686 and x86_64 only.'.lightred
end
depends_on 'python'
depends_on 'python27' unless File.exists? '/usr/local/bin/python'
def self.install
def self.build
system "wget https://linux.dropbox.com/packages/dropbox.py"
abort "Checksum mismatch. :/ Try again.".lightred unless Digest::SHA1.hexdigest( File.read("dropbox.py") ) == "de22fc6e68d5ff80885da032b79a8ad88f12d770"
system "sed -i 's,~/.dropbox-dist,/usr/local/bin,g' dropbox.py"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp -r .dropbox-dist/. #{CREW_DEST_DIR}/usr/local/bin"
system "sed -i 's,~/.dropbox-dist,#{CREW_LIB_PREFIX}/dropbox,g' dropbox.py"
system "echo '#!/bin/bash' > dropbox"
system "echo 'python /usr/local/bin/dropbox.py \$1' >> dropbox"
system "echo 'python #{CREW_PREFIX}/bin/dropbox.py \"\$@\"' >> dropbox"
system "chmod +x dropbox"
system "cp dropbox.py #{CREW_DEST_DIR}/usr/local/bin"
system "cp dropbox #{CREW_DEST_DIR}/usr/local/bin"
end
def self.install
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
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 dropbox #{CREW_DEST_PREFIX}/bin"
end
end
require 'package'
class Dropbox_uploader < Package
description 'Dropbox Uploader is a BASH script which can be used to upload, download, list or delete files from Dropbox, an online file sharing, synchronization and backup service.'
homepage 'https://github.com/andreafabrizi/Dropbox-Uploader'
version '1.0'
source_url 'https://github.com/andreafabrizi/Dropbox-Uploader/archive/1.0.tar.gz'
source_sha256 '8c9be8bd38fb3b0f0b4d1a863132ad38c8299ac62ecfbd1e818addf32b48d84c'
depends_on 'curl'
def self.install
system "sed -i 's,dropbox_uploader.sh,dropbox_uploader,g' dropShell.sh"
system "chmod +x dropShell.sh"
system "chmod +x dropbox_uploader.sh"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp dropShell.sh #{CREW_DEST_DIR}/usr/local/bin/dropshell"
system "cp dropbox_uploader.sh #{CREW_DEST_DIR}/usr/local/bin/dropbox_uploader"
puts ""
puts "Type 'dropbox_uploader' and follow the instructions to finish the installation.".lightblue
puts "To execute The Interactive Dropbox SHELL, type 'dropshell'.".lightblue
puts ""
end
end
......@@ -5,7 +5,7 @@ class Dstat < Package
homepage 'http://dag.wiee.rs/home-made/dstat/'
version '0.7.3'
source_url 'https://github.com/dagwieers/dstat/archive/0.7.3.tar.gz'
source_sha1 '1e410412a1f53b7be5292354e815785f480fd0e5'
source_sha256 '46e63821857b69fbc60cb2c7d893ccdd6f31cd9ef24b8bb0b68951e1c7374898'
depends_on "python27"
......@@ -13,6 +13,6 @@ class Dstat < Package
end
def self.install
system "make", "prefix=/usr/local", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "prefix=/usr/local", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Dtrx < Package
homepage 'https://brettcsmith.org/2007/dtrx/'
version '7.1'
source_url 'https://brettcsmith.org/2007/dtrx/dtrx-7.1.tar.gz'
source_sha1 '05cfe705a04a8b84571b0a5647cd2648720791a4'
source_sha256 '1c9afe48e9d9d4a1caa4c9b0c50593c6fe427942716ce717d81bae7f8425ce97'
depends_on 'binutils'
depends_on 'bz2'
......
......@@ -5,7 +5,7 @@ class Ed < Package
homepage 'http://www.gnu.org/software/ed/ed.html'
version '1.14.2-1'
source_url 'http://ftpmirror.gnu.org/ed/ed-1.14.2.tar.lz'
source_sha1 '3e8aa331ffbc929884107ff3f8fbd76d01252277'
source_sha256 'f57962ba930d70d02fc71d6be5c5f2346b16992a455ab9c43be7061dec9810db'
# only lz archive is available for ed and it requires lzip.
depends_on 'lzip' => :build
......@@ -16,7 +16,7 @@ class Ed < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
......@@ -3,17 +3,22 @@ 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.3.1'
depends_on 'erlang'
version '1.5.0'
source_url 'https://github.com/elixir-lang/elixir/releases/download/v1.5.0/Precompiled.zip'
source_sha256 '01841d8f973e10ea2e8e29342193063efb5ebe2c598c21dc8a3b93ec8428466a'
source_url 'https://github.com/elixir-lang/elixir/archive/v1.3.1.tar.gz'
source_sha1 '29dc1b4da5e051ad71ad84b6886d7c184e4b9add'
depends_on 'erlang'
depends_on 'unzip'
def self.build
system 'make clean test'
# do noting
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "mkdir -p #{CREW_DEST_DIR}#{CREW_PREFIX}"
system "mkdir -p #{CREW_DEST_DIR}#{CREW_PREFIX}/share"
system "mv bin #{CREW_DEST_DIR}#{CREW_PREFIX}"
system "mv lib #{CREW_DEST_DIR}#{CREW_PREFIX}"
system "mv man #{CREW_DEST_DIR}#{CREW_PREFIX}/share"
end
end
......@@ -5,7 +5,7 @@ class Emacs < Package
homepage 'http://www.gnu.org/software/emacs/'
version '25.1'
source_url 'ftp://ftp.gnu.org/gnu/emacs/emacs-25.1.tar.xz'
source_sha1 '983e457971e3e3c8964d039c113033f98132b8a8'
source_sha256 '19f2798ee3bc26c95dca3303e7ab141e7ad65d6ea2b6945eeba4dbea7df48f33'
depends_on "zlibpkg" => :build
depends_on "diffutils" => :build
......
......@@ -3,9 +3,11 @@ require 'package'
class Erlang < Package
description 'Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability.'
homepage 'http://www.erlang.org/'
version '19.2'
source_url 'http://www.erlang.org/download/otp_src_19.2.tar.gz'
source_sha1 'f5188ba6f496b9d1c37597705d095b4e6aa7bcd3'
version '20.0'
source_url 'http://erlang.org/download/otp_src_20.0.tar.gz'
source_sha256 'fe80e1e14a2772901be717694bb30ac4e9a07eee0cc7a28988724cbd21476811'
depends_on 'flex' => :build
def self.build
system 'export ERL_OTP=`pwd`'
......
......@@ -3,21 +3,17 @@ require 'package'
class Expat < Package
description 'James Clark\'s Expat XML parser library in C.'
homepage 'https://sourceforge.net/projects/expat/'
version '2.2.0'
source_url 'https://sourceforge.net/projects/expat/files/expat/2.2.0/expat-2.2.0.tar.bz2/download'
source_sha1 '8453bc52324be4c796fd38742ec48470eef358b3'
version '2.2.2'
source_url 'https://downloads.sourceforge.net/project/expat/expat/2.2.2/expat-2.2.2.tar.bz2'
source_sha256 '4376911fcf81a23ebd821bbabc26fd933f3ac74833f74924342c29aad2c86046'
def self.build
system "./configure", "--enable-shared", "--disable-static", "--with-pic"
system "./configure", "--libdir=#{CREW_LIB_PREFIX}", "--enable-shared", "--disable-static", "--with-pic"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
# strip binary and library
system "strip #{CREW_DEST_DIR}/usr/local/bin/xmlwf"
system "strip -S #{CREW_DEST_DIR}/usr/local/lib/libexpat.so.*"
end
def self.check
......
......@@ -5,15 +5,13 @@ class Expect < Package
homepage 'http://expect.sourceforge.net/'
version '5.45-1'
source_url 'http://prdownloads.sourceforge.net/expect/expect5.45.tar.gz'
source_sha1 'e634992cab35b7c6931e1f21fbb8f74d464bd496'
source_sha256 'b28dca90428a3b30e650525cdc16255d76bb6ccd65d448be53e620d95d5cc040'
depends_on "tcl"
def self.build
system "./configure", "--prefix=/usr/local"
system "make"
system "find . -name '*.so' -print | xargs strip -S"
system "strip expect"
end
def self.install
......
......@@ -5,7 +5,7 @@ class Fasd < Package
homepage 'https://github.com/clvv/fasd'
version '1.0.1'
source_url 'https://github.com/clvv/fasd/archive/1.0.1.tar.gz'
source_sha1 'aeb3f9c6f8f9e4355016e3255429bcad5c7a5689'
source_sha256 '88efdfbbed8df408699a14fa6c567450bf86480f5ff3dde42d0b3e1dee731f65'
def self.install
system "sed -i 's,share/man,man,' Makefile"
......
require 'package'
class Fetch < Package
description 'fetch makes it easy to download files, folders, or release assets from a specific commit, branch, or tag of a public or private GitHub repo.'
homepage 'https://github.com/gruntwork-io/fetch'
version '0.1.1'
source_url 'https://github.com/gruntwork-io/fetch/archive/v0.1.1.tar.gz'
source_sha256 'ff3072da89c36a5031a3585ec6898113005185e76f626cf4ca8cffee4b62446d'
depends_on 'go'
def self.build
system "go get github.com/urfave/cli"
system "go get github.com/hashicorp/go-version"
system "sed -i 's,codegangsta,urfave,g' main.go"
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "go build -ldflags \"-X main.VERSION=v0.1.1\" -o #{CREW_DEST_DIR}/usr/local/bin/fetch"
end
end
......@@ -5,7 +5,7 @@ class Ffcall < Package
homepage 'http://www.haible.de/bruno/packages-ffcall-README.html'
version '1.10-1'
source_url 'http://www.haible.de/bruno/gnu/ffcall-1.10.tar.gz'
source_sha1 '6b4fdc7bd38b434bbf3d65508a3d117fc8b349f3'
source_sha256 '6f1b5b8fc84b2c0051637fb1e4e4f8b975f5f98bff8fe053c1992347baa4983d'
def self.build
system "./configure --prefix=/usr/local CFLAGS=\" -fPIC\""
......
......@@ -5,7 +5,7 @@ class Ffmpeg < Package
homepage 'https://ffmpeg.org/'
version '3.3.1'
source_url 'https://ffmpeg.org/releases/ffmpeg-3.3.1.tar.xz'
source_sha1 'ace4539bbb1ef9abb59842137b2a206ca5659f36'
source_sha256 'b702a7fc656ac23e276b8c823a2f646e4e6f6309bb2788435a708e69bea98f2f'
depends_on 'gnutls'
depends_on 'libass'
......
......@@ -5,13 +5,13 @@ class Figlet < Package
homepage 'http://www.figlet.org/'
version '2.2.5'
source_url 'ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-2.2.5.tar.gz'
source_sha1 'dda696958c161bd71d6590152c94c4f705415727'
source_sha256 'bf88c40fd0f077dab2712f54f8d39ac952e4e9f2e1882f1195be9e5e4257417d'
def self.build
system "make", "PREFIX=/usr/local"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,16 +5,15 @@ class Filecmd < Package
homepage 'ftp://ftp.astron.com/pub/file'
version '5.31'
source_url 'ftp://ftp.astron.com/pub/file/file-5.31.tar.gz'
source_sha1 'd66f71fb29ec0e9cecbefe9d7433d7a315f3302c'
source_sha256 '09c588dac9cff4baa054f51a36141793bcf64926edc909594111ceae60fce4ee'
def self.build
system "./configure"
system "./configure --libdir=#{CREW_LIB_PREFIX}"
system "make"
system "find . -name 'lib*.so.*' -print | xargs strip -S"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
......@@ -5,7 +5,7 @@ class Finch < Package
homepage 'http://pidgin.im/'
version '2.12.0'
source_url 'https://downloads.sourceforge.net/project/pidgin/Pidgin/2.12.0/pidgin-2.12.0.tar.bz2'
source_sha1 '38f48c48978425b86fc9f4e8ba08216ff379451b'
source_sha256 '8c3d3536d6d3c971bd433ff9946678af70a0f6aa4e6969cc2a83bb357015b7f8'
depends_on 'glib'
depends_on 'ncursesw'
......
......@@ -3,9 +3,9 @@ require 'package'
class Fish < Package
description 'fish is a smart and user-friendly command line shell for macOS, Linux, and the rest of the family.'
homepage 'http://fishshell.com/'
version '2.5.0'
source_url 'https://github.com/fish-shell/fish-shell/releases/download/2.5.0/fish-2.5.0.tar.gz'
source_sha1 'ec52debe0a829b9df29f658697523af7c18ee778'
version '2.6.0'
source_url 'https://github.com/fish-shell/fish-shell/releases/download/2.6.0/fish-2.6.0.tar.gz'
source_sha256 '7ee5bbd671c73e5323778982109241685d58a836e52013e18ee5d9f2e638fdfb'
depends_on 'ncurses'
......
require 'package'
class Fixesproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '5.0'
source_url 'https://www.x.org/archive/individual/proto/fixesproto-5.0.tar.gz'
source_sha256 '67865a0e3cdc7dec1fd676f0927f7011ad4036c18eb320a2b41dbd56282f33b8'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,19 +5,18 @@ class Flex < Package
homepage 'https://www.gnu.org/software/flex/'
version '2.6.4'
source_url 'https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz'
source_sha1 'fafece095a0d9890ebd618adb1f242d8908076e1'
source_sha256 'e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995'
depends_on 'm4'
depends_on 'bison' => :build
def self.build
system "./configure", "--with-pic", "--disable-static", "--enable-shared"
system "./configure", "--libdir=#{CREW_LIB_PREFIX}", "--with-pic", "--disable-static", "--enable-shared"
system "make"
system "find . -name 'lib*.so.*' -print | xargs strip -S"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
require 'package'
class Fly < Package
description 'fly is a C program that creates PNG, JPEG or GIF images on the fly from CGI and other programs.'
homepage 'http://martin.gleeson.com/fly/index.html'
version '1.6.5'
source_url 'http://www.w3perl.com/fly/dist/fly-1.6.5.tar.gz'
source_sha256 '8411915a9acd9a3d86896db5a53ac6bd4e35b44106c0f180cc0f96a6f02a62c9'
depends_on 'libgd'
def self.build
system 'make'
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp fly #{CREW_DEST_DIR}/usr/local/bin"
end
end
require 'package'
class Fontcacheproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '0.13'
source_url 'https://www.x.org/archive/individual/proto/fontcacheproto-0.1.3.tar.gz'
source_sha256 '759b4863b55a25bfc8f977d8ed969da0b99b3c823f33c674d6da5825f9df9a79'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,16 +3,18 @@ require 'package'
class Fontconfig < Package
description 'Fontconfig is a library for configuring and customizing font access.'
homepage 'https://www.freedesktop.org/software/fontconfig/front.html'
version '2.11.94-1'
source_url 'http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.11.94.tar.gz'
source_sha1 '3748d8a2b9cf8052dbd003f524d829157f1ead83'
version '2.12.4'
source_url 'https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.12.4.tar.bz2'
source_sha256 '668293fcc4b3c59765cdee5cee05941091c0879edcc24dfec5455ef83912e45c'
depends_on 'expat'
depends_on 'gperf'
depends_on 'pkgconfig'
depends_on 'freetype'
def self.build
system "./configure CFLAGS=\" -fPIC\""
system "make"
system './configure CFLAGS=" -fPIC" --localstatedir=/usr/local/cache'
system 'make'
end
def self.install
......
require 'package'
class Fontsproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '2.1.3'
source_url 'https://www.x.org/archive/individual/proto/fontsproto-2.1.3.tar.gz'
source_sha256 '72c44e63044b2b66f6fa112921621ecc20c71193982de4f198d9a29cda385c5e'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Foremost < Package
homepage 'http://foremost.sourceforge.net/'
version '1.5.7'
source_url 'http://foremost.sourceforge.net/pkg/foremost-1.5.7.tar.gz'
source_sha1 'c26d68990d7bd5245d5f7dc83c9217642a7a2056'
source_sha256 '502054ef212e3d90b292e99c7f7ac91f89f024720cd5a7e7680c3d1901ef5f34'
def self.build
system "make"
......
......@@ -3,9 +3,11 @@ require 'package'
class Freetype < Package
description 'FreeType is a freely available software library to render fonts.'
homepage 'https://www.freetype.org/'
version '2.7.1'
source_url 'http://download.savannah.gnu.org/releases/freetype/freetype-2.7.1.tar.gz'
source_sha1 '60fb8097901a887b8e8f6e7f777ef0516ae68022'
version '2.8'
source_url 'http://download.savannah.gnu.org/releases/freetype/freetype-2.8.tar.bz2'
source_sha256 'a3c603ed84c3c2495f9c9331fe6bba3bb0ee65e06ec331e0a0fb52158291b40b'
depends_on 'expat'
def self.build
system "./configure CFLAGS=\" -fPIC\""
......
......@@ -5,7 +5,7 @@ class Fribidi < Package
homepage 'https://www.fribidi.org/'
version '0.19.7'
source_url 'https://www.fribidi.org/download/fribidi-0.19.7.tar.bz2'
source_sha1 'e470e078eafe6c065708def3e037c129c0d7367d'
source_sha256 '08222a6212bbc2276a2d55c3bf370109ae4a35b689acbc66571ad2a670595a8e'
def self.build
system "./configure"
......
require 'package'
class Fslint < Package
description 'FSlint is a utility to find and clean various forms of lint on a filesystem.'
homepage 'http://www.pixelbeat.org/fslint/'
version '2.46'
source_url 'http://www.pixelbeat.org/fslint/fslint-2.46.tar.xz'
source_sha256 'f15daebfecfd2eea0d3b48a0193e25974b71dcf1e4b4a33d5a3dcfb7bb9c90cc'
depends_on 'help2man'
def self.build
system 'rm -f man/*'
system 'chmod +x fslint/supprt/fslver'
system 'help2man -N fslint/findup > man/findup.1'
system 'help2man -N fslint/findnl > man/findnl.1'
system 'help2man -N fslint/findu8 > man/findu8.1'
system 'help2man -N fslint/findbl > man/findbl.1'
system 'help2man -N fslint/findsn > man/findsn.1'
system 'help2man -N fslint/finded > man/finded.1'
system 'help2man -N fslint/findid > man/findid.1'
system 'help2man -N fslint/findns > man/findns.1'
system 'help2man -N fslint/findrs > man/findrs.1'
system 'help2man -N fslint/findtf > man/findtf.1'
system 'help2man -N fslint/findul > man/findul.1'
system 'help2man -N fslint/fslint > man/fslint.1'
system 'help2man -N fslint/zipdir > man/zipdir.1'
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/man/man1"
system "cp -r fslint/* #{CREW_DEST_DIR}/usr/local/bin"
system "cp fslint/fstool/lS #{CREW_DEST_DIR}/usr/local/bin"
system "cp man/* #{CREW_DEST_DIR}/usr/local/man/man1"
end
end
......@@ -3,12 +3,19 @@ require 'package'
class Fuse < Package
description 'The reference implementation of the Linux FUSE (Filesystem in Userspace) interface.'
homepage 'https://github.com/libfuse/libfuse'
version '2.9.7'
source_url 'https://github.com/libfuse/libfuse/releases/download/fuse-2.9.7/fuse-2.9.7.tar.gz'
source_sha1 'cd174e3d37995a42fad32fac92f76cd18e24174f'
# The version of libfuse need to be matched with ChromeOS /usr/lib/libfuse.so since we must use
# /sbin/mount.fuse which is not possible to be overwritten. If we use different version of
# libfuse, it may cause errors. Chrome OS 59 and 60 use libfuse 2.8.6.
version '2.8.6'
source_url 'https://github.com/libfuse/libfuse/releases/download/fuse_2_9_4/fuse-2.8.6.tar.gz'
source_sha256 '1ec1913e38f09b2a9ec1579e1800805b5e2c747d1dce515e316dbb665ca139d6'
def self.build
system "./configure"
# Disable util since we must use pre-installed /sbin/mount.fuse
system "./configure", "--libdir=#{CREW_LIB_PREFIX}", "--enable-shared", "--disable-static", "--with-pic", "--disable-util"
# A workaround to "'CLONE_NEWNS' undeclared" error. See below for details.
# https://github.com/libfuse/libfuse/commit/ae43094c13ecf49e0b738bbda633cf193c7b3670
system "sed -i util/fusermount.c -e '1i#define _GNU_SOURCE'"
system "make"
end
......
......@@ -5,7 +5,7 @@ class Gawk < Package
homepage 'https://www.gnu.org/software/gawk/'
version '4.1.4-1'
source_url 'http://ftp.gnu.org/gnu/gawk/gawk-4.1.4.tar.xz'
source_sha1 'd67e00e2f6178e9cbd2c0ba923ae157bc0b3b570'
source_sha256 '53e184e2d0f90def9207860531802456322be091c7b48f23fdc79cda65adc266'
depends_on 'libsigsegv'
depends_on 'readline' => :build
......@@ -14,13 +14,12 @@ class Gawk < Package
depends_on 'gmp'
def self.build
system './configure', '--prefix=/usr/local'
system './configure', "--prefix=#{CREW_PREFIX}", "--libdir=#{CREW_LIB_PREFIX}"
system 'make'
system "find . -name '*.so' -print | xargs strip -S"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
......@@ -3,16 +3,20 @@ require 'package'
class Gc < Package
description 'A garbage collector for C and C++.'
homepage 'http://www.hboehm.info/gc/'
version '7.2g'
source_url 'http://www.hboehm.info/gc/gc_source/gc-7.2g.tar.gz'
source_sha1 'd470f6c0dcb55f8a4f26199731edf006eba5b85c'
version '7.6.0'
source_url 'http://www.hboehm.info/gc/gc_source/gc-7.6.0.tar.gz'
source_sha256 'a14a28b1129be90e55cd6f71127ffc5594e1091d5d54131528c24cd0c03b7d90'
depends_on 'libatomic_ops'
depends_on 'libtool'
def self.build
system "./configure --prefix=/usr/local"
system "make"
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "libtool --finish /usr/local/lib"
end
end
......@@ -3,19 +3,19 @@ require 'package'
class Gcc < Package
description 'The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, and Go.'
homepage 'https://www.gnu.org/software/gcc/'
version '4.9.x-cc1.3'
version '4.9.4-1'
binary_url ({
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/gcc-4.9.x-cc1.3-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/gcc-4.9.x-cc1.3-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/gcc-4.9.x-cc1.3-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/gcc-4.9.x-cc1.3-chromeos-x86_64.tar.xz',
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/gcc-4.9.4-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/gcc-4.9.4-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/gcc-4.9.4-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/gcc-4.9.4-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
aarch64: 'b71b4f64ff0ab9d32ed15714889046a329b1019c',
armv7l: 'b71b4f64ff0ab9d32ed15714889046a329b1019c',
i686: 'a8f9d270d89ba8d9afb4478bf2df1f73ba2878a7',
x86_64: 'a7da1611b35280117acb0fa86d7d91e0ff6a5e01',
binary_sha256 ({
aarch64: 'ecb047a9f52ea6b24313d4329b00236b6880e12df684e52e34e9664127d447c6',
armv7l: 'ecb047a9f52ea6b24313d4329b00236b6880e12df684e52e34e9664127d447c6',
i686: '9a8b20b58a564c9557c74b2b2769ddc68c110211588356b71c533aac6d54431b',
x86_64: '1ae1f58ca4b9fee3b0f68856e5d49b2feeb90e259e8d885f339c9aa8091f27c8',
})
depends_on 'binutils'
......
......@@ -3,9 +3,9 @@ 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.2-1'
source_url 'http://download.osgeo.org/gdal/1.11.2/gdal-1.11.2.tar.gz'
source_sha1 '6f3ccbe5643805784812072a33c25be0bbff00db'
version '1.11.5'
source_url 'http://download.osgeo.org/gdal/1.11.5/gdal-1.11.5.tar.xz'
source_sha256 'd4fdc3e987b9926545f0a514b4328cd733f2208442f8d03bde630fe1f7eff042'
depends_on 'python27'
depends_on 'curl'
......
......@@ -3,9 +3,9 @@ require 'package'
class Gdb < Package
description 'GDB, the GNU Project debugger, allows you to see what is going on \'inside\' another program while it executes -- or what another program was doing at the moment it crashed.'
homepage 'https://www.gnu.org/software/gdb/'
version '8.0'
version '8.0'
source_url 'http://ftp.gnu.org/gnu/gdb/gdb-8.0.tar.xz'
source_sha1 '148c8e783ebf9b281241d0566db59961191ec64d'
source_sha256 'f6a24ffe4917e67014ef9273eb8b547cb96a13e5ca74895b06d683b391f3f4ee'
depends_on "buildessential"
depends_on "ncurses"
......
require 'package'
class Gdbm < Package
description 'GNU dbm is a set of database routines that use extensible hashing.'
homepage 'https://www.gnu.org/software/gdbm/'
version '1.13'
source_url 'ftp://ftp.gnu.org/gnu/gdbm/gdbm-1.13.tar.gz'
source_sha1 '7f2a8301497bbcac91808b011ca533380914fd21'
source_sha256 '9d252cbd7d793f7b12bcceaddda98d257c14f4d1890d851c386c37207000a253'
depends_on 'readline'
def self.build
system './configure', '--disable-static', '--enable-shared', '--with-pic'
system './configure', "--libdir=#{CREW_LIB_PREFIX}", '--disable-static', '--enable-shared', '--with-pic'
system 'make'
system "find . -name 'lib*.so.*' -print | xargs strip -S"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
require 'package'
class Gdrive < Package
description 'Google Drive CLI Client'
homepage 'https://www.google.com/drive/'
version '2.1.0'
source_url 'https://github.com/prasmussen/gdrive/archive/2.1.0.tar.gz'
source_sha256 'a1ea624e913e258596ea6340c8818a90c21962b0a75cf005e49a0f72f2077b2e'
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
case ARCH
when 'aarch64'
system "wget -L -O #{CREW_DEST_DIR}/usr/local/bin/gdrive https://docs.google.com/uc?id=0B3X9GlR6EmbnRjBaMVVLalN4cTA&export=download"
system "sleep 10"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{CREW_DEST_DIR}/usr/local/bin/gdrive") ) == '25eb74f892785bfd7c93ec22e63dfce04fd68298d8449ea1473bdbf90e3aaf35'
when 'armv7l'
system "wget -L -O #{CREW_DEST_DIR}/usr/local/bin/gdrive https://docs.google.com/uc?id=0B3X9GlR6EmbnRjBaMVVLalN4cTA&export=download"
system "sleep 10"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{CREW_DEST_DIR}/usr/local/bin/gdrive") ) == '25eb74f892785bfd7c93ec22e63dfce04fd68298d8449ea1473bdbf90e3aaf35'
when 'i686'
system "wget -L -O #{CREW_DEST_DIR}/usr/local/bin/gdrive https://docs.google.com/uc?id=0B3X9GlR6EmbnLV92dHBpTkFhTEU&export=download"
system "sleep 10"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{CREW_DEST_DIR}/usr/local/bin/gdrive") ) == '768103053ebe56d5b6e17396ac208db85a3b1968d19e9cac9172fe56b6b8cad2'
when 'x86_64'
system "wget -L -O #{CREW_DEST_DIR}/usr/local/bin/gdrive https://docs.google.com/uc?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA&export=download"
system "sleep 10"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{CREW_DEST_DIR}/usr/local/bin/gdrive") ) == 'f31b441c5cdb835ee69849a62856e35c17954fd5b600f6de8a6f5d7bd7bf0420'
end
system "chmod +x #{CREW_DEST_DIR}/usr/local/bin/gdrive"
end
end
......@@ -3,13 +3,13 @@ require 'package'
class Geoip < Package
description 'GeoIP Legacy C API.'
homepage 'https://github.com/maxmind/geoip-api-c/'
version '1.6.9'
source_url 'https://github.com/maxmind/geoip-api-c/releases/download/v1.6.9/GeoIP-1.6.9.tar.gz'
source_sha1 'ac0deb2309c14d5763e82fa4139de1f3193ab6b1'
version '1.6.11'
source_url 'https://github.com/maxmind/geoip-api-c/releases/download/v1.6.11/GeoIP-1.6.11.tar.gz'
source_sha256 'b0e5a92200b5ab540d118983f7b7191caf4faf1ae879c44afa3ff2a2abcdb0f5'
def self.build
system "./configure"
system "make"
system './configure'
system 'make'
end
def self.install
......
......@@ -3,13 +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.4.2-1'
source_url 'http://download.osgeo.org/geos/geos-3.4.2.tar.bz2'
source_sha1 'b8aceab04dd09f4113864f2d12015231bb318e9a'
version '3.6.1'
source_url 'http://download.osgeo.org/geos/geos-3.6.1.tar.bz2'
source_sha256 '4a2e4e3a7a09a7cfda3211d0f4a235d9fd3176ddf64bd8db14b4ead266189fc5'
def self.build
system "./configure CFLAGS=\" -fPIC\""
system "make"
system './configure CFLAGS=" -fPIC"'
system 'make'
end
def self.install
......
require 'package'
class Get_iplayer < Package
description 'A utility for downloading TV and radio programmes from BBC iPlayer'
homepage 'https://github.com/get-iplayer/get_iplayer'
version '3.01'
source_url 'https://github.com/get-iplayer/get_iplayer/archive/v3.01.tar.gz'
source_sha256 '0e1e16f3706efa98893e33b1602cc00bb3d8e22e269bfc5a1a078559e4c21ce6'
depends_on 'perl'
depends_on 'ffmpeg'
depends_on 'atomicparsley'
depends_on 'libxml2'
depends_on 'zlibpkg'
def self.build
system "wget http://search.cpan.org/CPAN/authors/id/W/WI/WIMV/Math-LP-0.03.tar.gz"
system "tar xf Math-LP-0.03.tar.gz"
Dir.chdir "Math-LP-0.03" do
system "perl Makefile.PL"
system "make"
system "make install"
system "make DESTIDR=#{CREW_DEST_DIR} install"
end
system "cpanm JSON::PP --force"
system "cpanm LWP --force"
system "cpanm LWP::Protocol::https --force"
system "cpanm Mojolicious --force"
system "cpanm XML::Simple --force"
system "wget http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0129.tar.gz"
system "tar xf XML-LibXML-2.0129.tar.gz"
Dir.chdir "XML-LibXML-2.0129" do
system "perl Makefile.PL"
system "make"
system "make install"
system "make DESTIDR=#{CREW_DEST_DIR} install"
end
system "cpanm CGI --force"
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp get_iplayer #{CREW_DEST_DIR}/usr/local/bin/"
end
end
......@@ -5,20 +5,19 @@ class Gettext < Package
homepage 'https://www.gnu.org/software/gettext/'
version '0.19.8.1'
source_url 'ftp://ftp.gnu.org/gnu/gettext/gettext-0.19.8.1.tar.xz'
source_sha1 'e0fe90ede22f7f16bbde7bdea791a835f2773fc9'
source_sha256 '105556dbc5c3fbbc2aa0edb46d22d055748b6f5c7cd7a8d99f8e7eb84e938be4'
depends_on 'diffutils' => :build
depends_on 'ncurses'
depends_on 'libxml2'
def self.build
system "./configure", "--enable-shared", "--disable-static", "--with-pic"
system "./configure", "--libdir=#{CREW_LIB_PREFIX}", "--enable-shared", "--disable-static", "--with-pic"
system "make"
system "find . -name '*.so.*' -print | xargs strip -S"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
require 'package'
class Ghostscript < Package
description 'Ghostscript is the name of a set of software that provides an interpreter for the PostScript language and the PDF file format.'
homepage 'https://www.gnu.org/software/ghostscript/'
version '9.14.1'
source_url 'ftp://ftp.gnu.org/gnu/ghostscript/gnu-ghostscript-9.14.1.tar.xz'
source_sha256 '424a4ff333a594fdd397cd8adc4249bad7d74a6ae653f840dee72b27f1bf1da0'
depends_on 'lcms'
depends_on 'libjpeg'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Gifgen < Package
description 'Simple high quality GIF encoding'
homepage 'https://github.com/lukechilds/gifgen'
version '1.1.2'
source_url 'https://github.com/lukechilds/gifgen/archive/1.1.2.tar.gz'
source_sha256 '95f69c63158315ad869ff36611026cce1a7d03f8c84716b1c21a44e71e8d6aee'
depends_on 'ffmpeg'
depends_on 'help2man'
def self.install
system "help2man -N ./gifgen > gifgen.1"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/man/man1"
system "cp gifgen #{CREW_DEST_DIR}/usr/local/bin"
system "cp gifgen.1 #{CREW_DEST_DIR}/usr/local/man/man1"
end
end
require 'package'
class Gifsicle < Package
description 'Gifsicle is a command-line tool for creating, editing, and getting information about GIF images and animations.'
homepage 'http://www.lcdf.org/gifsicle/'
version '1.89'
source_url 'https://github.com/kohler/gifsicle/archive/v1.89.tar.gz'
source_sha256 '9b19ff8d50d88af5a5151eaf9e62beb1dd5b72002e7b7cc3aec9b385780e6b83'
def self.build
system './bootstrap.sh'
system './configure --without-x --disable-gifview'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,9 +3,9 @@ require 'package'
class Git < Package
description 'Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.'
homepage 'https://git-scm.com/'
version '2.13.0'
source_url 'https://github.com/git/git/archive/v2.13.0.tar.gz'
source_sha1 'd0078048574b824bc0d202deb3830717a955eb3e'
version '2.14.1'
source_url 'https://github.com/git/git/archive/v2.14.1.tar.gz'
source_sha256 'ccc366d5d674fb755fd98d219c23f2b4e5da8a49d8582a6314813b280d75536b'
# use system zlibpkg, openssl, curl, expat
depends_on 'zlibpkg' => :build
......@@ -22,11 +22,23 @@ class Git < Package
def self.build
system "#{@make_cmd} all"
system "#{@make_cmd} strip"
end
def self.install
system "#{@make_cmd} DESTDIR=#{CREW_DEST_DIR} install"
system "mkdir -p #{CREW_DEST_PREFIX}/share/git-completion"
system "cp -r contrib/completion/* #{CREW_DEST_PREFIX}/share/git-completion"
puts
puts "Git completion support is available for the following shells:"
system "ls contrib/completion"
puts
puts "To add git completion for bash, execute the following:".lightblue
puts "echo '# git completion' >> ~/.bashrc".lightblue
puts "echo 'if [ -f #{CREW_PREFIX}/share/git-completion/git-completion.bash ]; then' >> ~/.bashrc".lightblue
puts "echo ' source #{CREW_PREFIX}/share/git-completion/git-completion.bash' >> ~/.bashrc".lightblue
puts "echo 'fi' >> ~/.bashrc".lightblue
puts "source ~/.bashrc".lightblue
puts
end
def self.check
......
require 'package'
class Git_lfs < Package
description 'Git extension for versioning large files'
homepage 'https://git-lfs.github.com/'
version '2.2.1'
source_url 'https://github.com/git-lfs/git-lfs/archive/v2.2.1.tar.gz'
source_sha256 'fede2b31b0539fd4a580f831867caac1b5d5dc4405e938c4ee0bfeacfb78ad7a'
depends_on 'go'
def self.build
ENV['TMPDIR'] = "#{CREW_PREFIX}/tmp"
system 'script/bootstrap'
end
def self.install
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
system "cp -r bin/ #{CREW_DEST_PREFIX}"
end
end
require 'package'
class Github_release < Package
description 'Commandline app to create and edit releases on Github (and upload artifacts)'
homepage 'https://github.com/aktau/github-release'
version '0.7.2'
source_url 'https://github.com/aktau/github-release/archive/v0.7.2.tar.gz'
source_sha256 '057d57b01cd45d0316e2d32b7593ff0f4bb493d4767b5701b21b54301d74ff48'
depends_on 'go'
def self.build
system 'make'
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp github-release #{CREW_DEST_DIR}/usr/local/bin"
end
end
......@@ -5,10 +5,12 @@ class Glib < Package
homepage 'https://developer.gnome.org/glib/'
version '2.40.2'
source_url 'https://ftp.gnome.org/pub/gnome/sources/glib/2.40/glib-2.40.2.tar.xz'
source_sha1 'dcb8ad22b1c0e6969a844029ffb91a6def7ad240'
source_sha256 'e8ff8af2950897e805408480c454c415d1eade4e670ec5fb507f5e5853726c7a'
depends_on 'libffi'
depends_on 'gettext'
depends_on 'zlibpkg'
depends_on 'python27'
def self.build
system "./configure"
......
......@@ -3,17 +3,17 @@ require 'package'
class Glibc219 < Package
description 'GNU C Library'
homepage 'https://www.gnu.org/software/libc/'
version '2.19'
version '2.19-2'
binary_url ({
aarch64: 'https://github.com/jam7/chromebrew/releases/download/newtoolchains/glibc-2.19-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chromebrew/releases/download/newtoolchains/glibc-2.19-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chromebrew/releases/download/newtoolchains/glibc-2.19-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chromebrew/releases/download/newtoolchains/glibc-2.19-chromeos-x86_64.tar.xz',
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/glibc-2.19-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/glibc-2.19-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/glibc-2.19-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/glibc-2.19-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
aarch64: 'c4da258eacf411833494bbe6903918909fb5629c',
armv7l: 'c4da258eacf411833494bbe6903918909fb5629c',
i686: '7d7f4e8e137bbb96dea2b2792dc12a7e61c729d9',
x86_64: '073545bf8aa4b29fbf9084d31848b40f1df1b4ef',
binary_sha256 ({
aarch64: 'df5fb603d658438489bc1d54de317bf8901e2cd3d80a4f3c3379e93cf8539c3c',
armv7l: 'df5fb603d658438489bc1d54de317bf8901e2cd3d80a4f3c3379e93cf8539c3c',
i686: 'a7e09144668734a08c660093b4f9ef7b6660c89c027d16eb9db1426f61660d85',
x86_64: 'bd8a5e69ca2994884bb7cf006887754331faa90e59e6165a693c4392968ccca3',
})
end
......@@ -3,17 +3,17 @@ require 'package'
class Glibc223 < Package
description 'GNU C Library'
homepage 'https://www.gnu.org/software/libc/'
version '2.23-cc1.3'
version '2.23-2'
binary_url ({
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/glibc-2.23-cc1.3-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/glibc-2.23-cc1.3-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/glibc-2.23-cc1.3-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/glibc-2.23-cc1.3-chromeos-x86_64.tar.xz',
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/glibc-2.23-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/glibc-2.23-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/glibc-2.23-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/glibc-2.23-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
aarch64: '09cac401b8d6821c4ea2f349f0a348fcef9e07b2',
armv7l: '09cac401b8d6821c4ea2f349f0a348fcef9e07b2',
i686: '66096f5bf50ab19f17f8d9356589ea6dc809f8d9',
x86_64: '1807e449919fff8d3473d97d43d184961a65a323',
binary_sha256 ({
aarch64: '34755443a25fbe74da7fd4c0d67f758aaf7078db76c45dfa36fdab86a3842266',
armv7l: '34755443a25fbe74da7fd4c0d67f758aaf7078db76c45dfa36fdab86a3842266',
i686: '14ce3a27fb989a7d26713ebe1c374b9c5f603f6570d99b015dc603223d055f63',
x86_64: '151470a91581b26c6b1eaf18aa085c2665aa16eccafb1435040983e1dd8acba0',
})
end
require 'package'
class Glide < Package
description 'Package Management for Golang'
homepage 'https://glide.sh/'
version '0.12.3'
case ARCH
when 'aarch64', 'armv7l'
source_url 'https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-armv7.tar.gz'
source_sha256 'cce4242c11d084f99087caaa0a42c8476a81db0cbcc83932f5821e1f29b7edb2'
when 'i686'
source_url 'https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-386.tar.gz'
source_sha256 '1f6fbcd84213c7c11a778ecd36d326d012f1a0555e6c0d6bf572dac7b80e8622'
when 'x86_64'
source_url 'https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-amd64.tar.gz'
source_sha256 '0e2be5e863464610ebc420443ccfab15cdfdf1c4ab63b5eb25d1216900a75109'
end
depends_on 'go'
def self.install
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
system "cp glide #{CREW_DEST_PREFIX}/bin"
end
end
require 'package'
class Glproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.4.17'
source_url 'https://www.x.org/archive/individual/proto/glproto-1.4.17.tar.gz'
source_sha256 '9d8130fec2b98bd032db7730fa092dd9dec39f3de34f4bb03ceb43b9903dbc96'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,17 +3,17 @@ require 'package'
class Gmp < Package
description 'GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers.'
homepage 'https://gmplib.org/'
version "6.1.2-cc1.3"
version '6.1.2-2'
binary_url ({
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/gmp-6.1.2-cc1.3-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/gmp-6.1.2-cc1.3-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/gmp-6.1.2-cc1.3-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/gmp-6.1.2-cc1.3-chromeos-x86_64.tar.xz',
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/gmp-6.1.2-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/gmp-6.1.2-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/gmp-6.1.2-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/gmp-6.1.2-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
aarch64: '16c62caf6da5971ddb4e4985d5905ce43a40f2f8',
armv7l: '16c62caf6da5971ddb4e4985d5905ce43a40f2f8',
i686: 'eadba1eb5fcc25bdafd1f868045984d726a26d08',
x86_64: '706ca2c87011f5ee12324f03ae286fb95a532cec',
binary_sha256 ({
aarch64: '3ec9dd786c7fd0eaf5d2f539ca47d5b050a221e341c3ba23fbbbeedcab437a03',
armv7l: '3ec9dd786c7fd0eaf5d2f539ca47d5b050a221e341c3ba23fbbbeedcab437a03',
i686: '3b670ac470d2b1d7724f903fde93766ae8c4780b1b61cd4de0a50ec3780529d4',
x86_64: 'b7cbf53d56f7bb0a3ed36adcafbc340409d2da375560ceaf17102ea4413cebb4',
})
end
......@@ -3,9 +3,9 @@ require 'package'
class Gnupg < Package
description 'GnuPG is a complete and free implementation of the OpenPGP standard as defined by RFC4880 (also known as PGP).'
homepage 'https://gnupg.org/'
version '2.1.21'
source_url 'https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.1.21.tar.bz2'
source_sha1 '1852c066bc21893bc52026ead78edf50fdf15e13'
version '2.1.22'
source_url 'https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.1.22.tar.bz2'
source_sha256 '46716faf9e1b92cfca86609f3bfffbf5bb4b6804df90dc853ff7061cfcfb4ad7'
depends_on 'bz2'
depends_on 'automake'
......@@ -14,6 +14,7 @@ class Gnupg < Package
depends_on 'libassuan'
depends_on 'libksba'
depends_on 'npth'
depends_on 'gettext'
def self.build
system "./autogen.sh"
......
......@@ -3,9 +3,9 @@ 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.12'
source_url 'https://www.gnupg.org/ftp/gcrypt/gnutls/v3.5/gnutls-3.5.12.tar.xz'
source_sha1 '9f453686bc6b1e6ebc04197158a2bc123c0272df'
version '3.5.14'
source_url 'https://www.gnupg.org/ftp/gcrypt/gnutls/v3.5/gnutls-3.5.14.tar.xz'
source_sha256 '4aa12dec92f42a0434df794aca3d02f6f2a35b47b48c01252de65f355c051bda'
depends_on 'buildessential' => :build
depends_on 'zlibpkg' => :build
......
......@@ -3,15 +3,15 @@ require 'package'
class Go < Package
description 'Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.'
homepage 'https://golang.org/'
version '1.8.3'
version '1.8.3-1'
source_url 'https://storage.googleapis.com/golang/go1.8.3.src.tar.gz'
source_sha1 '7c3b942c58a44396ff1d205d0e6e72770792d626'
source_sha256 '5f5dea2447e7dcfdc50fa6b94c512e58bfba5673c039259fd843f68829d99fa6'
# Tests requires perl
depends_on 'perl'
depends_on 'perl' => :build
# go is required to build versions of go > 1.4
unless File.exist? "#{CREW_PREFIX}/lib/go/bin/go"
depends_on 'go_bootstrap'
depends_on 'go_bootstrap' => :build
end
def self.build
......@@ -20,10 +20,13 @@ class Go < Package
unless File.exist? "#{CREW_PREFIX}/lib/go/bin/go"
system "GOROOT_BOOTSTRAP=#{CREW_PREFIX}/lib/go_bootstrap/go \
TMPDIR=#{CREW_PREFIX}/tmp \
GOROOT_FINAL=#{CREW_PREFIX}/lib/go \
./make.bash"
else
system "GOROOT_BOOTSTRAP=#{CREW_PREFIX}/lib/go \
TMPDIR=#{CREW_PREFIX}/tmp ./make.bash"
TMPDIR=#{CREW_PREFIX}/tmp \
GOROOT_FINAL=#{CREW_PREFIX}/lib/go \
./make.bash"
end
end
end
......@@ -33,19 +36,28 @@ class Go < Package
system "mkdir", "-p", dest
FileUtils.cp_r Dir.pwd, dest
# make a symbolic link for /usr/local/bin/{go,gofmt}
system "mkdir", "-p", "#{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
system "ln", "-s", "#{CREW_PREFIX}/lib/go/bin/go", "#{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
system "ln", "-s", "#{CREW_PREFIX}/lib/go/bin/gofmt", "#{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
puts "--------"
puts "Installed Go for #{ARCH} in #{CREW_PREFIX}/lib/go"
puts "Make sure to set go environment variables."
puts "Minimal:"
puts "\texport GOROOT=#{CREW_PREFIX}/lib/go"
puts "\texport PATH=$PATH:$GOROOT/bin"
puts ""
puts "To use `go run`:"
puts "\texport TMPDIR=#{CREW_PREFIX}/tmp"
puts ""
puts "To develop with `go`:"
puts "\tmkdir -p /usr/local/work/go"
puts "\tln -s /usr/local/work/go $HOME/go"
puts "\texport PATH=\"$HOME/go/bin:$PATH\""
puts "\texport TMPDIR=#{CREW_PREFIX}/tmp"
puts ""
end
def self.check
FileUtils.cd('src') do
system "PATH=\"#{Dir.pwd}/../bin:$PATH\" TMPDIR=\"#{CREW_PREFIX}/tmp\" go tool dist test"
system "PATH=\"#{Dir.pwd}/../bin:$PATH\" GOROOT=\"#{Dir.pwd}/..\" TMPDIR=\"#{CREW_PREFIX}/tmp\" go tool dist test"
end
end
end
......@@ -5,7 +5,7 @@ class Go_bootstrap < Package
homepage 'https://golang.org/'
version '1.4'
source_url 'https://storage.googleapis.com/golang/go1.4-bootstrap-20161024.tar.gz'
source_sha1 '47e02e41aa99dea899b65ebf7b50ec706141be8c'
source_sha256 '398c70d9d10541ba9352974cc585c43220b6d8dbcd804ba2c9bd2fbf35fab286'
def self.build
FileUtils.cd('src') do
......@@ -17,8 +17,8 @@ class Go_bootstrap < Package
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
end
......@@ -5,7 +5,7 @@ class Goaccess < Package
homepage 'https://goaccess.io/'
version '1.2'
source_url 'http://tar.goaccess.io/goaccess-1.2.tar.gz'
source_sha1 '4c12796ff5afd14f359b1f638fc51c4007db1e3c'
source_sha256 '6ba9f66540ea58fc2c17f175265f9ed76d74a8432eeac1182b74ebf4f2cd3414'
depends_on 'openssl'
depends_on 'geoip'
......
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'
source_url 'https://github.com/mitchellh/gox/archive/v0.3.0.tar.gz'
source_sha256 '29dc6b689f670a5444cc54cd9111549ccb01501901bc9197d0e1325a35157802'
depends_on 'go'
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "go build -o #{CREW_DEST_DIR}/usr/local/bin/gox"
end
end
require "package"
require 'package'
class Gperf < Package
description 'GNU gperf is a perfect hash function generator.'
homepage 'https://www.gnu.org/software/gperf/'
version "3.1"
source_url "http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz"
source_sha1 "e3c0618c2d2e5586eda9498c867d5e4858a3b0e2"
version '3.1'
source_url 'http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz'
source_sha256 '588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2'
def self.build
system "./configure"
system "make"
system './configure'
system 'make'
end
def self.install
......
......@@ -3,12 +3,12 @@ require 'package'
class Gpgme < Package
description 'GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier for applications.'
homepage 'https://www.gnupg.org/related_software/gpgme/index.html'
version '1.8.0'
source_url 'https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.8.0.tar.bz2'
source_sha1 'efa043064dbf675fd713228c6fcfcc4116feb221'
version '1.9.0'
source_url 'https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.9.0.tar.bz2'
source_sha256 '1b29fedb8bfad775e70eafac5b0590621683b2d9869db994568e6401f4034ceb'
depends_on "libgpgerror"
depends_on "libassuan"
depends_on 'libgpgerror'
depends_on 'libassuan'
def self.build
system "./configure --prefix=/usr/local"
......@@ -16,6 +16,6 @@ class Gpgme < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Grabinfo < Package
description 'Navigates the /proc filesystem and executes commands in order to gather information about the state of your machine.'
homepage 'https://sourceforge.net/projects/grabinfo/'
version '1.71-1'
source_url 'https://downloads.sourceforge.net/project/grabinfo/grabinfo/1.71/grabinfo-1.71.tar.gz'
source_sha256 '3cf1e56aff10ef182065943a10ab815f2e8bf5ab77716dd97c2e91feb8db4278'
depends_on 'perl'
def self.build
system "sed -i 's,/usr/bin,#{CREW_PREFIX}/bin,g' grabinfo"
system "sed -i 's,/var/log,#{CREW_PREFIX}/tmp,g' grabinfo"
system "sed -i 's,/var/log,#{CREW_PREFIX}/tmp,g' grabinfo.1"
system "sed -i 's,/usr/lib,#{CREW_PREFIX}/lib,g' Makefile"
system "sed -i 's,/usr/share,#{CREW_PREFIX}/share,g' Makefile"
system "sed -i 's,/var/log,#{CREW_PREFIX}/tmp,g' Makefile"
system "make"
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
system "mkdir -p #{CREW_DEST_DIR}#{CREW_PREFIX}/man/man1"
system "mkdir -p #{CREW_DEST_DIR}#{CREW_PREFIX}/tmp/grabinfo"
system "cp grabinfo #{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
system "cp GrabInfo.pm #{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
system "cp -r GrabInfo/ #{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
system "cp grabinfo.1 #{CREW_DEST_DIR}#{CREW_PREFIX}/man/man1"
system "touch #{CREW_DEST_DIR}#{CREW_PREFIX}/tmp/grabinfo/grabinfo.lock"
end
end
......@@ -3,15 +3,15 @@ require 'package'
class Graphicsmagick < Package
description 'GraphicsMagick is the swiss army knife of image processing.'
homepage 'http://www.graphicsmagick.org/'
version '1.3.23'
source_url 'http://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.23/GraphicsMagick-1.3.23.tar.gz'
source_sha1 'ad43788153e11e5123ac94b60a2c9acc74036d70'
version '1.3.26'
source_url 'https://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.26/GraphicsMagick-1.3.26.tar.xz'
source_sha256 'fba015f3d5e5d5f17e57db663f1aa9d338e7b62f1d415b85d13ee366927e5f88'
depends_on 'buildessential'
def self.build
system "./configure"
system "make"
system './configure'
system 'make'
end
def self.install
......
require 'package'
class Groff < Package
description 'Groff (GNU troff) is a typesetting system that reads plain text mixed with formatting commands and produces formatted output.'
homepage 'https://www.gnu.org/software/groff/'
version '1.22.3-1'
source_url 'http://ftp.gnu.org/gnu/groff/groff-1.22.3.tar.gz'
source_sha1 '61a6808ea1ef715df9fa8e9b424e1f6b9fa8c091'
source_sha256 '3a48a9d6c97750bfbd535feeb5be0111db6406ddb7bb79fc680809cda6d828a5'
depends_on 'perl'
def self.build
system 'INSTALL_PROGRAM=\'${INSTALL} -s\' ./configure'
# force to compile in sequential since groff Makefile doesn't work in parallel
system 'make', '-j1'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
......
require 'package'
class Gtk_doc < Package
description 'GTK-Doc is a project which was started to generate API documentation from comments added to C code.'
homepage 'https://www.gtk.org/gtk-doc'
version '1.26'
source_url 'https://github.com/GNOME/gtk-doc/archive/GTK_DOC_1_26.tar.gz'
source_sha256 'f0bcb1ff8268136fdbf426d7862f4f092e70b24a73632cfe0a3d31ed0d924b5c'
depends_on 'python3'
depends_on 'python27'
depends_on 'autoconf'
depends_on 'automake'
depends_on 'libxml2'
depends_on 'libxslt'
depends_on 'docbook'
depends_on 'docbook_xml'
depends_on 'docbook_xsl'
def self.build
system 'pip3 install six'
system 'pip install six'
system './autogen.sh --with-xml-catalog=/usr/local/etc/xml/catalog'
system './configure --with-xml-catalog=/usr/local/etc/xml/catalog'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Gtypist < Package
description 'Universal typing tutor.'
homepage 'https://www.gnu.org/software/gtypist/index.html'
version '2.9.5'
source_url 'http://ftp.gnu.org/gnu/gtypist/gtypist-2.9.5.tar.xz'
source_sha256 'c13af40b12479f8219ffa6c66020618c0ce305ad305590fde02d2c20eb9cf977'
depends_on "emacs" => :build
depends_on "ncurses"
depends_on "perl"
def self.build
system "autoreconf"
system "./configure", "--prefix=/usr/local"
system "make"
end
def self.install
system "make", "prefix=#{CREW_DEST_DIR}/usr/local", "install"
system "rm", "-f", "#{CREW_DEST_DIR}/usr/local/share/info/dir"
end
end
......@@ -5,7 +5,7 @@ class Gzsize < Package
homepage 'https://bfontaine.github.io/gzsize/'
version '0.1.1'
source_url 'https://github.com/bfontaine/gzsize/archive/0.1.1.tar.gz'
source_sha1 '778820b0bf3fc2197955b60c6dc49f6fac00878b'
source_sha256 'ffb9cc1e5ed10443b1bcf2f711787bc7f69eee27ed83b48f2ccf9d80e39554dd'
def self.build
system "make"
......
......@@ -3,18 +3,18 @@ require 'package'
class Haproxy < Package
description 'The Reliable, High Performance TCP/HTTP Load Balancer.'
homepage 'http://www.haproxy.org/'
version '1.7.2'
source_url 'http://www.haproxy.org/download/1.7/src/haproxy-1.7.2.tar.gz'
source_sha1 'b022485e28b96b673e3116a69d8922cb7367a81f'
depends_on "openssl"
depends_on "pcre"
version '1.7.8'
source_url 'http://www.haproxy.org/download/1.7/src/haproxy-1.7.8.tar.gz'
source_sha256 'ec90153ccedd20ad4015d3eaf76b502ff1f61b431d54c22b8457b5784a9ae142'
depends_on 'openssl'
depends_on 'pcre'
def self.build
system "make TARGET=linux26 USE_OPENSSL=1 USE_PCRE=1 USE_ZLIB=1"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,9 +3,13 @@ require 'package'
class Harfbuzz < Package
description 'HarfBuzz is an OpenType text shaping engine.'
homepage 'https://www.freedesktop.org/wiki/Software/HarfBuzz/'
version '1.1.5'
source_url 'https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.4.5.tar.bz2'
source_sha1 'e979eb20b789c1fc47107ef93a584924e34dd195'
version '1.4.8'
source_url 'https://github.com/behdad/harfbuzz/releases/download/1.4.8/harfbuzz-1.4.8.tar.bz2'
source_sha256 'ccec4930ff0bb2d0c40aee203075447954b64a8c2695202413cc5e428c907131'
depends_on 'glib'
depends_on 'icu4c'
depends_on 'freetype'
def self.build
system "./configure"
......
require 'package'
class Hdparm < Package
description 'hdparm is a GNU/Linux shell utility for viewing and manipulating various IDE drive and driver parameters.'
homepage 'https://directory.fsf.org/wiki/Hdparm'
version '9.32'
source_url 'http://www.ibiblio.org/pub/Linux/system/hardware/hdparm-9.32.tar.gz'
source_sha256 '90d80632695759ec12c8a9da94471f04bc88d5b73d34fc6a370775b534d09319'
def self.build
system "sed -i 's,binprefix = ,binprefix = /usr/local,' Makefile"
system "sed -i 's,manprefix = /usr,manprefix = /usr/local,' Makefile"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "-e", "install"
end
end
require 'package'
class Healthcheck < Package
description 'Linux system health check.'
homepage 'https://github.com/SimplyLinuxFAQ/health-check-script'
version '1cace5'
source_url 'https://github.com/SimplyLinuxFAQ/health-check-script/archive/1cace54e871c69cd4bbbaeeb3b9e314d7f575b06.tar.gz'
source_sha256 '4f40995614da68da7422e2ba8e01815c569e3c1a268122a5e13a007899092630'
depends_on 'lsb_release'
depends_on 'dmidecode'
depends_on 'sysstat'
def self.install
system "chmod +x health-check.sh"
system "sed -i 's,usr/bin,usr/local/bin,' health-check.sh"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp health-check.sh #{CREW_DEST_DIR}/usr/local/bin/healthcheck"
puts ""
puts "To execute, enter the following:".lightblue
puts "sudo healthcheck".lightblue
puts ""
end
end
require 'package'
class Help2info < Package
description 'help2info is a bash script that generates a simple info page from the output of the --help argument of the specified program.'
homepage 'http://savannah.nongnu.org/projects/help2info'
version '0.1.1'
source_url 'http://download.savannah.nongnu.org/releases/help2info/help2info-0.1.1.tar.bz2'
source_sha256 '9964fa462fb3e0f0646c97d986b69b3365461e94365cd80c5ec57f03ca08a839'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Help2man < Package
description "help2man produces simple manual pages from the '--help' and '--version' output of other commands."
homepage 'https://www.gnu.org/software/help2man/'
version '1.47.4'
source_url 'https://ftpmirror.gnu.org/help2man/help2man-1.47.4.tar.xz'
source_sha256 'd4ecf697d13f14dd1a78c5995f06459bff706fd1ce593d1c02d81667c0207753'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,15 +3,20 @@ require 'package'
class Heroku < Package
description 'The Heroku Command Line Interface (CLI), formerly known as the Heroku Toolbelt, is a tool for creating and managing Heroku apps from the command line / shell of various operating systems.'
homepage 'https://devcenter.heroku.com/articles/heroku-cli'
version '4.28.3'
binary_url ({
armv7l: "https://drive.google.com/uc?export=download&id=0ByCixsDmZPzxOHFIMzQyNHNFUWc",
i686: "https://drive.google.com/uc?export=download&id=0ByCixsDmZPzxd3NULTRkMWlHQTA",
x86_64: "https://drive.google.com/uc?export=download&id=0ByCixsDmZPzxLURkMktpREpDZk0"
})
binary_sha1 ({
armv7l: "b48f2f52d11cee4ca6a1878fdf2608a4b10ea53d",
i686: "1b0a736797c9293431b7db0055861fc73657a3fe",
x86_64: "9524fbc86c0a19f84f8bbb77c56ce2439d929a92"
})
version '6.13.9'
source_url 'https://github.com/heroku/cli/archive/v6.13.9.tar.gz'
source_sha256 '76699029d86fc10326f8cf39b0c0a3b1f322dee39bd7c96fa81e34e52ff454f9'
depends_on 'yarn'
def self.build
system 'yarn install'
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}#{CREW_LIB_PREFIX}/heroku"
system "cp -r . #{CREW_DEST_DIR}#{CREW_LIB_PREFIX}/heroku"
system "mkdir -p #{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
system "ln -s #{CREW_LIB_PREFIX}/heroku/bin/run #{CREW_DEST_DIR}#{CREW_PREFIX}/bin/heroku"
end
end
require 'package'
class Hexedit < Package
version '1.2.13'
description 'Hex Editor for Linux.'
homepage 'http://rigaux.org/hexedit.html'
source_url 'http://rigaux.org/hexedit-1.2.13.src.tgz'
source_sha256 '6a126da30a77f5c0b08038aa7a881d910e3b65d13767fb54c58c983963b88dd7'
depends_on 'ncurses'
def self.build
system "./configure", "--prefix=/usr/local"
system "make", "CFLAGS=-I/usr/local/include/ncurses"
end
def self.install
system "make", "prefix=#{CREW_DEST_DIR}/usr/local", "install"
end
end
......@@ -5,16 +5,16 @@ class Htop < Package
homepage 'https://hisham.hm/htop/'
version '2.0.2'
source_url 'http://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz'
source_sha1 '201f793f13dce2448e36047079875b9bd5bba75a'
source_sha256 '179be9dccb80cee0c5e1a1f58c8f72ce7b2328ede30fb71dcdf336539be2f487'
depends_on 'buildessential'
depends_on 'ncurses'
def self.build
system "./configure --disable-unicode"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
......
......@@ -3,21 +3,22 @@ require 'package'
class Httpd < Package
description 'The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows.'
homepage 'http://httpd.apache.org/'
version '2.2.32'
source_url 'https://github.com/apache/httpd/archive/2.2.32.tar.gz'
source_sha1 '647e459f645c4138561e3f4314570f2f525d754d'
version '2.4.27'
source_url 'http://www-us.apache.org/dist/httpd/httpd-2.4.27.tar.gz'
source_sha256 '346dd3d016ae5d7101016e68805150bdce9040a8d246c289aa70e68a7cd86b66'
depends_on 'svn'
depends_on 'apr'
depends_on 'aprutil'
depends_on 'libtool'
depends_on 'pcre'
depends_on 'expat'
def self.build
system 'svn co http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x srclib/apr'
system 'svn co http://svn.apache.org/repos/asf/apr/apr-util/branches/1.4.x srclib/apr-util'
system './buildconf'
system './configure --prefix=/usr/local'
system './configure'
system 'make'
end
def self.install
system 'make -i install'
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Httrack < Package
description 'HTTrack is a free (GPL, libre/free software) and easy-to-use offline browser utility. It allows you to download a World Wide Web site from the Internet to a local directory, building recursively all directories, getting HTML, images, and other files from the server to your computer.'
homepage 'http://www.httrack.com/'
version '3.49.2'
source_url 'http://mirror.httrack.com/httrack-3.49.2.tar.gz'
source_sha256 '3477a0e5568e241c63c9899accbfcdb6aadef2812fcce0173688567b4c7d4025'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,9 +3,9 @@ require 'package'
class Hub < Package
description 'hub is a command-line wrapper for git that makes you better at GitHub.'
homepage 'https://hub.github.com/'
version '2.3.0-pre9'
source_url 'https://github.com/github/hub/archive/v2.3.0-pre9.tar.gz'
source_sha1 'd18f0a28d13b7e773186ece35df032f561d2172d'
version '2.3.0-pre10'
source_url 'https://github.com/github/hub/archive/v2.3.0-pre10.tar.gz'
source_sha256 '9b4764dc2647bc0c14de2bd386e6f428f002d93baf01059d994e1cfa928483fc'
depends_on 'git'
depends_on 'go'
......
......@@ -5,18 +5,24 @@ class Icu4c < Package
homepage 'http://site.icu-project.org/'
version '58.2'
source_url 'http://download.icu-project.org/files/icu4c/58.2/icu4c-58_2-src.tgz'
source_sha1 'b67913c90a484c59fda011797c6f3959d84bdc7c'
source_sha256 '2b0a4410153a9b20de0e20c7d8b66049a72aef244b53683d0d7521371683da0c'
def self.build
FileUtils.cd('source') do
case ARCH
when 'aarch64', 'armv7l'
# Armhf requires sane ELF headers rather than other architectures as
# discussed in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653457
system "sed -e '/LDFLAGSICUDT=/cLDFLAGSICUDT=' -i config/mh-linux"
end
system "./configure", "--without-samples", "--without-tests"
system "make"
end
end
def self.install
FileUtils.cd('source') do
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
end
end
......@@ -5,10 +5,10 @@ class Iftop < Package
homepage 'http://www.ex-parrot.com/pdw/iftop/'
version '0.17'
source_url 'http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz'
source_sha1 '75ce6afc8c0bf851278b0a15e66f523af90cfda9'
source_sha256 'd032547c708307159ff5fd0df23ebd3cfa7799c31536fa0aea1820318a8e0eac'
depends_on "libpcap"
depends_on "ncurses"
depends_on 'libpcap'
depends_on 'ncurses'
def self.build
system './configure --prefix=/usr/local CPPFLAGS="-I/usr/local/include/ncurses"'
......
......@@ -3,11 +3,11 @@ 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.5-4'
source_url 'https://www.imagemagick.org/download/ImageMagick-7.0.5-4.tar.xz'
source_sha1 '118b2d1753cf5eb0761ea8dac068e24217b8e32b'
depends_on 'pkgconfig'
version '7.0.6-7'
source_url 'https://www.imagemagick.org/download/releases/ImageMagick-7.0.6-7.tar.xz'
source_sha256 '732332a76cb62f067d680a90d85dd05a2f2592e0017af83becb639d05681106d'
depends_on 'buildessential' => :build
def self.build
system "./configure CFLAGS=\" -fPIC\" --without-python"
......
require 'package'
class Imagemagick6 < Package
description 'Use ImageMagick to create, edit, compose, or convert bitmap images.'
homepage 'http://www.imagemagick.org/script/index.php'
version '6.9.9-7'
source_url 'https://www.imagemagick.org/download/releases/ImageMagick-6.9.9-7.tar.xz'
source_sha256 '8467a4c86e368323dd789053c9557dd32be2b3866273f5ee6dcf538656fa9ad3'
depends_on 'pkgconfig'
depends_on "libjpeg"
depends_on "libpng"
depends_on "libtiff"
depends_on "freetype"
depends_on "zlibpkg"
def self.build
system "./configure CFLAGS=\" -fPIC\" --without-python"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Inetutils < Package
description 'The Inetutils package contains programs for basic networking. Such as dnsdomainname, ftp, hostname, ifconfig, ping,
ping6, talk, telnet, tftp, traceroute'
description 'The Inetutils package contains programs for basic networking. Such as dnsdomainname, ftp, hostname, ifconfig, ping, ping6, talk, telnet, tftp, traceroute'
homepage 'https://www.gnu.org/software/inetutils/'
version '1.9.4'
source_url 'https://ftp.gnu.org/gnu/inetutils/inetutils-1.9.4.tar.xz'
source_sha1 '5e515cc9da142cb73bb1beda137b4c2dcf2b528c'
source_sha256 '849d96f136effdef69548a940e3e0ec0624fc0c81265296987986a0dd36ded37'
depends_on 'buildessential'
depends_on 'ncurses'
def self.build
system "./configure --prefix=/usr/local \
system "./configure --prefix=/usr/local \
--localstatedir=/usr/var \
--disable-logger \
--disable-traceroute \
--disable-whois \
--disable-rcp \
--disable-rexec \
......
require 'package'
class Inputproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '2.3'
source_url 'https://www.x.org/archive/individual/proto/inputproto-2.3.tar.gz'
source_sha256 '98e8ab87fb71080b28536d749aa942bdad13d860d5eb3e1271084906cda711e9'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Iptables < Package
description 'iptables is the userspace command line program used to configure the Linux 2.4.x and later packet filtering ruleset.'
homepage 'https://www.netfilter.org/projects/iptables/'
version '1.6.1'
source_url 'https://www.netfilter.org/projects/iptables/files/iptables-1.6.1.tar.bz2'
source_sha256 '0fc2d7bd5d7be11311726466789d4c65fb4c8e096c9182b56ce97440864f0cf5'
def self.build
system './configure \
--disable-nftables'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,17 +3,17 @@ require 'package'
class Isl < Package
description 'Integer Set Library for manipulating sets and relations of integer points bounded by linear constraints'
homepage 'http://isl.gforge.inria.fr/'
version "0.14.1-cc1.3"
version '0.18-1'
binary_url ({
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/isl-0.14.1-cc1.3-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/isl-0.14.1-cc1.3-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/isl-0.14.1-cc1.3-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/isl-0.14.1-cc1.3-chromeos-x86_64.tar.xz',
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/isl-0.18-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/isl-0.18-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/isl-0.18-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/isl-0.18-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
aarch64: '749bf7d0a09c1578ce2de20a21ce7f7d6a575756',
armv7l: '749bf7d0a09c1578ce2de20a21ce7f7d6a575756',
i686: '306c249734107ac29e7951a44a000cfcbb523a35',
x86_64: '7e0dcb1c65a99be666c4369abb649ad27f88ade1',
binary_sha256 ({
aarch64: '34ab13258b490e96932dc8cb79fd3f7f6ec1e724aba829011cc5f2b16644c28e',
armv7l: '34ab13258b490e96932dc8cb79fd3f7f6ec1e724aba829011cc5f2b16644c28e',
i686: '513b04781a6759ffff0481151090711b19a29bc636a9839e9b571b1cb4276ac7',
x86_64: 'dbab5361321ea49a310e8d6507464438f227dff149223d68a797d4479ae1c173',
})
end
......@@ -3,27 +3,37 @@ require 'package'
class Jdk8 < Package
description 'The JDK is a development environment for building applications, applets, and components using the Java programming language.'
homepage 'http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html'
version '8u131'
case ARCH
when 'i686'
source_url 'http://javadl.oracle.com/webapps/download/AutoDL?BundleId=220303_d54c1d3a095b4ff2b6607d096fa80163'
source_sha1 '20d1a77783a01a592d9bcf3597256caee2ccfce0'
when 'x86_64'
source_url 'http://javadl.oracle.com/webapps/download/AutoDL?BundleId=220305_d54c1d3a095b4ff2b6607d096fa80163'
source_sha1 '9303d3a8e8fc2d2eda014887fd92a6f5883f0170'
when 'armv7l'
source_url 'https://www.dropbox.com/s/vcejuitboafaxib/jdk8u22-armv7l.tar.gz'
source_sha1 '913adb900bf0d9d42452a4591c1a9093076ed4b6'
when 'aarch64'
source_url 'https://www.dropbox.com/s/vcejuitboafaxib/jdk8u22-armv7l.tar.gz'
source_sha1 '913adb900bf0d9d42452a4591c1a9093076ed4b6'
else
abort 'Unable to install jdk8. Architecture not supported.'.lightred
end
version '8u144'
source_url 'http://hg.openjdk.java.net/jdk8/jdk8/archive/2a8f4c022aa0.tar.gz'
source_sha256 'e632ae353ccfb90957cbb6a5818ee063710a41e7b97b490ee58ca5f627d863f1'
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local"
system "cp -r bin/ #{CREW_DEST_DIR}/usr/local"
system "cp -r lib/ #{CREW_DEST_DIR}/usr/local"
system "cp -r man/ #{CREW_DEST_DIR}/usr/local"
case ARCH
when 'aarch64'
system 'wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" --no-check-certificate https://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-arm32-vfp-hflt.tar.gz'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('jdk-8u144-linux-arm32-vfp-hflt.tar.gz') ) == 'cbbd390e19ab4c473e05f60602ce2804db25e4e35be5ab95f4f1a2aeb5b72383'
system 'tar xvf jdk-8u144-linux-arm32-vfp-hflt.tar.gz'
when 'armv7l'
system 'wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" --no-check-certificate https://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-arm32-vfp-hflt.tar.gz'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('jdk-8u144-linux-arm32-vfp-hflt.tar.gz') ) == 'cbbd390e19ab4c473e05f60602ce2804db25e4e35be5ab95f4f1a2aeb5b72383'
system 'tar xvf jdk-8u144-linux-arm32-vfp-hflt.tar.gz'
when 'i686'
system 'wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" --no-check-certificate https://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-i586.tar.gz'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('jdk-8u144-linux-i586.tar.gz') ) == '624c090647629394ef0ee08d9d8ac5d3d5a9a60fa245fefb2eb417c36c7cb7c4'
system 'tar xvf jdk-8u144-linux-i586.tar.gz'
when 'x86_64'
system 'wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" --no-check-certificate https://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('jdk-8u144-linux-x64.tar.gz') ) == 'e8a341ce566f32c3d06f6d0f0eeea9a0f434f538d22af949ae58bc86f2eeaae4'
system 'tar xvf jdk-8u144-linux-x64.tar.gz'
end
system "mkdir -p #{CREW_DEST_DIR}#{CREW_LIB_PREFIX}/jdk8"
FileUtils.cd('jdk1.8.0_144') do
system "rm -f src.zip"
system "cp -r * #{CREW_DEST_DIR}#{CREW_LIB_PREFIX}/jdk8"
end
system "mkdir -p #{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
FileUtils.cd("#{CREW_DEST_DIR}#{CREW_PREFIX}/bin") do
system "ln -s ../../../#{CREW_LIB_PREFIX}/jdk8/bin/* ."
end
end
end
require 'package'
class Jemalloc < Package
description 'jemalloc is a general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support.'
homepage 'http://jemalloc.net/'
version '5.0.1'
source_url 'https://github.com/jemalloc/jemalloc/releases/download/5.0.1/jemalloc-5.0.1.tar.bz2'
source_sha256 '4814781d395b0ef093b21a08e8e6e0bd3dab8762f9935bbfb71679b0dea7c3e9'
depends_on 'autoconf'
depends_on 'gawk'
depends_on 'libxslt'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,9 +3,9 @@ require 'package'
class Jq < Package
description 'jq is a lightweight and flexible command-line JSON processor.'
homepage 'https://stedolan.github.io/jq/'
version '1.5'
source_url 'https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz'
source_sha1 '6eef3705ac0a322e8aa0521c57ce339671838277'
version '1.5'
source_url 'https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz'
source_sha256 'c4d2bfec6436341113419debf479d833692cc5cdab7eb0326b5a4d4fbe9f493c'
def self.build
system "./configure",
......
......@@ -5,7 +5,7 @@ class Jsonc < Package
homepage 'https://github.com/json-c/json-c/wiki'
version '0.12.1-nodoc'
source_url 'https://s3.amazonaws.com/json-c_releases/releases/json-c-0.12.1-nodoc.tar.gz'
source_sha1 'ffb24acc03110703a88657a64507cc055373f252'
source_sha256 '5a617da9aade997938197ef0f8aabd7f97b670c216dc173977e1d56eef9e1291'
def self.build
system "./configure --prefix=/usr/local"
......
require 'package'
class Kbproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.0.7'
source_url 'https://www.x.org/archive/individual/proto/kbproto-1.0.7.tar.gz'
source_sha256 '828cb275b91268b1a3ea950d5c0c5eb076c678fdf005d517411f89cc8c3bb416'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Krb5 < Package
description 'Kerberos is a network authentication protocol.'
homepage 'https://web.mit.edu/kerberos'
version '1.15.1'
source_url 'http://web.mit.edu/kerberos/dist/krb5/1.15/krb5-1.15.1.tar.gz'
source_sha256 '437c8831ddd5fde2a993fef425dedb48468109bb3d3261ef838295045a89eb45'
def self.build
Dir.chdir "src" do
system "./configure --without-system-verto"
system "make"
end
end
def self.install
Dir.chdir "src" do
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
end
require 'package'
class Kubectl < Package
description 'Kubernetes command line tool'
homepage 'https://kubernetes.io'
version '1.7.0'
source_url 'https://github.com/kubernetes/kubernetes/archive/v1.7.0.tar.gz'
source_sha256 '0fe34180a4bb61384894616b1d348cc6350d1ebcbc071c67748864ffd2deb026'
depends_on "go" => :build
depends_on "rsync" => :build
def self.build
ENV['TMPDIR'] = "#{CREW_PREFIX}/tmp"
# Override the -j$NPROC set by crew with -j1 to workaround a race issue
system "make", "-j1", "generated_files"
system "make", "kubectl"
end
def self.install
system "install", "-D", "-m", "755", "_output/bin/kubectl", "#{CREW_DEST_DIR}/usr/local/bin/kubectl"
end
end
require 'package'
class Lcms < Package
description 'Little CMS intends to be an OPEN SOURCE small-footprint color management engine, with special focus on accuracy and performance.'
homepage 'http://www.littlecms.com/'
version '2.8'
source_url 'https://downloads.sourceforge.net/project/lcms/lcms/2.8/lcms2-2.8.tar.gz'
source_sha256 '66d02b229d2ea9474e62c2b6cd6720fde946155cd1d0d2bffdab829790a0fb22'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Less < Package
homepage 'https://www.gnu.org/software/less/'
version '487'
source_url 'http://www.greenwoodsoftware.com/less/less-487.tar.gz'
source_sha1 '8a5c4be2a51f11543793defec7ccb77c525f007e'
source_sha256 'f3dc8455cb0b2b66e0c6b816c00197a71bf6d1787078adeee0bcf2aea4b12706'
depends_on 'buildessential' => :build
depends_on 'ncurses'
......@@ -16,7 +16,7 @@ class Less < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
require 'package'
class Leveldb < Package
description 'LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.'
homepage 'https://leveldb.googlecode.com/'
version '1.19.0'
source_url 'https://github.com/google/leveldb/archive/v1.19.tar.gz'
source_sha1 '864b45b4a8d1ad400b9115ff6d3c9fb1f79be82b'
version '1.20'
source_url 'https://github.com/google/leveldb/archive/v1.20.tar.gz'
source_sha256 'f5abe8b5b209c2f36560b75f32ce61412f39a2922f7045ae764a2c23335b6664'
def self.build
system "make"
end
def self.install
system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local/include"
system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local/lib"
system "cp", "-R", "include/leveldb", "#{CREW_DEST_DIR}/usr/local/include"
system "cp", "out-static/libleveldb.a", "#{CREW_DEST_DIR}/usr/local/lib"
system "cp", "out-shared/libleveldb.so.1.19", "#{CREW_DEST_DIR}/usr/local/lib"
system "cp", "out-shared/libleveldb.so.1.20", "#{CREW_DEST_DIR}/usr/local/lib"
system "cp", "-P", "out-shared/libleveldb.so.1", "#{CREW_DEST_DIR}/usr/local/lib"
system "cp", "-P", "out-shared/libleveldb.so", "#{CREW_DEST_DIR}/usr/local/lib"
end # during installation
end
end
......@@ -3,9 +3,9 @@ require 'package'
class Lha < Package
description 'LHa for UNIX is a console-based utility that uncompresses and compresses .lha packages.'
homepage 'http://freecode.com/projects/lhaforunix'
version '1.14i-ac20040929'
source_url 'http://prdownloads.sourceforge.jp/lha/11617/lha-1.14i-ac20040929.tar.gz'
source_sha1 '2e2eb1ee84fe3fa804fd80e6777d4a30050e017f'
version '1.14i-ac20050924p1'
source_url 'http://prdownloads.sourceforge.jp/lha/22231/lha-1.14i-ac20050924p1.tar.gz'
source_sha256 'b5261e9f98538816aa9e64791f23cb83f1632ecda61f02e54b6749e9ca5e9ee4'
def self.build
system './configure'
......
......@@ -5,11 +5,12 @@ class Libarchive < Package
homepage 'http://www.libarchive.org/'
version '3.2.2'
source_url 'http://www.libarchive.org/downloads/libarchive-3.2.2.tar.gz'
source_sha1 'ccf14e3b4ec7c6b242cf07062dd40e82a17485a5'
source_sha256 '691c194ee132d1f0f7a42541f091db811bc2e56f7107e9121be2bc8c04f1060f'
depends_on "acl"
depends_on "attr"
depends_on "lz4"
depends_on 'acl'
depends_on 'attr'
depends_on 'lz4'
depends_on 'xzutils' => :build
def self.build
system "./configure --prefix=/usr/local --disable-static"
......@@ -17,6 +18,6 @@ class Libarchive < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Libass < Package
homepage 'https://github.com/libass/libass'
version '0.13.6'
source_url 'https://github.com/libass/libass/archive/0.13.6.tar.gz'
source_sha1 '10fc35f8aba2a4a37aaed482a4184d144defb3d8'
source_sha256 'de68288397d284a955061b3ecba67152cea74d8ace6222d987dd30091b1534b7'
depends_on 'automake'
depends_on 'autoconf'
......
......@@ -5,7 +5,7 @@ class Libassuan < Package
homepage 'https://www.gnupg.org/related_software/libassuan/index.html'
version '2.4.3'
source_url 'https://www.gnupg.org/ftp/gcrypt/libassuan/libassuan-2.4.3.tar.bz2'
source_sha1 '27391cf4a820b5350ea789c30661830c9a271518'
source_sha256 '22843a3bdb256f59be49842abf24da76700354293a066d82ade8134bb5aa2b71'
def self.build
system './configure --prefix=/usr/local'
......@@ -13,6 +13,6 @@ class Libassuan < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Libsqlite3 < Package
description 'SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.'
homepage 'https://github.com/LuaDist/libsqlite3'
version '3.7.7.1'
source_url 'https://github.com/LuaDist/libsqlite3/archive/3.7.7.1.tar.gz'
source_sha1 '43a8eaad04a2220e9ede5764da8edba4003ad33a'
class Libatomic_ops < Package
description 'Atomic memory update operations portable implementation'
homepage 'https://github.com/ivmai/libatomic_ops'
version '7.6.0'
source_url 'https://github.com/ivmai/libatomic_ops/releases/download/v7.6.0/libatomic_ops-7.6.0.tar.gz'
source_sha256 '8e2c06d1d7a05339aae2ddceff7ac54552854c1cbf2bb34c06eca7974476d40f'
def self.build
system "./configure"
......
require 'package'
class Libbsd < Package
description 'This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project.'
homepage 'https://libbsd.freedesktop.org/wiki'
version '0.8.6'
source_url 'https://libbsd.freedesktop.org/releases/libbsd-0.8.6.tar.xz'
source_sha256 '467fbf9df1f49af11f7f686691057c8c0a7613ae5a870577bef9155de39f9687'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,11 +3,17 @@ require 'package'
class Libcap < Package
description 'Libcap implements the user-space interfaces to the POSIX 1003.1e capabilities available in Linux kernels.'
homepage 'https://directory.fsf.org/wiki/Libcap'
version '2.25'
version '2.25-1'
source_url 'https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.25.tar.xz'
source_sha1 'f0b102e4a68e1bbdcb6b143b63c34a250e473088'
source_sha256 '693c8ac51e983ee678205571ef272439d83afe62dd8e424ea14ad9790bc35162'
depends_on 'gperf' => :build
depends_on 'perl' => :build
def self.build
# add includes option to make it work with gperf-3.1
system 'sed -e "/gperf --/s/gperf --/gperf --includes --/" -e "/gperf --/s/cap_lookup_name(/cap_dummy(/" -i libcap/Makefile'
# change the path to ld
system 'sed -i "s,/usr/bin/ld,/usr/local/bin/ld,g" Make.Rules'
# change prefix
......@@ -16,12 +22,10 @@ class Libcap < Package
system 'sed -i "s,^exec_prefix=,exec_prefix=\$(prefix)," Make.Rules'
# http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-support/libcap/files/0001-ensure-the-XATTR_NAME_CAPS-is-defined-when-it-is-use.patch
system 'sed -i "s,^\#ifdef VFS_CAP_U32,\#if defined (VFS_CAP_U32) \&\& defined (XATTR_NAME_CAPS),g" libcap/cap_file.c'
# only root user can setcap
system 'sed -i "s,\$(FAKEROOT)\$(SBINDIR)/setcap,sudo \$(FAKEROOT)\$(SBINDIR)/setcap," progs/Makefile'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "RAISE_SETFCAP=no", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Libcheck < Package
description 'A unit testing framework for C'
homepage 'https://github.com/libcheck/check'
version '0.11.0'
source_url 'https://github.com/libcheck/check/releases/download/0.11.0/check-0.11.0.tar.gz'
source_sha256 '24f7a48aae6b74755bcbe964ce8bc7240f6ced2141f8d9cf480bc3b3de0d5616'
depends_on 'libtool'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Libdrm < Package
description 'Cross-driver middleware for DRI protocol.'
homepage 'https://dri.freedesktop.org'
version '2.4.82'
source_url 'https://dri.freedesktop.org/libdrm/libdrm-2.4.82.tar.gz'
source_sha256 '473997e1fa6f73f75f99bdeb8aa140f7efc3e774988b005c470343ee3cbeb97a'
depends_on 'libpciaccess'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Libedit < Package
homepage 'http://thrysoee.dk/editline/'
version '3.1'
source_url 'http://thrysoee.dk/editline/libedit-20160903-3.1.tar.gz'
source_sha1 '55e327ee4661b13d20ebb411d790f2bb258271cf'
source_sha256 '0ccbd2e7d46097f136fcb1aaa0d5bc24e23bb73f57d25bee5a852a683eaa7567'
def self.build
system './configure --prefix=/usr/local CPPFLAGS="-I/usr/local/include/ncurses"'
......@@ -13,6 +13,6 @@ class Libedit < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Libevent < Package
description 'The libevent API provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached.'
homepage 'http://libevent.org/'
version '2.1.8'
source_url 'https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz'
source_sha1 '2a1b8bb7a262d3fd0ed6a080a20991a6eed675ec'
source_sha256 '965cc5a8bb46ce4199a47e9b2c9e1cae3b137e8356ffdad6d94d3b9069b71dc2'
depends_on 'openssl'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
......
......@@ -5,7 +5,7 @@ class Libfdkaac < Package
homepage 'https://github.com/mstorsjo/fdk-aac/'
version '0.1.5'
source_url 'https://github.com/mstorsjo/fdk-aac/archive/v0.1.5.tar.gz'
source_sha1 '2894bd6d21066bfdf65a2f8cb6d2ca2dde597194'
source_sha256 'ff53d1d01cacc29c071e23192dfefa93bdbeaf775fc5d296259b4859d0306b79'
depends_on 'automake'
......
......@@ -5,16 +5,15 @@ class Libffi < Package
homepage 'https://sourceware.org/libffi/'
version '3.2.1-2'
source_url 'ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz'
source_sha1 '280c265b789e041c02e5c97815793dfc283fb1e6'
source_sha256 'd06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37'
def self.build
system "./configure", "--enable-shared", "--disable-static", "--with-pic", "--disable-debug", "--disable-dependency-tracking"
system "./configure", "--libdir=#{CREW_LIB_PREFIX}", "--enable-shared", "--disable-static", "--with-pic", "--disable-debug", "--disable-dependency-tracking"
system "make"
system "find . -name 'lib*.so.*' -print | xargs strip -S"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
......@@ -5,7 +5,7 @@ class Libfrei0r < Package
homepage 'https://frei0r.dyne.org/'
version '1.6.0'
source_url 'https://github.com/dyne/frei0r/archive/v1.6.0.tar.gz'
source_sha1 'a8214add5828e20ff49239ed3a462acaa8c1ebb2'
source_sha256 '63cae9d20d23b9d9e1ffb3fa053295914417c3e005194c077a0753d04636831c'
depends_on 'cmake'
......
......@@ -5,9 +5,9 @@ class Libgcrypt < Package
homepage 'https://www.gnupg.org/related_software/libgcrypt/index.html'
version '1.7.6'
source_url 'https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.7.6.tar.bz2'
source_sha1 'd2b9e0f413064cfc67188f80d3cbda887c755a62'
source_sha256 '626aafee84af9d2ce253d2c143dc1c0902dda045780cc241f39970fc60be05bc'
depends_on "libgpgerror"
depends_on 'libgpgerror'
def self.build
system "./configure --prefix=/usr/local"
......@@ -15,6 +15,6 @@ class Libgcrypt < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Libgd < Package
homepage 'https://libgd.github.io/'
version '2.2.4'
source_url 'https://github.com/libgd/libgd/archive/gd-2.2.4.tar.gz'
source_sha1 '630daec16fe06e4e916fd0fa8499c8fa5c0dcbca'
source_sha256 'afdd50db677648cb9335b2dda10dd3a6700d97feb21fe802e6ee0f7065acd8c4'
depends_on 'cmake'
depends_on 'libpng'
......
......@@ -5,7 +5,7 @@ class Libgpgerror < Package
homepage 'https://www.gnupg.org/related_software/libgpg-error/index.html'
version '1.26'
source_url 'ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.26.tar.bz2'
source_sha1 '9a926e7ee6309e539313443555535d49a2a5c9f1'
source_sha256 '4c4bcbc90116932e3acd37b37812d8653b1b189c1904985898e860af818aee69'
def self.build
system "./configure --prefix=/usr/local"
......@@ -13,6 +13,6 @@ class Libgpgerror < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Libjpeg < Package
homepage 'http://www.ijg.org/'
version '9.1-1'
source_url 'http://www.ijg.org/files/jpegsrc.v9a.tar.gz'
source_sha1 'd65ed6f88d318f7380a3a5f75d578744e732daca'
source_sha256 '3a753ea48d917945dd54a2d97de388aa06ca2eb1066cbfdc6652036349fe05a7'
def self.build
system "./configure --includedir=/usr/local/include CFLAGS=\" -fPIC\""
......
......@@ -5,7 +5,7 @@ class Libksba < Package
homepage 'https://www.gnupg.org/related_software/libksba/index.html'
version '1.3.5'
source_url 'https://www.gnupg.org/ftp/gcrypt/libksba/libksba-1.3.5.tar.bz2'
source_sha1 'a98385734a0c3f5b713198e8d6e6e4aeb0b76fde'
source_sha256 '41444fd7a6ff73a79ad9728f985e71c9ba8cd3e5e53358e70d5f066d35c1a340'
depends_on 'npth'
......@@ -15,6 +15,6 @@ class Libksba < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Libmp3lame < Package
homepage 'http://lame.sourceforge.net/'
version '3.99.5'
source_url 'https://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz'
source_sha1 '03a0bfa85713adcc6b3383c12e2cc68a9cfbf4c4'
source_sha256 '24346b4158e4af3bd9f2e194bb23eb473c75fb7377011523353196b19b9a23ff'
def self.build
system "./configure"
......
......@@ -5,7 +5,7 @@ class Libnl3 < Package
homepage 'http://www.infradead.org/~tgr/libnl/'
version '3.2.25'
source_url 'http://www.infradead.org/~tgr/libnl/files/libnl-3.2.25.tar.gz'
source_sha1 'b7a4981f7edf7398256d35fd3c0b87bc84ae27d1'
source_sha256 '8beb7590674957b931de6b7f81c530b85dc7c1ad8fbda015398bc1e8d1ce8ec5'
depends_on "buildessential" => :build
depends_on "glibc"
......
......@@ -5,7 +5,7 @@ class Libogg < Package
homepage 'https://xiph.org/ogg/'
version '1.3.1'
source_url 'http://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.xz'
source_sha1 'a4242415a7a9fd71f3092af9ff0b9fa630e4d7bd'
source_sha256 '3a5bad78d81afb78908326d11761c0fb1a0662ee7150b6ad587cc586838cdcfa'
def self.build
system "./configure"
......
......@@ -5,7 +5,7 @@ class Libopencoreamr < Package
homepage 'https://sourceforge.net/projects/opencore-amr/'
version '0.1.5'
source_url 'https://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.5.tar.gz'
source_sha1 'bef4d1e3a8a155b47569b6691a223843b33e279e'
source_sha256 '2c006cb9d5f651bfb5e60156dbff6af3c9d35c7bbcc9015308c0aff1e14cd341'
def self.build
system "./configure"
......
......@@ -5,7 +5,7 @@ class Libopus < Package
homepage 'http://opus-codec.org/'
version '1.1.5'
source_url 'https://archive.mozilla.org/pub/opus/opus-1.1.5.tar.gz'
source_sha1 'fb6d55cf73059bd916790960c2eeffe83edabafe'
source_sha256 'eb84981ca0f40a3e5d5e58d2e8582cb2fee05a022825a6dfe14d14b04eb563e4'
def self.build
system "./configure --prefix=/usr/local \
......
......@@ -5,7 +5,7 @@ class Libpcap < Package
homepage 'http://www.tcpdump.org/'
version '1.8.1'
source_url 'http://www.tcpdump.org/release/libpcap-1.8.1.tar.gz'
source_sha1 '32d7526dde8f8a2f75baf40c01670602aeef7e39'
source_sha256 '673dbc69fdc3f5a86fb5759ab19899039a8e5e6c631749e48dcd9c6f0c83541e'
depends_on "buildessential"
depends_on "bison"
......
require 'package'
class Libpciaccess < Package
description 'Generic PCI access library'
homepage 'https://x.org'
version '0.13'
source_url 'https://www.x.org/archive/individual/lib/libpciaccess-0.13.tar.gz'
source_sha256 'afdfe55b23be710751b630073127febef498af35d4a58944fccbef860315f72c'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Libpipeline < Package
description 'libpipeline is a C library for manipulating pipelines of subprocesses in a flexible and convenient way.'
homepage 'http://libpipeline.nongnu.org/'
version '1.4.2'
source_url 'https://download.savannah.gnu.org/releases/libpipeline/libpipeline-1.4.2.tar.gz'
source_sha256 'fef1fc9aa40ce8796f18cd1aecd888a9484a9556c8b0f8d07c863578277679be'
def self.build
system './configure', '--disable-static', '--enable-shared', '--with-pic'
system './configure', "--libdir=#{CREW_LIB_PREFIX}", '--disable-static', '--enable-shared', '--with-pic'
system 'make'
system "find . -name 'lib*.so.*' -print | xargs strip -S"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
......@@ -5,7 +5,7 @@ class Libpng < Package
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_sha1 '004556d65f21baed83755f8e094112711e39ebae'
source_sha256 'b6cec903e74e9fdd7b5bbcde0ab2415dd12f2f9e84d9e4d9ddd2ba26a41623b2'
def self.build
system "./configure CFLAGS=\" -fPIC\""
......
......@@ -2,13 +2,13 @@ require 'package'
class Libsdl < Package
description 'Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.'
homepage 'http://www.libsdl.org/'
version '1.2.15'
homepage 'http://www.libsdl.org'
version '1.2.15-1'
source_url 'http://www.libsdl.org/release/SDL-1.2.15.tar.gz'
source_sha1 '0c5f193ced810b0d7ce3ab06d808cbb5eef03a2c'
source_sha256 'd6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00'
def self.build
system "./configure"
system "./configure --disable-video-x11 --disable-video-wayland"
system "make"
end
......
require 'package'
class Libsdl2 < Package
description 'Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.'
homepage 'http://www.libsdl.org'
version '2.0.5-1'
source_url 'https://www.libsdl.org/release/SDL2-2.0.5.tar.gz'
source_sha256 '442038cf55965969f2ff06d976031813de643af9c9edc9e331bd761c242e8785'
def self.build
system "./configure --disable-video-x11 --disable-video-wayland"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Libseccomp < Package
description 'The libseccomp library provides an easy to use, platform independent, interface to the Linux Kernel\'s syscall filtering mechanism.'
homepage 'https://github.com/seccomp/libseccomp'
version '2.3.2'
source_url 'https://github.com/seccomp/libseccomp/releases/download/v2.3.2/libseccomp-2.3.2.tar.gz'
source_sha256 '3ddc8c037956c0a5ac19664ece4194743f59e1ccd4adde848f4f0dae7f77bca1'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,21 +5,10 @@ class Libsigsegv < Package
homepage 'https://www.gnu.org/software/libsigsegv/'
version '2.11'
source_url 'ftp://ftp.gnu.org/gnu/libsigsegv/libsigsegv-2.11.tar.gz'
source_sha1 '186dea8ae788395476bd7cbaf38c17ebe82e1777'
# Not duplicating armv7l as aarch64 for the safe since libsigsegv traces stack.
# I'm not sure differences between armv7l stack and aarch64 stack.
binary_url ({
armv7l: 'https://github.com/jam7/chromebrew/releases/download/binaries/libsigsegv-2.11-chromeos-armv7l.tar.xz',
x86_64: 'https://github.com/jam7/chromebrew/releases/download/binaries/libsigsegv-2.11-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
armv7l: '49ac940d93c9c174194a96444ac4006d8ebd6d53',
x86_64: '3fdafd698589fffabc215dea2b559dacf94b4500',
})
source_sha256 'dd7c2eb2ef6c47189406d562c1dc0f96f2fc808036834d596075d58377e37a18'
def self.build
system "./configure", "--enable-shared", "--disable-static", "--with-pic"
system "./configure", "--libdir=#{CREW_LIB_PREFIX}", "--enable-shared", "--disable-static", "--with-pic"
system "make"
end
......
......@@ -5,13 +5,13 @@ class Libslz < Package
homepage 'https://github.com/haproxy/libslz'
version '1.1.0'
source_url 'http://git.1wt.eu/web?p=libslz.git;a=snapshot;h=afa04ae1f976957cf36287cc5370998d0559bc63;sf=tbz2'
source_sha1 '20d8a90c6a0949bfb15547ead0636e416366ac44'
source_sha256 '45527de53bca42faad9ad4078893c5e9a633e15c86eb9b06218d5b97e12f2096'
def self.build
system "make PREFIX=/usr/local"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Libsoxr < Package
homepage 'https://sourceforge.net/projects/soxr/'
version '0.1.2'
source_url 'https://sourceforge.net/projects/soxr/files/soxr-0.1.2-Source.tar.xz'
source_sha1 '3b990f91dc8dc08e70626cd5fb90deda0239c211'
source_sha256 '54e6f434f1c491388cd92f0e3c47f1ade082cc24327bdc43762f7d1eefe0c275'
depends_on 'cmake'
......
......@@ -5,21 +5,19 @@ class Libssh2 < Package
homepage 'https://www.libssh2.org/'
version '1.8.0'
source_url 'https://www.libssh2.org/download/libssh2-1.8.0.tar.gz'
source_sha1 'baf2d1fb338eee531ba9b6b121c64235e089e0f5'
source_sha256 '39f34e2f6835f4b992cafe8625073a88e5a28ba78f83e8099610a7b3af4676d4'
depends_on 'openssl' => :build
depends_on 'zlibpkg' => :build
def self.build
system "./configure", "--with-zlib", "--with-openssl", "--with-pic", "--disable-static"
system "./configure", "--libdir=#{CREW_LIB_PREFIX}", "--with-zlib", "--with-openssl", "--with-pic", "--disable-static"
system "make"
system "find . -name '*.so.*' -print | xargs strip -S"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
# strip debug symbol from library
system "strip -S #{CREW_DEST_DIR}/usr/local/lib/libssh2.so.*"
end
def self.check
......
......@@ -5,7 +5,7 @@ class Libtasn1 < Package
homepage 'https://www.gnu.org/software/libtasn1/'
version '4.10-1'
source_url 'http://ftpmirror.gnu.org/libtasn1/libtasn1-4.10.tar.gz'
source_sha1 'c7b36fa50866bbc889f7503c7fd1e9f9d7c52a64'
source_sha256 '681a4d9a0d259f2125713f2e5766c5809f151b3a1392fd91390f780b4b8f5a02'
# bison, diff, cmp are required at compile-time
depends_on 'buildessential' => :build
......
......@@ -5,10 +5,10 @@ class Libtheora < Package
homepage 'https://theora.org/'
version '1.1.1'
source_url 'http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2'
source_sha1 '8dcaa8e61cd86eb1244467c0b64b9ddac04ae262'
source_sha256 'b6ae1ee2fa3d42ac489287d3ec34c5885730b1296f0801ae577a35193d3affbc'
depends_on 'libvorbis'
depends_on 'libsdl'
depends_on 'libsdl2'
def self.build
system "sed -i 's/png_sizeof/sizeof/g' ./examples/png2theora.c"
......
......@@ -5,7 +5,7 @@ class Libtiff < Package
homepage 'http://www.libtiff.org/'
version '4.0.7-1'
source_url 'ftp://download.osgeo.org/libtiff/tiff-4.0.7.tar.gz'
source_sha1 '2c1b64478e88f93522a42dd5271214a0e5eae648'
source_sha256 '9f43a2cfb9589e5cecaa66e16bf87f814c945f22df7ba600d63aac4632c4f019'
def self.build
system "./configure CFLAGS=\" -fPIC\""
......
......@@ -3,11 +3,12 @@ require 'package'
class Libtool < Package
description 'GNU libtool is a generic library support script. Libtool hides the complexity of using shared libraries behind a consistent, portable interface.'
homepage 'https://www.gnu.org/software/libtool/'
version '2.4.6'
version '2.4.6-1'
source_url 'https://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.gz'
source_sha1 '25b6931265230a06f0fc2146df64c04e5ae6ec33'
source_sha256 'e3bd4d5d3d025a36c21dd6af7ea818a2afcd4dfc1ea5a17b39d7854bcd0c06e3'
depends_on 'buildessential'
depends_on 'm4'
def self.build
system "./configure --prefix=/usr/local"
......
......@@ -5,7 +5,7 @@ class Libunbound < Package
homepage 'https://www.unbound.net/'
version '1.6.2'
source_url 'https://www.unbound.net/downloads/unbound-1.6.2.tar.gz'
source_sha1 'de370b1ac8e260db9c4c1504453752713dd8818f'
source_sha256 '1a323d72c32180b7141c9e6ebf199fc68a0208dfebad4640cd2c4c27235e3b9c'
depends_on 'flex' => :build
depends_on 'bison' => :build
......@@ -13,14 +13,12 @@ class Libunbound < Package
depends_on 'expat'
def self.build
system "./configure", "--enable-shared", "--disable-static", "--with-pic"
system "./configure", "--libdir=#{CREW_LIB_PREFIX}", "--enable-shared", "--disable-static", "--with-pic"
# flex 2.6.3 requires -P option to rename yylex and other funcions
system "sed", "-i", "Makefile", "-e", '/$(LEX) -t $(srcdir)\/util\/configlexer.lex/s:-t:-t -Pub_c_:'
system "make"
system "make", "strip"
system "find . -name 'lib*.so.*' -print | xargs strip -S"
end
def self.install
......
......@@ -5,9 +5,9 @@ class Libunistring < Package
homepage 'https://www.gnu.org/software/libunistring/'
version '0.9.7'
source_url 'http://ftp.gnu.org/gnu/libunistring/libunistring-0.9.7.tar.xz'
source_sha1 '7d92687a50fea7702e8052486dfa25ffc361c9f3'
source_sha256 '2e3764512aaf2ce598af5a38818c0ea23dedf1ff5460070d1b6cee5c3336e797'
depends_on "glibc"
depends_on 'glibc'
def self.build
system "./configure --prefix=/usr/local"
......@@ -15,6 +15,6 @@ class Libunistring < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Libunwind < Package
homepage 'http://www.nongnu.org/libunwind/'
version '1.2'
source_url 'http://download.savannah.gnu.org/releases/libunwind/libunwind-1.2.tar.gz'
source_sha1 'a33e52d7ecd18b9375508369b566eeb2cc6eec3b'
source_sha256 '1de38ffbdc88bd694d10081865871cd2bfbb02ad8ef9e1606aee18d65532b992'
depends_on 'buildessential' => :build
depends_on 'openssl' => :build
......
......@@ -5,7 +5,7 @@ class Libuv < Package
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_sha1 '668d636372e3276aecc6082082a86f86ddb67877'
source_sha256 'e83953782c916d7822ef0b94e8115ce5756fab5300cca173f0de5f5b0e0ae928'
depends_on 'glibc'
......@@ -16,6 +16,6 @@ class Libuv < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Libvoamrwbenc < Package
homepage 'https://sourceforge.net/projects/opencore-amr/'
version '0.1.3'
source_url 'https://downloads.sourceforge.net/project/opencore-amr/vo-amrwbenc/vo-amrwbenc-0.1.3.tar.gz'
source_sha1 '427a147a378d258614d5d470f1f222e249535be7'
source_sha256 '5652b391e0f0e296417b841b02987d3fd33e6c0af342c69542cbb016a71d9d4e'
def self.build
system "./configure"
......
......@@ -5,7 +5,7 @@ class Libvorbis < Package
homepage 'https://xiph.org/vorbis/'
version '1.3.3'
source_url 'http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.xz'
source_sha1 '31d1a0ec4815bf1ee638b0f2850f03efcd48022a'
source_sha256 '834c7d35a5ebf4e7b8ab60b0979f2b7f204ca66ff6829728e9d2a67f15347ebd'
depends_on 'libogg'
......
require 'package'
class Libwayland < Package
description 'Wayland is intended as a simpler replacement for X, easier to develop and maintain.'
homepage 'https://wayland.freedesktop.org'
version '1.32.92'
source_url 'https://wayland.freedesktop.org/releases/wayland-1.13.92.tar.xz'
source_sha256 '1253392261ccb44b312ec0486457c28d24c2f9d8940162181ed5ddc568b8f858'
depends_on 'libffi'
depends_on 'expat'
depends_on 'libxml2'
def self.build
system "./configure --disable-documentation"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Libwebp < Package
homepage 'https://developers.google.com/speed/webp/'
version '0.6.0'
source_url 'https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.6.0.tar.gz'
source_sha1 '156d24fff454bfccd1f44434e226a10d9eb38186'
source_sha256 'c928119229d4f8f35e20113ffb61f281eda267634a8dc2285af4b0ee27cf2b40'
def self.build
system "./configure"
......
require 'package'
class Libx11 < Package
description 'C interface to the X window system'
homepage 'https://x.org'
version '1.6.5'
source_url 'https://www.x.org/archive/individual/lib/libX11-1.6.5.tar.gz'
source_sha256 '3abce972ba62620611fab5b404dafb852da3da54e7c287831c30863011d28fb3'
depends_on 'kbproto'
depends_on 'libxcb'
depends_on 'xproto'
depends_on 'inputproto'
depends_on 'xextproto'
depends_on 'libxtrans'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Libx264 < Package
homepage 'http://www.videolan.org/developers/x264.html'
version '20170604-2245-stable'
source_url 'http://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20170604-2245-stable.tar.bz2'
source_sha1 '8003044b45010b1b4b40ac3dd8be98d80c888ece'
source_sha256 '42fa7cc6af0af36e4a8286ce724e6d20de0967d9017640883e955b4b6d3690ac'
depends_on 'yasm'
......
......@@ -5,7 +5,7 @@ class Libx265 < Package
homepage 'http://x265.org/'
version '2.4'
source_url 'https://bitbucket.org/multicoreware/x265/downloads/x265_2.4.tar.gz'
source_sha1 'f8bfb348defa86fbfdce4dcc1d0c48c855e0e987'
source_sha256 '9c2aa718d78f6fecdd783f08ab83b98d3169e5f670404da4c16439306907d729'
depends_on 'cmake'
depends_on 'yasm'
......
require 'package'
class Libxau < Package
description 'xau library for libX11'
homepage 'https://x.org'
version '1.0.8'
source_url 'https://www.x.org/archive/individual/lib/libXau-1.0.8.tar.gz'
source_sha256 'c343b4ef66d66a6b3e0e27aa46b37ad5cab0f11a5c565eafb4a1c7590bc71d7b'
depends_on 'xproto'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Libxcb < Package
description 'library for the X window system'
homepage 'https://x.org'
version '1.12'
source_url 'https://www.x.org/archive/individual/xcb/libxcb-1.12.tar.gz'
source_sha256 '092f147149d8a6410647a848378aaae749304d5b73e028ccb8306aa8a9e26f06'
depends_on 'python27'
depends_on 'xcb_proto'
depends_on 'libxau'
depends_on 'pthread_stubs'
def self.build
system "python=/usr/local/bin/python2.7 ./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Libxdamage < Package
description 'library for the X window system'
homepage 'https://x.org'
version '1.1.4'
source_url 'https://www.x.org/archive/individual/lib/libXdamage-1.1.4.tar.gz'
source_sha256 '4bb3e9d917f5f593df2277d452926ee6ad96de7b7cd1017cbcf4579fe5d3442b'
depends_on 'fixesproto'
depends_on 'libxfixes'
depends_on 'xextproto'
depends_on 'libx11'
depends_on 'damageproto'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Libxext < Package
description 'library for the X window system'
homepage 'https://x.org'
version '1.3.3'
source_url 'https://www.x.org/archive/individual/lib/libXext-1.3.3.tar.gz'
source_sha256 'eb0b88050491fef4716da4b06a4d92b4fc9e76f880d6310b2157df604342cfe5'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Libxfixes < Package
description 'library for the X window system'
homepage 'https://x.org'
version '5.0.3'
source_url 'https://www.x.org/archive/individual/lib/libXfixes-5.0.3.tar.gz'
source_sha256 '9ab6c13590658501ce4bd965a8a5d32ba4d8b3bb39a5a5bc9901edffc5666570'
depends_on 'fixesproto'
depends_on 'xproto'
depends_on 'xextproto'
depends_on 'libx11'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Libxkbfile < Package
description 'library for the X window system'
homepage 'https://x.org'
version '1.0.9'
source_url 'https://www.x.org/archive/individual/lib/libxkbfile-1.0.9.tar.gz'
source_sha256 '95df50570f38e720fb79976f603761ae6eff761613eb56f258c3cb6bab4fd5e3'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,20 +3,19 @@ require 'package'
class Libxml2 < Package
description 'Libxml2 is the XML C parser and toolkit developed for the Gnome project.'
homepage 'http://xmlsoft.org/'
version '2.9.4'
version '2.9.4-1'
source_url 'ftp://xmlsoft.org/libxml2/libxml2-2.9.4.tar.gz'
source_sha1 '958ae70baf186263a4bd801a81dd5d682aedd1db'
source_sha256 'ffb911191e509b966deb55de705387f14156e1a56b21824357cdf0053233633c'
def self.build
system "./configure", "--enable-shared", "--disable-static", "--with-pic", "--without-python"
system "./configure", "--libdir=#{CREW_LIB_PREFIX}",
"--enable-shared", "--disable-static", "--with-pic", "--without-python",
"--without-lzma", "--without-zlib"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
# strip debug symbol from library
system "strip -S #{CREW_DEST_DIR}/usr/local/lib/libxml2.so.*"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
......@@ -5,7 +5,9 @@ class Libxslt < Package
homepage 'http://xmlsoft.org/libxslt/'
version '1.1.28-1'
source_url 'http://xmlsoft.org/sources/libxslt-1.1.28.tar.gz'
source_sha1 '4df177de629b2653db322bfb891afa3c0d1fa221'
source_sha256 '5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c'
depends_on 'libxml2'
def self.build
system "./configure CFLAGS=\" -fPIC\" --without-python"
......
require 'package'
class Libxtrans < Package
description 'transpot library for the X window system'
homepage 'https://x.org'
version '1.3.5'
source_url 'https://www.x.org/archive/individual/lib/xtrans-1.3.5.tar.gz'
source_sha256 'b7a577c1b6c75030145e53b4793db9c88f9359ac49e7d771d4385d21b3e5945d'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Libxvid < Package
homepage 'https://www.xvid.com/'
version '1.3.4'
source_url 'http://downloads.xvid.org/downloads/xvidcore-1.3.4.tar.gz'
source_sha1 'd8f58e35ec325ebd7de9a28440b725a40ea49dae'
source_sha256 '4e9fd62728885855bc5007fe1be58df42e5e274497591fec37249e1052ae316f'
depends_on 'yasm'
......
......@@ -5,9 +5,9 @@ class Links < Package
homepage 'http://www.jikos.cz/~mikulas/links/'
version '1.03'
source_url 'http://www.jikos.cz/~mikulas/links/download/links-1.03.tar.gz'
source_sha1 '659b2492c97a1416855d3e0f5a5f18aed5160b8a'
source_sha256 '32443c6f011216a8a43ed0806d9d23c1defdd19bc4b021ee00cda197782e175a'
depends_on "openssl"
depends_on 'openssl'
def self.build
system "./configure --prefix=/usr/local"
......@@ -15,6 +15,6 @@ class Links < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,17 +3,17 @@ require 'package'
class Linuxheaders < Package
description 'Linux headers for Chrome OS.'
homepage ''
version '3.18-cc1.3'
version '3.18-2'
binary_url ({
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/linux-headers-3.18-cc1.3-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/linux-headers-3.18-cc1.3-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/linux-headers-3.18-cc1.3-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/linux-headers-3.18-cc1.3-chromeos-x86_64.tar.xz',
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/linux-headers-3.18-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/linux-headers-3.18-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/linux-headers-3.18-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/linux-headers-3.18-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
aarch64: '4f7c1df409b416735d8d2bfbbc62cb57f3ca5d80',
armv7l: '4f7c1df409b416735d8d2bfbbc62cb57f3ca5d80',
i686: '0c8190aa192db06772a6d125c1e22ef2ec11e996',
x86_64: 'aee9c675d1f51268c16273d3ba3bd73334783072',
binary_sha256 ({
aarch64: '811e1bfa4d83e866ac7625c6970d7289b8768bf30b18af8a3b79c0760dfa42af',
armv7l: '811e1bfa4d83e866ac7625c6970d7289b8768bf30b18af8a3b79c0760dfa42af',
i686: '8ee5c68467cb5e7994993cddf163d59cb61a5f7d70f5bc595cb3fe288131ae59',
x86_64: '830b18e54ebd6a2c8701c5ea1efd883e345719770de34ad0ece2f7cfb904df6f',
})
end
......@@ -5,11 +5,11 @@ class Lldb < Package
homepage 'http://lldb.llvm.org/'
version '3.6'
binary_url ({
i686: "https://www.dropbox.com/s/bls4hv4z8m2ifsc/lldb-3.6-i386.tar.gz?dl=0",
x86_64: "https://www.dropbox.com/s/zi3rzdmz2awu8u8/lldb-3.6-64x.tar.gz?dl=0"
i686: 'https://www.dropbox.com/s/bls4hv4z8m2ifsc/lldb-3.6-i386.tar.gz?dl=0',
x86_64: 'https://www.dropbox.com/s/zi3rzdmz2awu8u8/lldb-3.6-64x.tar.gz?dl=0'
})
binary_sha1 ({
i686: "de6ca73c1bcc0d72db81d14cd4e31b8f479e12e8",
x86_64: "6265cacf22b191e22a439019b4a2eb0ef7df3813"
binary_sha256 ({
i686: '7bdb9d0078aa0a6bd1d56df24e076a007a80274dbd0870b7d81a4a9767da49b2',
x86_64: 'ac81a42662a1fde6b6a0dfb9e81be93deefc4ef78f80e67114dfc6fcaf65f4fa'
})
end
......@@ -5,7 +5,7 @@ class Llvm < Package
homepage 'http://llvm.org/'
version '3.8.1-1'
source_url 'http://llvm.org/releases/3.8.1/llvm-3.8.1.src.tar.xz'
source_sha1 'e0c48c4c182424b99999367d688cd8ce7876827b'
source_sha256 '6e82ce4adb54ff3afc18053d6981b6aed1406751b8742582ed50f04b5ab475f9'
depends_on 'buildessential'
depends_on 'cmake'
......@@ -13,7 +13,7 @@ class Llvm < Package
def self.build
system "mkdir mybuilddir"
Dir.chdir "mybuilddir" do
system "cmake .."
system "cmake .. -DLLVM_BUILD_LLVM_DYLIB=true"
system "cmake --build ."
end
end
......@@ -21,6 +21,6 @@ class Llvm < Package
def self.install
Dir.chdir "mybuilddir" do
system "cmake -DCMAKE_INSTALL_PREFIX=#{CREW_DEST_DIR}/usr/local -P cmake_install.cmake"
end
end
end
end
require 'package'
class Lsb_release < Package
description 'Linux Standard Base'
homepage 'https://wiki.linuxfoundation.org/lsb/start'
version '1.4'
source_url 'https://downloads.sourceforge.net/project/lsb/lsb_release/1.4/lsb-release-1.4.tar.gz'
source_sha256 '99321288f8d62e7a1d485b7c6bdccf06766fb8ca603c6195806e4457fdf17172'
depends_on 'help2man'
def self.build
system "cp /etc/lsb-release /tmp"
system 'STR=$(grep ^CHROMEOS_RELEASE_NAME= /tmp/lsb-release | cut -d= -f2) && sed -i "s,$STR,\'&\'," /tmp/lsb-release'
system 'STR=$(grep ^CHROMEOS_RELEASE_BUILD_TYPE= /tmp/lsb-release | cut -d= -f2) && sed -i "s,$STR$,\'&\'," /tmp/lsb-release'
system 'STR=$(grep ^CHROMEOS_RELEASE_DESCRIPTION= /tmp/lsb-release | cut -d= -f2) && sed -i "s,$STR,\'&\'," /tmp/lsb-release'
system "sed -i 's,INFO_ROOT=\"/etc\",INFO_ROOT=\"/usr/local/etc\",' lsb_release"
system "sed -i 's,LSB_VERSION=\$MSG_NA,LSB_VERSION=1.4,' lsb_release"
system "sed -i 's,DISTRIB_ID,CHROMEOS_RELEASE_NAME,g' lsb_release"
system "sed -i 's,DISTRIB_DESCRIPTION,CHROMEOS_RELEASE_DESCRIPTION,g' lsb_release"
system "sed -i 's,DISTRIB_RELEASE,CHROMEOS_RELEASE_VERSION,g' lsb_release"
system "sed -i 's,DISTRIB_CODENAME,CHROMEOS_RELEASE_BOARD,g' lsb_release"
system "sed -i 's,echo -e,echo,g' lsb_release"
system "sed -i 's,--include,-i,' Makefile"
system "sed -i 's,./help2man,help2man,' Makefile"
system "sed -i 's,--alt_version_key=program_version ,,' Makefile"
system 'make'
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/etc"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/man/man1"
system "cp lsb_release #{CREW_DEST_DIR}/usr/local/bin"
system "cp /tmp/lsb-release #{CREW_DEST_DIR}/usr/local/etc"
system "cp lsb_release.1.gz #{CREW_DEST_DIR}/usr/local/man/man1"
end
end
......@@ -3,9 +3,9 @@ require 'package'
class Lshw < Package
description 'lshw (Hardware Lister) is a small tool to provide detailed information on the hardware configuration of the machine.'
homepage 'https://www.ezix.org/project/wiki/HardwareLiSter'
version 'B.02.18'
version 'B.02.18'
source_url 'http://www.ezix.org/software/files/lshw-B.02.18.tar.gz'
source_sha1 'c0240f5e53cf40769d52e316719e8010ea6bdea3'
source_sha256 'ae22ef11c934364be4fd2a0a1a7aadf4495a0251ec6979da280d342a89ca3c2f'
def self.build
system "cd lshw-*/src; PREFIX=/usr/local make"
......
......@@ -5,7 +5,7 @@ class Lua < Package
homepage 'https://www.lua.org/'
version '5.3.4'
source_url 'https://www.lua.org/ftp/lua-5.3.4.tar.gz'
source_sha1 '79790cfd40e09ba796b01a571d4d63b52b1cd950'
source_sha256 'f681aa518233bc407e23acf0f5887c884f17436f000d453b2491a9f11a52400c'
depends_on 'readline'
depends_on 'ncurses'
......
require 'package'
class Luajit < Package
description 'LuaJIT is a Just-In-Time Compiler (JIT) for the Lua programming language.'
homepage 'http://luajit.org/'
version '2.0.5'
source_url 'http://luajit.org/download/LuaJIT-2.0.5.tar.gz'
source_sha256 '874b1f8297c697821f561f9b73b57ffd419ed8f4278c82e05b48806d30c1e979'
binary_url ({
x86_64: 'https://github.com/yancouto/chromebrew/releases/download/bin/luajit-2.0.5-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
x86_64: 'bba89cae837d6e88a4f1b9dcaa135ef4af1d6ecbd20358c33b034813a51597b4'
})
depends_on 'buildessential' => :build
def self.build
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Lynis < Package
description 'Lynis is a security auditing tool for UNIX derivatives like Linux, macOS, BSD, Solaris, AIX, and others.'
homepage 'https://cisofy.com/download/lynis/'
version '2.5.1'
source_url 'https://cisofy.com/files/lynis-2.5.1.tar.gz'
source_sha256 '7a09c6fc71c65d572ca702df7b4394d71f9037484062ef71b76f59a2c498b029'
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/man/man8"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/share/lynis"
system "cp -r . #{CREW_DEST_DIR}/usr/local/share/lynis"
system "cp lynis.8 #{CREW_DEST_DIR}/usr/local/man/man8"
system "echo '#!/bin/bash' > lynis"
system "echo 'PWD=\$(pwd)' >> lynis"
system "echo 'cd /usr/local/share/lynis' >> lynis"
system "echo './lynis \$1 \$2 \$3 \$4 \$5 \$6 \$7 \$8 \$9' >> lynis"
system "echo 'cd \$PWD' >> lynis"
system "chmod +x lynis"
system "cp lynis #{CREW_DEST_DIR}/usr/local/bin"
end
end
......@@ -3,19 +3,15 @@ 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'
version '1.7.5-1'
source_url 'https://github.com/lz4/lz4/archive/v1.7.5.tar.gz'
source_sha1 'a710a7d45beb0951806d2b98f0c1739107e97c14'
source_sha256 '0190cacd63022ccb86f44fa5041dc6c3804407ad61550ca21c382827319e7e7e'
def self.build
if `uname -m`.strip == "x86_64"
system "make", "PREFIX=/usr/local", "libdir=/usr/local/lib64"
else
system "make", "PREFIX=/usr/local", "libdir=/usr/local/lib"
end
system "make", "BUILD_STATIC=no"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "BUILD_STATIC=no", "DESTDIR=#{CREW_DEST_DIR}", "LIBDIR=#{CREW_LIB_PREFIX}", "install"
end
end
......@@ -5,7 +5,7 @@ class Lzip < Package
homepage 'http://www.nongnu.org/lzip/lzip.html'
version '1.19-1'
source_url 'http://download.savannah.gnu.org/releases/lzip/lzip-1.19.tar.gz'
source_sha1 'c6042a786b69e3209112fa991806e2e7e0ba5f07'
source_sha256 'ffadc4f56be1bc0d3ae155ec4527bd003133bdc703a753b2cc683f610e646ba9'
def self.build
# default -O2 cause run-time segmentation fault on armv7l
......@@ -14,7 +14,7 @@ class Lzip < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
......@@ -5,7 +5,7 @@ class M4 < Package
homepage 'https://www.gnu.org/software/m4/'
version '1.4.18'
source_url 'https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.xz'
source_sha1 '228604686ca23f42e48b98930babeb5d217f1899'
source_sha256 'f2c1e86ca0a404ff281631bdc8377638992744b175afb806e25871a24a934e07'
depends_on 'libsigsegv'
......@@ -15,7 +15,7 @@ class M4 < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
......@@ -3,9 +3,9 @@ require 'package'
class Make < Package
description 'GNU Make is a tool which controls the generation of executables and other non-source files of a program from the program\'s source files.'
homepage 'https://www.gnu.org/software/make/'
version '4.2'
source_url 'ftp://ftp.gnu.org/gnu/make/make-4.2.tar.bz2'
source_sha1 'd78b84a219b4c16593544f541dff7eb765ce3d74'
version '4.2.1'
source_url 'https://ftp.gnu.org/gnu/make/make-4.2.1.tar.bz2'
source_sha256 'd6e262bf3601b42d2b1e4ef8310029e1dcf20083c5446b4b7aa67081fdffc589'
depends_on 'gcc' => :build
depends_on 'linuxheaders' => :build
......@@ -16,7 +16,7 @@ class Make < Package
end
def self.install
system "./make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "./make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
......@@ -3,9 +3,9 @@ require 'package'
class Mandb < Package
description 'mandb is used to initialise or manually update index database caches that are usually maintained by man.'
homepage 'http://savannah.nongnu.org/projects/man-db'
version '2.7.6.1'
version '2.7.6.1-1'
source_url 'http://download.savannah.gnu.org/releases/man-db/man-db-2.7.6.1.tar.xz'
source_sha1 '919dcb34d604faac9b18a38ead07f457d0dab501'
source_sha256 '08edbc52f24aca3eebac429b5444efd48b9b90b9b84ca0ed5507e5c13ed10f3f'
depends_on 'less'
depends_on 'libpipeline'
......@@ -13,6 +13,7 @@ class Mandb < Package
depends_on 'groff'
depends_on 'pkgconfig'
depends_on 'readline'
depends_on 'zlibpkg'
def self.build
system './configure',
......@@ -20,16 +21,33 @@ class Mandb < Package
'--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'
system "find . -name 'lib*.so*' -print | xargs strip -S"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/cache/man"
system "sed -i 's,/var/cache/man,/usr/local/cache/man,g' include/manconfig.h.in"
system "sed -i 's,/var/cache/man,/usr/local/cache/man,g' src/manp.c"
system "sed -i 's,/var/cache/man,/usr/local/cache/man,g' src/tests/mandb-7"
system "sed -i 's,/var/cache/man,/usr/local/cache/man,g' src/man_db.conf.in"
system "sed -i 's,/var/cache/man,/usr/local/cache/man,g' init/systemd/man-db.conf"
system "sed -i 's,/var/cache/man,/usr/local/cache/man,g' manual/db.me"
system "sed -i 's,/var/cache/man,/usr/local/cache/man,g' manual/files.me"
system "sed -i 's,/var/cache/man,/usr/local/cache/man,g' man/man1/whatis.man1"
system "sed -i 's,/var/cache/man,/usr/local/cache/man,g' man/man1/apropos.man1"
system "sed -i 's,/var/cache/man,/usr/local/cache/man,g' man/man1/man.man1"
system "sed -i 's,/var/cache/man,/usr/local/cache/man,g' man/man8/accessdb.man8"
system "sed -i 's,/var/cache/man,/usr/local/cache/man,g' man/man8/mandb.man8"
system "sed -i 's,/usr/share/man,/usr/local/share/man,g' tools/chconfig"
system "sed -i 's,/var/cache/man,/usr/local/cache/man,g' tools/chconfig"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
puts ""
puts "You will have to change the default PAGER environment variable to be able to use mandb:"
puts "echo \"export PAGER=/usr/local/bin/less\" >> ~/.bashrc && . ~/.bashrc"
puts "You will have to change the default PAGER environment variable to be able to use mandb:".lightblue
puts "echo \"export PAGER=/usr/local/bin/less\" >> ~/.bashrc && . ~/.bashrc".lightblue
puts ""
puts "You will also have to set the MANPATH environment variable:".lightblue
puts "echo \"export MANPATH=/usr/local/man:$MANPATH\" >> ~/.bashrc && . ~/.bashrc".lightblue
puts ""
puts "To create the man databases and get apropos working, type 'mandb -c'.".lightblue
puts ""
puts "You will also have to set the MANPATH environment variable:"
puts "echo \"export MANPATH=/usr/local/man:$MANPATH\" >> ~/.bashrc && . ~/.bashrc"
end
end
require 'package'
class Manpages < Package
description 'The Linux man-pages project documents the Linux kernel and C library interfaces that are employed by user-space programs.'
homepage 'https://www.kernel.org/doc/man-pages/'
version '4.12'
source_url 'https://www.kernel.org/pub/linux/docs/man-pages/man-pages-4.12.tar.xz'
source_sha256 '6f6d79d991fed04e16e7c7a15705304b0b9d51de772c51c57428555039fbe093'
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "prefix=/usr/local", "install"
puts "Try 'man printf' to see if it works. You should have package 'mandb' installed.".lightblue
end
end
......@@ -3,19 +3,41 @@ require 'package'
class Mapserver < Package
description 'MapServer is an Open Source platform for publishing spatial data and interactive mapping applications to the web.'
homepage 'http://mapserver.org/'
version '7.0.4'
source_url 'http://download.osgeo.org/mapserver/mapserver-7.0.4.tar.gz'
source_sha1 '8fb13c27da5902e6d9ad50f3eba550bd90750607'
version '7.0.6'
source_url 'http://download.osgeo.org/mapserver/mapserver-7.0.6.tar.gz'
source_sha256 'dcbebd62976deef1490b084d8f6a0b2f2a1a25407efb6e058390025375539507'
depends_on 'cmake'
depends_on 'freetype'
depends_on 'cairo'
depends_on 'curl'
depends_on 'fribidi'
depends_on 'gdal'
depends_on 'geos'
depends_on 'glib'
depends_on 'harfbuzz'
depends_on 'libjpeg'
depends_on 'proj4'
def self.build
system "mkdir build"
Dir.chdir "build" do
system "cmake -DWITH_THREAD_SAFETY=1 -DWITH_HARFBUZZ=0 -DWITH_FRIBIDI=0 -DWITH_FCGI=0 -DWITH_POSTGIS=0 -DWITH_GIF=0 -DWITH_CLIENT_WFS=1 -DWITH_CLIENT_WMS=1 -DWITH_CURL=1 -DCMAKE_C_FLAGS=\" -fPIC\" -DCMAKE_INSTALL_PREFIX=/usr/local .. > ../configure.out.txt"
system "cmake \
-DFRIBIDI_INCLUDE_DIR=`pkg-config fribidi --cflags-only-I|sed -e 's/^-I//' -e 's/ -I/;/g'` \
-DWITH_CLIENT_WFS=1 \
-DWITH_CLIENT_WMS=1 \
-DWITH_CURL=1 \
-DWITH_FCGI=0 \
-DWITH_FRIBIDI=1 \
-DWITH_GDAL=1 \
-DWITH_GIF=0 \
-DWITH_HARFBUZZ=1 \
-DWITH_OGR=1 \
-DWITH_POSTGIS=0 \
-DWITH_PROJ=1 \
-DWITH_THREAD_SAFETY=1 \
-DWITH_WCS=1 \
-DCMAKE_C_FLAGS=\" -fPIC\" \
-DCMAKE_INSTALL_PREFIX=/usr/local .. > ../configure.out.txt"
system "make"
end
end
......
require 'package'
class Masscan < Package
description 'TCP port scanner, spews SYN packets asynchronously, scanning entire
Internet in under 5 minutes.'
homepage 'https://github.com/robertdavidgraham/masscan'
version '1.0.4'
source_url 'https://github.com/robertdavidgraham/masscan/archive/1.0.4.tar.gz'
source_sha256 '51de345f677f46595fc3bd747bfb61bc9ff130adcbec48f3401f8057c8702af9'
depends_on 'libpcap'
def self.build
system "make"
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp bin/masscan #{CREW_DEST_DIR}/usr/local/bin"
end
end
......@@ -3,9 +3,9 @@ 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.4.34'
source_url 'https://memcached.org/files/memcached-1.4.34.tar.gz'
source_sha1 '7c7214f5183c6e20c22b243e21ed1ffddb91497e'
version '1.5.0'
source_url 'https://memcached.org/files/memcached-1.5.0.tar.gz'
source_sha256 'c001f812024bb461b5e4d7d0506daab63dff9614eea26f46536c3b7e1e601c32'
depends_on 'libevent'
......
......@@ -3,33 +3,34 @@ require 'package'
class Mercurial < Package
description 'Mercurial is a free, distributed source control management tool. It efficiently handles projects of any size and offers an easy and intuitive interface.'
homepage 'https://www.mercurial-scm.org/'
version '4.1'
source_url 'https://www.mercurial-scm.org/release/mercurial-4.1.tar.gz'
source_sha1 'd5f88e05cbbd8f13dd5fc4004433f54435fc27c8'
version '4.2.2'
source_url 'https://www.mercurial-scm.org/release/mercurial-4.2.2.tar.gz'
source_sha256 'b20132dec5ae6d27ee43a133144069895befe09f7e454bfa9e39950a185f0afe'
# what's the best route for adding a minimum version symbol as a constraint?
depends_on "python27"
def self.build
# would be great to avoid even downloading the source tarball if this dependency wasn't met
# would be great to avoid even downloading the source tarball if this dependency wasn't met
py_ver = %x[python -V 2>&1 | awk '{ print $2 }'].strip
abort '[!] python 2.7.13 or higher is required for tig, please run `crew upgrade python27` first.' unless py_ver > '2.7.12'
if !%x[pip list | grep docutils].include? "docutils"
puts "Installing docutils dependency..."
system "sudo", "pip", "install", "docutils"
system "pip", "install", "docutils"
end
system "make", "PREFIX=/usr/local", "all"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
puts "------------------"
puts "Installation success!"
puts "Installation success!".lightgreen
puts "Cleaning up dependencies only required for build..."
system "sudo", "pip", "uninstall", "docutils"
system "pip", "uninstall", "docutils"
puts
puts "To begin using mercurial you'll need to configure it."
puts "To begin using mercurial, you'll need to configure it.".lightblue
puts
puts "Run `hg debuginstall` and address any issues that it reports.".lightblue
puts
puts "Run `hg debuginstall` and address any issues that it reports."
end
end
require 'package'
class Mesa < Package
description 'Open-source implementation of the OpenGL specification'
homepage 'https://www.mesa3d.org'
version '17.1.5'
source_url 'ftp://ftp.freedesktop.org/pub/mesa/mesa-17.1.5.tar.xz'
source_sha256 '378516b171712687aace4c7ea8b37c85895231d7a6d61e1e27362cf6034fded9'
depends_on 'libdrm'
depends_on 'xorg_proto'
depends_on 'libx11'
depends_on 'libxext'
depends_on 'libxfixes'
depends_on 'libxdamage'
depends_on 'libxcb'
depends_on 'libxtrans'
depends_on 'libxkbfile'
depends_on 'wayland'
def self.build
system "./configure --enable-gles2 --with-egl-platforms=x11,wayland,drm --enable-gbm --enable-shared-glapi --with-gallium-drivers=swrast --disable-dri3"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Metasploit < Package
description 'The Metasploit Framework is a tool for developing and executing exploit code against a remote target machine.'
homepage 'https://www.metasploit.com/'
version '4.14.28'
source_url 'https://github.com/rapid7/metasploit-framework/archive/4.14.28.tar.gz'
source_sha256 'f2bc048542d7cbba16308b5a987718428825b5f00df7e5245543598d9d42a169'
depends_on 'ruby'
depends_on 'readline'
depends_on 'openssl'
depends_on 'libpcap'
depends_on 'postgres'
depends_on 'sqlite'
depends_on 'libxslt'
depends_on 'libxml2'
depends_on 'bison'
def self.build
system "gem install bundler --conservative"
system "NOKOGIRI_USE_SYSTEM_LIBRARIES=1"
system "bundle install"
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/share/metasploit-framework/"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp -r * #{CREW_DEST_DIR}/usr/local/share/metasploit-framework"
system "ln -s /usr/local/share/metasploit-framework/msfconsole #{CREW_DEST_DIR}/usr/local/bin/msfconsole"
system "ln -s /usr/local/share/metasploit-framework/msfd #{CREW_DEST_DIR}/usr/local/bin/msfd"
system "ln -s /usr/local/share/metasploit-framework/msfrpc #{CREW_DEST_DIR}/usr/local/bin/msfrpc"
system "ln -s /usr/local/share/metasploit-framework/msfrpcd #{CREW_DEST_DIR}/usr/local/bin/msfrpcd"
system "ln -s /usr/local/share/metasploit-framework/msfupdate #{CREW_DEST_DIR}/usr/local/bin/msfupdate" # Doesn't work, but I symlinked it anyway
system "ln -s /usr/local/share/metasploit-framework/msfvenom #{CREW_DEST_DIR}/usr/local/bin/msfvenom"
end
end
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'
depends_on 'cbase'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,12 +5,12 @@ class Mlocate < Package
homepage 'https://pagure.io/mlocate'
version '0.26-1'
source_url 'https://releases.pagure.org/mlocate/mlocate-0.26.tar.xz'
source_sha1 'c6e6d81b25359c51c545f4b8ba0f3b469227fcbc'
source_sha256 '3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e'
def self.build
system "mkdir -p /usr/local/db/mlocate"
system "sed -i 's,\$(localstatedir)/,/usr/local/db/,g' Makefile.*"
system "sed -i \"s/groupname = mlocate/groupname = $(whoami)/g\" Makefile.*"
system "sed -i \"s/groupname = mlocate/groupname = #{USER}/g\" Makefile.*"
system "./configure"
system "make"
end
......
......@@ -3,13 +3,64 @@ require 'package'
class Mongodb < Package
description 'MongoDB is the next-generation database that lets you create applications never before possible.'
homepage 'https://www.mongodb.com/'
version '3.0.8'
binary_url ({
i686: "https://www.dropbox.com/s/n32v3h34jswxhg7/mongodb-linux-i686-3.0.8.tar.gz?dl=0",
x86_64: "https://www.dropbox.com/s/two0chqyim5eo4a/mongodb-linux-x86_64-3.0.8.tar.gz?dl=0"
})
binary_sha1 ({
i686: "71fd4324ce91352416eea83149432b953928306e",
x86_64: "fdbf8ad9207dc5fd31af0113e9c00e02521e9101"
})
end
\ No newline at end of file
# We use 3.2 branch here since:
# - 3.2 branch works well with gcc-4.9.4
# - master 3.4 branch requires gcc-5.4.0
version '3.2.16'
source_url 'https://fastdl.mongodb.org/src/mongodb-src-r3.2.16.tar.gz'
source_sha256 '7a8b1b16f3fa545af16f48aeef1f918f57d96a80e1ceb6e669cdb81fab6511d0'
depends_on 'openssl' => :build
depends_on 'libpcap' => :build
depends_on 'python27' => :build
depends_on 'scons' => :build
depends_on 'go' => :build
depends_on 'git' => :build
case ARCH
when 'armv7l', 'aarch64'
depends_on 'perl' => :build # gen-config.sh uses perl
end
def self.build
# prepare mongo-tools
system "git clone https://github.com/mongodb/mongo-tools"
system "cd mongo-tools; ./build.sh ssl || echo '***YOU NEED TO SET UP GO ENVIRONMENT IN ORDER TO COMPILE MONGO-TOOLS***'"
system "mkdir src/mongo-tools"
system "cp mongo-tools/bin/* src/mongo-tools/"
system "rm -rf mongo-tools"
end
def self.install
# build mongo and install it at once
case ARCH
when 'x86_64'
system "scons -j#{CREW_NPROC} install --ssl --prefix=#{CREW_DEST_DIR}#{CREW_PREFIX} --use-new-tools"
when 'i686'
system "scons -j#{CREW_NPROC} install --ssl --wiredtiger=off --prefix=#{CREW_DEST_DIR}#{CREW_PREFIX} --use-new-tools"
when 'armv7l'
# Arm 32 bit architecture is not supported officaially.
# Please read https://groups.google.com/forum/#!msg/mongodb-dev/G-kGjZEEam0/VSVB9fYCBAAJ for details
system "cd src/third_party/mozjs-38/; ./get_sources.sh"
system "cd src/third_party/mozjs-38/; ./gen-config.sh arm linux"
system "cd src/third_party/mozjs-38/; rm -rf firefix* mozilla-release"
system "scons -j#{CREW_NPROC} install --ssl --wiredtiger=off --mmapv1=on --prefix=#{CREW_DEST_DIR}#{CREW_PREFIX} --use-new-tools"
when 'aarch64'
# Arm 64 bit architecture is supported, but Chrome OS aarch64 is 32 bit.
# So, it is required to pretend it is armv7l.
system "cd src/third_party/mozjs-38/; ./get_sources.sh"
system "cd src/third_party/mozjs-38/; ./gen-config.sh arm linux"
system "cd src/third_party/mozjs-38/; rm -rf firefix* mozilla-release"
# Not sure how to pretend it under scons
system "scons -j#{CREW_NPROC} install --ssl --wiredtiger=off --mmapv1=on --prefix=#{CREW_DEST_DIR}#{CREW_PREFIX} --use-new-tools"
end
# guide messages
puts "type `mkdir #{CREW_PREFIX}/lib/mongodb` to create directory for database"
case ARCH
when 'x86_64'
puts "type `mongod --dbpath=#{CREW_PREFIX}/lib/mongodb` to start server"
when 'i686','armv7l', 'aarch64'
puts "type `mongod --dbpath=#{CREW_PREFIX}/lib/mongodb --storageEngine=mmapv1` to start server"
end
end
end
......@@ -3,9 +3,9 @@ require 'package'
class Mono < Package
description 'Mono is a software platform designed to allow developers to easily create cross platform applications part of the .NET Foundation.'
homepage 'http://www.mono-project.com/'
version '4.4.0.148-1'
source_url 'http://download.mono-project.com/sources/mono/mono-4.4.0.148.tar.bz2'
source_sha1 '8da7726b7c09df97856b55eda062356666928d35'
version '5.4.0.135'
source_url 'http://download.mono-project.com/sources/mono/mono-5.4.0.135.tar.bz2'
source_sha256 '561af157ece41f0fc54dc3812bcbef6a04927274508104621b04fda810387ade'
def self.build
system "./configure","--disable-dependency-tracking","--disable-silent-rules","--enable-nls=no","--prefix=/usr/local"
......
......@@ -5,7 +5,7 @@ class Moonbuggy < Package
homepage 'http://www.seehuhn.de/pages/moon-buggy'
version '1.0.51'
source_url 'http://m.seehuhn.de/programs/moon-buggy-1.0.51.tar.gz'
source_sha1 '7f1c5df99944acfe98eeb5f8d5ab6f28ef61ee7e'
source_sha256 '352dc16ccae4c66f1e87ab071e6a4ebeb94ff4e4f744ce1b12a769d02fe5d23f'
depends_on 'ncurses'
......
......@@ -5,7 +5,7 @@ class Moreutils < Package
homepage 'https://joeyh.name/code/moreutils/'
version '0.60'
source_url 'http://http.debian.net/debian/pool/main/m/moreutils/moreutils_0.60.orig.tar.xz'
source_sha1 '3af60490f763ece48b2fcba968903673c3e63495'
source_sha256 'e42d18bacbd2d003779a55fb3542befa5d1d217ee37c1874e8c497581ebc17c5'
depends_on 'docbook'
depends_on 'libxslt'
......
......@@ -3,9 +3,9 @@ require 'package'
class Mosh < Package
description 'Remote terminal application that allows roaming, supports intermittent connectivity, and provides intelligent local echo and line editing of user keystrokes.'
homepage 'https://mosh.org/'
version '1.3.0'
source_url 'https://mosh.org/mosh-1.3.0.tar.gz'
source_sha1 '846698806d940c84028c04f68e289e31d9540d5f'
version '1.3.2'
source_url 'https://mosh.org/mosh-1.3.2.tar.gz'
source_sha256 'da600573dfa827d88ce114e0fed30210689381bbdcff543c931e4d6a2e851216'
depends_on 'protobuf'
......@@ -15,6 +15,6 @@ class Mosh < Package
end
def self.install
system 'make install'
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,17 +3,17 @@ require 'package'
class Mpc < Package
description 'Gnu Mpc is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result.'
homepage 'http://www.multiprecision.org/'
version '1.0.3-cc1.3'
version '1.0.3-2'
binary_url ({
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/mpc-1.0.3-cc1.3-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/mpc-1.0.3-cc1.3-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/mpc-1.0.3-cc1.3-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/mpc-1.0.3-cc1.3-chromeos-x86_64.tar.xz',
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/mpc-1.0.3-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/mpc-1.0.3-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/mpc-1.0.3-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/mpc-1.0.3-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
aarch64: 'd1f6e5d521f1807accca245cecf2ccc56c29c96d',
armv7l: 'd1f6e5d521f1807accca245cecf2ccc56c29c96d',
i686: 'd7fcd41e92b637220208e136207d1095237f3ac1',
x86_64: 'fcc7bc8f7a4f9956f801af84e4104e565dd8b285',
binary_sha256 ({
aarch64: '49795b457852098b34964c768bc4f5fa852c2c40e72f4e856437301f36edb3fd',
armv7l: '49795b457852098b34964c768bc4f5fa852c2c40e72f4e856437301f36edb3fd',
i686: 'efec8e5ab8dac926546dabda0ff8b32fe30d85ff2a7c1ab44bdb3d58ad49d19b',
x86_64: 'b9b26abf315efce1b826f58e70795493d7ed503652486bc3766ac54dfa5d0a35',
})
end
......@@ -3,17 +3,17 @@ require 'package'
class Mpfr < Package
description 'The MPFR library is a C library for multiple-precision floating-point computations with correct rounding.'
homepage 'http://www.mpfr.org/'
version '3.1.5-cc1.3'
version '3.1.5-2'
binary_url ({
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/mpfr-3.1.5-cc1.3-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/mpfr-3.1.5-cc1.3-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/mpfr-3.1.5-cc1.3-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.3/mpfr-3.1.5-cc1.3-chromeos-x86_64.tar.xz',
aarch64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/mpfr-3.1.5-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/mpfr-3.1.5-chromeos-armv7l.tar.xz',
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/mpfr-3.1.5-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.8/mpfr-3.1.5-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
aarch64: 'd201c3e9c7fa3d483e93cb967e9ae78b4578868b',
armv7l: 'd201c3e9c7fa3d483e93cb967e9ae78b4578868b',
i686: '71569b4f88e852d0a6734b2be8e200f52248a7fe',
x86_64: '7d434ebe762b004d9f822f5baa21b9c9f37452b0',
binary_sha256 ({
aarch64: '41170f3c49ea226df739d90bb633895dc0479d855acece2cd96d1bb24818202a',
armv7l: '41170f3c49ea226df739d90bb633895dc0479d855acece2cd96d1bb24818202a',
i686: '341e8109fbfc376883e5eeb649561897958a8cbf92ba3dc73ca7da5e52fa7e63',
x86_64: '5e9fe71170cc82e1d789ee9aecf568b70f4f9694f2c945a6c04ae573bf0509a2',
})
end
require 'package'
class Mtdev < Package
description 'The mtdev is a stand-alone library which transforms all variants of kernel MT events to the slotted type B protocol.'
homepage 'http://bitmath.org/code/mtdev'
version '1.1.5'
source_url 'http://bitmath.org/code/mtdev/mtdev-1.1.5.tar.bz2'
source_sha256 '6677d5708a7948840de734d8b4675d5980d4561171c5a8e89e54adf7a13eba7f'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Mtools < Package
description 'Mtools is a collection of utilities to access MS-DOS disks from GNU and Unix without mounting them.'
homepage 'https://www.gnu.org/software/mtools/'
version '4.0.18'
source_url 'https://ftp.gnu.org/gnu/mtools/mtools-4.0.18.tar.bz2'
source_sha256 '59e9cf80885399c4f229e5d87e49c0c2bfeec044e1386d59fcd0b0aead6b2f85'
def self.build
system './configure --without-x'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,17 +3,19 @@ require 'package'
class Mutt < Package
description 'Mutt is a small but very powerful text-based mail client for Unix operating systems.'
homepage 'http://mutt.org/'
version '1.8.2'
source_url 'ftp://ftp.mutt.org/pub/mutt/mutt-1.8.2.tar.gz'
source_sha1 'bdac1201de464d63f61a663f3dcf1ee4484dbbb3'
version '1.8.3'
source_url 'ftp://ftp.mutt.org/pub/mutt/mutt-1.8.3.tar.gz'
source_sha256 '9b81746d67ffeca5ea44f60893b70dc93c86d4bc10187d4dd360185e4d42ed42'
depends_on 'libxslt'
def self.build
system 'mkdir /usr/local/mail'
system './configure --with-mailpath=/usr/local/mail --prefix=/usr/local'
system 'make'
end
def self.install
system 'make -i install'
system "mkdir -p #{CREW_DEST_DIR}#{CREW_PREFIX}/mail"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Mywanip < Package
homepage 'https://gist.github.com/DennisLfromGA/ab40940d37be84ae3a88'
version 'ab4094'
source_url 'https://gist.github.com/DennisLfromGA/ab40940d37be84ae3a88/archive/b583835e8b2cb7edefc7ccbb911cb8eaf172d341.zip'
source_sha1 '1c26e5ed07283dbecb5a7cbaae0d9e408bedff89'
source_sha256 '789d22cfa60a40cf60d59e561500cd27e39ac03ecff2e948111a2a07f830fd67'
def self.install
system "chmod +x mywanip"
......
......@@ -3,19 +3,19 @@ require 'package'
class Nano < Package
description 'Nano\'s ANOther editor, an enhanced free Pico clone.'
homepage 'https://www.nano-editor.org/'
version '2.8.4'
source_url 'https://nano-editor.org/dist/v2.8/nano-2.8.4.tar.xz'
source_sha1 '83ac3285e50690205011a822eadb42709c0fb2f3'
version '2.8.6'
source_url 'https://www.nano-editor.org/dist/v2.8/nano-2.8.6.tar.xz'
source_sha256 '9a46962a3ae59db922467a095217ed23280b42d80640f932f3a59ba2a6a85776'
depends_on 'buildessential'
depends_on 'ncurses'
depends_on 'ncurses'
def self.build
system "./configure CPPFLAGS=\"-I/usr/local/include/ncurses\""
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
end
......@@ -5,7 +5,7 @@ class Nanomsg < Package
homepage 'http://nanomsg.org/'
version '1.0,0'
source_url 'https://github.com/nanomsg/nanomsg/archive/1.0.0.tar.gz'
source_sha1 '57f90778a9bb7b95a7fd73910fd41894f3ee9cab'
source_sha256 '24afdeb71b2e362e8a003a7ecc906e1b84fd9f56ce15ec567481d1bb33132cc7'
depends_on 'cmake'
......@@ -15,6 +15,6 @@ class Nanomsg < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,9 +5,9 @@ class Ncdu < Package
homepage 'https://dev.yorhel.nl/ncdu'
version '1.12'
source_url 'https://dev.yorhel.nl/download/ncdu-1.12.tar.gz'
source_sha1 'b79b1c44784f334dca74d89a49f49274f14cfeef'
source_sha256 '820e4e4747a2a2ec7a2e9f06d2f5a353516362c22496a10a9834f871b877499a'
depends_on "ncurses"
depends_on 'ncurses'
def self.build
system "./configure --prefix=/usr/local CPPFLAGS=-I/usr/local/include/ncurses"
......@@ -15,6 +15,6 @@ class Ncdu < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Ncftp < Package
homepage 'http://ncftp.com/ncftp/'
version '3.2.6'
source_url 'ftp://ftp.ncftp.com/ncftp/ncftp-3.2.6-src.tar.gz'
source_sha1 'e2351802b40db18d6cbab2537a9644cd858b934d'
source_sha256 '129e5954850290da98af012559e6743de193de0012e972ff939df9b604f81c23'
depends_on 'buildessential'
......@@ -13,8 +13,8 @@ class Ncftp < Package
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
end
require 'package'
class Ncrack < Package
description "Ncrack is a high-speed network authentication cracking tool."
homepage 'https://nmap.org/ncrack/'
version '0.5'
source_url 'https://nmap.org/ncrack/dist/ncrack-0.5.tar.gz'
source_sha256 'dbad9440c861831836d47ece95aeb2bd40374a3eb03a14dea0fe1bfa73ecd4bc'
depends_on 'buildessential'
def self.build
system './configure --prefix=/usr/local'
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,34 +5,23 @@ class Ncurses < Package
homepage 'https://www.gnu.org/software/ncurses/'
version '6.0-2'
source_url 'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz'
source_sha1 'acd606135a5124905da770803c05f1f20dd3b21c'
source_sha256 'f551c24b30ce8bfb6e96d9f59b42fbea30fa3a6123384172f9e7284bcf647260'
depends_on "diffutils" => :build
depends_on "ncursesw"
depends_on 'diffutils' => :build
depends_on 'ncursesw'
def self.build
system './configure',
'--prefix=/usr/local',
'--without-normal',
'--with-shared',
'--with-cxx-shared',
'--without-debug'
system "make"
'--prefix=/usr/local',
"--libdir=#{CREW_LIB_PREFIX}",
'--without-normal',
'--with-shared',
'--with-cxx-shared',
'--without-debug'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
# strip binaries
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/clear"
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/infocmp"
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/tabs"
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/tic"
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/tput"
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/tset"
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/toe"
# strip libraries here since `make install` re-link libraries again
system "find #{CREW_DEST_DIR}/usr/local -name 'lib*.so.*' -print | xargs strip -S"
end
end
......@@ -5,29 +5,30 @@ class Ncursesw < Package
homepage 'http://www.gnu.org/software/ncurses/'
version '6.0-2'
source_url 'ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.0.tar.gz'
source_sha1 'acd606135a5124905da770803c05f1f20dd3b21c'
source_sha256 'f551c24b30ce8bfb6e96d9f59b42fbea30fa3a6123384172f9e7284bcf647260'
depends_on "diffutils" => :build
depends_on 'diffutils' => :build
def self.build
# Check ncurses doesn't conflict with ncrusesw
if File.exist? CREW_CONFIG_PATH + "meta/ncurses.filelist"
if `grep include/ncursesw #{CREW_CONFIG_PATH}meta/ncurses.filelist` != ''
puts
puts "PLEASE PERFORMS `crew upgrade ncurses` OR `sudo crew remove ncurses` FIRST"
puts
exit 1
puts
puts "PLEASE PERFORM `crew upgrade ncurses` OR `crew remove ncurses` FIRST"
puts
exit 1
end
end
# Build ncursesw
system './configure',
'--prefix=/usr/local',
'--without-normal',
'--with-shared',
'--with-cxx-shared',
'--without-debug',
'--enable-widec'
system "make"
'--prefix=/usr/local',
"--libdir=#{CREW_LIB_PREFIX}",
'--without-normal',
'--with-shared',
'--with-cxx-shared',
'--without-debug',
'--enable-widec'
system 'make'
end
def self.install
......@@ -41,8 +42,5 @@ class Ncursesw < Package
system "rm", "#{CREW_DEST_DIR}/usr/local/bin/tput"
system "rm", "#{CREW_DEST_DIR}/usr/local/bin/tset"
system "rm", "#{CREW_DEST_DIR}/usr/local/bin/toe"
# strip libraries here since `make install` re-link libraries again
system "find #{CREW_DEST_DIR}/usr/local -name 'lib*.so.*' -print | xargs strip -S"
end
end
......@@ -3,9 +3,9 @@ require 'package'
class Neovim < Package
description 'Neovim is a refactor, and sometimes redactor, in the tradition of Vim (which itself derives from Stevie).'
homepage 'https://neovim.io/'
version '0.1.7'
source_url 'https://github.com/neovim/neovim/archive/v0.1.7.tar.gz'
source_sha1 '00e67f981105f1acbe06df1dbea21b6f7fa6d9b8'
version '0.2.0'
source_url 'https://github.com/neovim/neovim/archive/v0.2.0.tar.gz'
source_sha256 '72e263f9d23fe60403d53a52d4c95026b0be428c1b9c02b80ab55166ea3f62b5'
depends_on 'libtool'
depends_on 'autoconf'
......@@ -16,7 +16,7 @@ class Neovim < Package
depends_on 'unzip'
def self.build
system "make"
system "make", "CMAKE_BUILD_TYPE=RelWithDebInfo"
end
def self.install
......
......@@ -5,8 +5,8 @@ class Netcat < Package
homepage 'http://netcat.sourceforge.net/'
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'
source_sha256 '30719c9a4ffbcf15676b8f528233ccc54ee6cba96cb4590975f5fd60c68a066f'
def self.build
system "./configure --prefix=/usr/local"
system "make"
......
......@@ -6,7 +6,7 @@ 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'
source_sha256 'b143a86b5e1baf55c663ae09c2663b169d265e95ac43154982296a1887d05f15'
depends_on 'buildessential'
depends_on 'ncurses'
......@@ -14,22 +14,21 @@ class Nethack4 < Package
depends_on 'flex'
depends_on 'perl'
def self.build
target="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 --config-only -i /usr/local/ --directory-layout=prefix --without=gui"
system "/usr/local/bin/perl ../aimake"
end
end
def self.install
target="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"
system "/usr/local/bin/perl ../aimake --install-only -i #{CREW_DEST_DIR}/usr/local/ --directory-layout=prefix --without=gui"
end
end
end
......@@ -5,7 +5,7 @@ class Nettle < Package
homepage 'http://www.lysator.liu.se/~nisse/nettle/'
version '3.3'
source_url 'https://ftp.gnu.org/gnu/nettle/nettle-3.3.tar.gz'
source_sha1 'bf2b4d3a41192ff6177936d7bc3bee4cebeb86c4'
source_sha256 '46942627d5d0ca11720fec18d81fc38f7ef837ea4197c1f630e71ce0d470b11e'
depends_on 'buildessential'
depends_on 'm4'
......
......@@ -5,7 +5,7 @@ class Newlisp < Package
homepage 'http://www.newlisp.org/'
version '10.7.1'
source_url 'https://github.com/kosh04/newlisp/archive/10.7.1.tar.gz'
source_sha1 '258d88a6c52ecea73da1a7774fa4f53a265da073'
source_sha256 '87e3ea4bd2d42118af44f2f881302af32a990164fb47088bcad0be6dc88c5c48'
#depends_on 'readline'
#depends_on 'libffi'
......
......@@ -3,12 +3,12 @@ require 'package'
class Nginx < Package
description 'nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by Igor Sysoev.'
homepage 'http://nginx.org/'
version '1.11.6-1'
source_url 'http://nginx.org/download/nginx-1.11.6.tar.gz'
source_sha1 '51903b721a5ee721568fc59f0a243df5356a98de'
version '1.13.3'
source_url 'https://nginx.org/download/nginx-1.13.3.tar.gz'
source_sha256 '5b73f98004c302fb8e4a172abf046d9ce77739a82487e4873b39f9b0dcbb0d72'
depends_on 'pcre'
def self.build
system "./configure"
system "make"
......@@ -16,14 +16,27 @@ class Nginx < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "sudo ln -sf /usr/local/nginx/sbin/nginx /usr/local/bin/nginx"
system "echo all NGINX things are in /usr/local/nginx"
system "echo pages are in /usr/local/nginx/html"
system "echo adding bash aliases so you can easily start/stop nginx"
system "echo startnginx starts nginx and stopnginx stops nginx"
system "sed -i \'/^alias startnginx/d\' ~/.bashrc"
system "sed -i \'/^alias stopnginx/d\' ~/.bashrc"
system "sed -i '$ a alias startnginx=\"sudo nginx\"' ~/.bashrc"
system "sed -i '$ a alias stopnginx=\"sudo nginx -s quit\"' ~/.bashrc"
system "mkdir -p #{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
FileUtils.cd("#{CREW_DEST_DIR}#{CREW_PREFIX}/bin") do
system "ln -s #{CREW_PREFIX}/nginx/sbin/nginx nginx"
system "echo '#!/bin/bash' > startnginx"
system "echo 'sudo nginx' >> startnginx"
system "echo '#!/bin/bash' > stopnginx"
system "echo 'sudo nginx -s quit' >> stopnginx"
system "chmod +x st*nginx"
end
puts
puts "All things NGINX are in #{CREW_PREFIX}/nginx.".lightblue
puts
puts "Pages are stored in #{CREW_PREFIX}/nginx/html.".lightblue
puts
puts "Added bash scripts so you can easily start/stop nginx:".lightblue
puts "startnginx - starts nginx".lightblue
puts "stopnginx - stops nginx".lightblue
puts
puts "To completely remove nginx, perform the following:".lightblue
puts "crew remove nginx".lightblue
puts "sudo rm -rf #{CREW_PREFIX}/nginx".lightblue
puts
end
end
require 'package'
class Ninja < Package
description 'a small build system with a focus on speed'
homepage 'https://ninja-build.org'
version '1.7.2'
source_url 'https://github.com/ninja-build/ninja/archive/v1.7.2.tar.gz'
source_sha256 '2edda0a5421ace3cf428309211270772dd35a91af60c96f93f90df6bc41b16d9'
depends_on 'python3'
depends_on 'unzip'
def self.build
system "python3 configure.py --bootstrap"
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp ninja #{CREW_DEST_DIR}/usr/local/bin/"
end
end
......@@ -3,18 +3,18 @@ require 'package'
class Nmap < Package
description 'Nmap (\'Network Mapper\') is a free and open source (license) utility for network discovery and security auditing.'
homepage 'https://nmap.org/'
version '7.50'
source_url 'https://nmap.org/dist/nmap-7.50.tgz'
source_sha1 '9e77da9079489e86db9634e87efbd88500de9c65'
version '7.60'
source_url 'https://nmap.org/dist/nmap-7.60.tar.bz2'
source_sha256 'a8796ecc4fa6c38aad6139d9515dc8113023a82e9d787e5a5fb5fa1b05516f21'
depends_on 'buildessential'
def self.build
system "./configure --with-pcap=linux --without-zenmap"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
end
......@@ -5,7 +5,7 @@ class Node < Package
homepage 'https://nodejs.org/en/'
version '6.11.0'
source_url 'https://nodejs.org/dist/v6.11.0/node-v6.11.0.tar.xz'
source_sha1 '1e408d9981606c5a01f46b4b6c93c0b30fa49d8c'
source_sha256 '02ba35391edea2b294c736489af01954ce6e6c39d318f4423ae6617c69ef0a51'
depends_on 'buildessential'
depends_on 'python27'
......@@ -17,9 +17,12 @@ class Node < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
#Fix Permissiongs for -g installs of node packages
system "sudo chown -R chronos /usr/local/lib/node_modules"
# Fix Permissiongs for -g installs of node packages
system "sudo chown -R chronos /usr/local/bin"
system "sudo chown -R chronos /usr/local/share"
if Dir.exists?('/usr/local/lib/node_modules')
system "sudo chown -R chronos /usr/local/lib/node_modules"
end
end
end
......@@ -3,9 +3,9 @@ require 'package'
class Node_current < Package
description 'As an asynchronous event driven JavaScript runtime, Node is designed to build scalable network applications.'
homepage 'https://nodejs.org/en/'
version '8.1.0'
source_url 'https://nodejs.org/dist/v8.1.0/node-v8.1.0.tar.xz'
source_sha1 '13ed221ed55577beac5203c3c8bfec61af3cad97'
version '8.1.2'
source_url 'https://nodejs.org/dist/v8.1.2/node-v8.1.2.tar.gz'
source_sha256 'd717b364868956e0b775145e57a84e63962a9cf83146e778547fc71bb27a2251'
depends_on 'buildessential'
depends_on 'python27'
......@@ -22,9 +22,12 @@ class Node_current < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
#Fix Permissiongs for -g installs of node packages
system "sudo chown -R chronos /usr/local/lib/node_modules"
# Fix Permissiongs for -g installs of node packages
system "sudo chown -R chronos /usr/local/bin"
system "sudo chown -R chronos /usr/local/share"
if Dir.exists?('/usr/local/lib/node_modules')
system "sudo chown -R chronos /usr/local/lib/node_modules"
end
end
end
require 'package'
class Nodebrew < Package
description 'Node.js version manager'
homepage 'https://github.com/hokaccha/nodebrew'
version 'v0.9.7'
source_url 'https://github.com/hokaccha/nodebrew/archive/v0.9.7.tar.gz'
source_sha256 '3aa8b0cf30024d105f1ac6921aadf0440bc95bcae43df9d6ec58fc9de8cd352e'
depends_on 'perl'
def self.install
system "mkdir -p #{CREW_DEST_DIR}#{CREW_LIB_PREFIX}/nodebrew"
system "NODEBREW_ROOT=#{CREW_DEST_DIR}#{CREW_LIB_PREFIX}/nodebrew perl nodebrew setup > /dev/null"
system "mkdir -p #{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
system "ln -s #{CREW_LIB_PREFIX}/nodebrew/nodebrew #{CREW_DEST_DIR}#{CREW_PREFIX}/bin/"
system "ln -s #{CREW_LIB_PREFIX}/nodebrew/current/bin/node #{CREW_DEST_DIR}#{CREW_PREFIX}/bin/"
system "ln -s #{CREW_LIB_PREFIX}/nodebrew/current/bin/npm #{CREW_DEST_DIR}#{CREW_PREFIX}/bin/"
system "ln -s #{CREW_LIB_PREFIX}/nodebrew/current/bin/npx #{CREW_DEST_DIR}#{CREW_PREFIX}/bin/"
system "ln -s #{CREW_LIB_PREFIX}/nodebrew $HOME/.nodebrew"
puts ""
puts "Please set PATH environment variable."
puts "\texport PATH=$HOME/.nodebrew/current/bin:$PATH"
puts ""
puts "To install the latest node, please execute:"
puts "\tnodebrew install-binary latest"
puts "\tnodebrew use latest"
puts ""
end
end
......@@ -3,9 +3,9 @@ require 'package'
class Npth < Package
description 'nPth is a library to provide the GNU Pth API and thus a non-preemptive threads implementation.'
homepage 'https://www.gnupg.org/related_software/npth/index.html'
version '1.3'
source_url 'https://www.gnupg.org/ftp/gcrypt/npth/npth-1.3.tar.bz2'
source_sha1 '1b21507cfa3f58bdd19ef2f6800ab4cb67729972'
version '1.5'
source_url 'https://www.gnupg.org/ftp/gcrypt/npth/npth-1.5.tar.bz2'
source_sha256 '294a690c1f537b92ed829d867bee537e46be93fbd60b16c04630fbbfcd9db3c2'
def self.build
system "./configure --prefix=/usr/local"
......@@ -13,6 +13,6 @@ class Npth < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Nvm < Package
description 'Node Version Manager - Simple bash script to manage multiple active node.js versions.'
homepage 'https://github.com/creationix/nvm'
version '0.33.2'
source_url 'https://github.com/creationix/nvm/archive/v0.33.2.tar.gz'
source_sha256 '2ad455a0752d5bae49ecff38a8a7778cc734c2d0ece9942dfdd164c2f01e80da'
def self.install
system "sed -i 's,\$HOME/.nvm,/usr/local/share/nvm,g' install.sh"
system "NVM_DIR=/usr/local/share/nvm && bash install.sh"
system "rm -rf /usr/local/share/nvm/.git*"
system "rm -rf /usr/local/share/nvm/test"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/share"
system "cp -r /usr/local/share/nvm #{CREW_DEST_DIR}/usr/local/share"
puts ""
puts "To complete the installation, execute:".lightblue
puts "source ~/.bashrc".lightblue
puts ""
puts "To uninstall, in addition to 'crew remove nvm' you will".lightblue
puts "also need to delete any lines with NVM_DIR in ~/.bashrc.".lightblue
puts ""
end
end
require 'package'
# @todo: provide vpnc-script (standalone), instructions for manual install:
#
# sudo su -
# mkdir /usr/local/etc/vpnc
# cd /usr/local/etc/vpnc
# wget http://git.infradead.org/users/dwmw2/vpnc-scripts.git/blob_plain/HEAD:/vpnc-script
# chmod a+x vpnc-script
# exit
# @todo: provide start-vpn script, instructions for manual connect:
# Usage (as root - run 'sudo su -'):
#
# Create 'tun0' tunnel interface:
#
# > ip tuntap add mode tun tun0
#
# Run openconnect on tun0 interface
#
# > openconnect -i tun0 vpn.example.com
# (Press Ctrl+C to exit)
#
# Shut down tun0 interface
#
# > ip tuntap del mode tun tun0
class Openconnect < Package
version '7.06-1'
version '7.08'
description 'OpenConnect is an SSL VPN client initially created to support Cisco\'s AnyConnect SSL VPN.'
homepage 'http://www.infradead.org/openconnect/'
source_url 'ftp://ftp.infradead.org/pub/openconnect/openconnect-7.06.tar.gz'
source_sha1 '2351408693aab0c6bc97d37e68b4a869fbb217ed'
source_url 'ftp://ftp.infradead.org/pub/openconnect/openconnect-7.08.tar.gz'
source_sha256 '1c44ec1f37a6a025d1ca726b9555649417f1d31a46f747922b84099ace628a03'
depends_on 'buildessential'
depends_on 'libxml2'
depends_on 'gnutls'
depends_on 'vpnc'
def self.build
system "./configure CFLAGS=\" -fPIC\" --with-vpnc-script=/usr/local/etc/vpnc/vpnc-script"
system "./configure CFLAGS=' -fPIC' --with-vpnc-script=#{CREW_PREFIX}/etc/vpnc/vpnc-script"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "mkdir -p #{CREW_DEST_DIR}#{CREW_PREFIX}/bin"
FileUtils.cd("#{CREW_DEST_DIR}#{CREW_PREFIX}/bin") do
system "echo '#!/bin/bash' > vpnc-start"
system "echo 'if test \$1; then' >> vpnc-start"
system "echo ' sudo ip tuntap add mode tun tun0' >> vpnc-start"
system "echo ' read -p \"VPN Username: \" USER' >> vpnc-start"
system "echo ' read -s -p \"VPN Password: \" PASS' >> vpnc-start"
system "echo ' echo \"\$PASS\" | openconnect --user=\$USER --interface=tun0 -b \$1' >> vpnc-start"
system "echo 'else' >> vpnc-start"
system "echo ' echo \"Usage: vpnc-start vpn.example.com\"' >> vpnc-start"
system "echo 'fi' >> vpnc-start"
system "chmod +x vpnc-start"
system "echo '#!/bin/bash' > vpnc-stop"
system "echo 'killall openconnect' >> vpnc-stop"
system "echo 'sudo ip tuntap del mode tun tun0' >> vpnc-stop"
system "chmod +x vpnc-stop"
end
puts
puts "Added the following bash scripts:".lightblue
puts "vpnc-start - start vpn".lightblue
puts "vpnc-stop - stop vpn".lightblue
puts
end
end
......@@ -5,7 +5,7 @@ class Openjpeg < Package
homepage 'https://github.com/uclouvain/openjpeg/'
version '2.1.2'
source_url 'https://github.com/uclouvain/openjpeg/archive/v2.1.2.tar.gz'
source_sha1 'c8671e7f577fdc58abde1e1f32b10d372e6f9b07'
source_sha256 '4ce77b6ef538ef090d9bde1d5eeff8b3069ab56c4906f083475517c2c023dfa7'
depends_on 'cmake'
......
......@@ -3,9 +3,9 @@ require 'package'
class Openldap < Package
description 'OpenLDAP Software is an open source implementation of the Lightweight Directory Access Protocol.'
homepage 'http://www.openldap.org/'
version '2.4.44'
source_url 'ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.44.tgz'
source_sha1 '016a738d050a68d388602a74b5e991035cdba149'
version '2.4.45'
source_url 'ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.45.tgz'
source_sha256 'cdd6cffdebcd95161a73305ec13fc7a78e9707b46ca9f84fb897cd5626df3824'
def self.build
system "./configure --disable-slapd --prefix=/usr/local"
......
......@@ -5,7 +5,7 @@ class Openssh < Package
homepage 'https://www.openssh.com/'
version '7.5'
source_url 'https://github.com/openssh/openssh-portable/archive/V_7_5_P1.tar.gz'
source_sha1 '3c5d829be2d30ed80feef708231ec223cd37b264'
source_sha256 '00bfc71a4b8f58554892bae561ea0d7f4a462c6940c16c6c943822baa6ba4f84'
depends_on 'buildessential'
depends_on 'autoconf'
......
......@@ -3,42 +3,47 @@ require 'package'
class Openssl < Package
description 'OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols.'
homepage 'https://www.openssl.org/'
version '1.0.2l'
version '1.0.2l-1'
source_url 'https://github.com/openssl/openssl/archive/OpenSSL_1_0_2l.tar.gz'
source_sha1 '5bea0957b371627e8ebbee5bef221519e94d547c'
binary_url ({
aarch64: 'https://github.com/jam7/chromebrew/releases/download/binaries/openssl-1.0.2l-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/jam7/chromebrew/releases/download/binaries/openssl-1.0.2l-chromeos-armv7l.tar.xz',
})
binary_sha1 ({
aarch64: '4c9eb37df898e9495a8f53e3aa7f6058063fa8ce',
armv7l: '4c9eb37df898e9495a8f53e3aa7f6058063fa8ce',
})
source_sha256 'a3d3a7c03c90ba370405b2d12791598addfcafb1a77ef483c02a317a56c08485'
depends_on 'perl' => :build
depends_on 'bc' => :build # required for `make test`
depends_on 'diffutils' => :build # required for `make test`
depends_on 'zlibpkg' => :build
def self.build
options="shared zlib-dynamic"
if `uname -m`.strip == 'aarch64'
options = options + " no-asm"
# Change default optimization level for armv7l from -O3 to -O2 because
# gcc-4.9.4 -O3 for armv7l cause `evp_test` problem like below.
#
# Testing cipher CAMELLIA-256-OFB(decrypt)
# Key
# 0000 60 3d eb 10 15 ca 71 be 2b 73 ae f0 85 7Decrypt failed
# d 77 81
# 0010 1f 35 2c 07 3b 61 08 d7 2d 98 10 a3 09 14 df f4
#
system "sed -e '/linux-armv4/s/-O3/-O2/' -i Configure"
# Specify armv7 for aarch64 since Chrome OS aarch64 uses armv7 binaries as its userland.
case `uname -m`.strip
when "aarch64"
system "./Configure --prefix=/usr/local --openssldir=/etc/ssl #{options} linux-armv4 -march=armv7-a"
else
system "./config --prefix=/usr/local --openssldir=/etc/ssl #{options}"
end
system "./config --prefix=/usr/local --openssldir=/etc/ssl #{options}"
system "make"
system "find . -name '*.so' -print | xargs strip -S"
system "find . -name '*.so.*' -print | xargs strip -S"
end
def self.install
system "make", "INSTALL_PREFIX=#{CREW_DEST_DIR}", "install"
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/openssl"
system "find #{CREW_DEST_DIR}/usr/local -name 'lib*.a' -print | xargs rm"
# move man to /usr/local/man
system "mv", "#{CREW_DEST_DIR}/etc/ssl/man", "#{CREW_DEST_DIR}/usr/local/man"
# remove all files pretended to install /etc/ssl (use system's /etc/ssl as is)
# remove all files under /etc/ssl (use system's /etc/ssl as is)
system "rm", "-rf", "#{CREW_DEST_DIR}/etc"
end
......
......@@ -5,8 +5,8 @@ class Optipng < Package
homepage 'http://optipng.sourceforge.net/'
version '0.7.6-1'
source_url 'http://prdownloads.sourceforge.net/optipng/optipng-0.7.6.tar.gz'
source_sha1 '3b3e31430e735589470c4af204354d38823f4989'
source_sha256 '4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80'
depends_on 'libpng'
depends_on 'zlibpkg'
......@@ -16,6 +16,6 @@ class Optipng < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class P11kit < Package
homepage 'https://p11-glue.freedesktop.org/p11-kit.html'
version '0.23.2-1'
source_url 'https://p11-glue.freedesktop.org/releases/p11-kit-0.23.2.tar.gz'
source_sha1 '4da0d7b47935b6cb0f321dd00358b063ae42df71'
source_sha256 'ba726ea8303c97467a33fca50ee79b7b35212964be808ecf9b145e9042fdfaf0'
depends_on 'diffutils' => :build
depends_on 'libffi'
......
......@@ -5,7 +5,7 @@ class P7zip < Package
homepage 'http://p7zip.sourceforge.net/'
version '16.02'
source_url 'http://downloads.sourceforge.net/p7zip/p7zip_16.02_src_all.tar.bz2'
source_sha1 'e8819907132811aa1afe5ef296181d3a15cc8f22'
source_sha256 '5eb20ac0e2944f6cb9c2d51dd6c4518941c185347d4089ea89087ffdd6e2341f'
def self.build
system "cp", "makefile.linux_any_cpu", "makefile.machine"
......@@ -13,6 +13,6 @@ class P7zip < Package
end
def self.install
system "make", "DEST_DIR=#{CREW_DEST_DIR}", "install"
system "make", "DEST_DIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Pacparser < Package
homepage 'http://pacparser.manugarg.com/'
version '1.3.7'
source_url 'https://github.com/pacparser/pacparser/archive/1.3.7.tar.gz'
source_sha1 'bb06b1a0eaeb882877c5afa45cb00b540ee57f5f'
source_sha256 '575c5d8096b4c842b2af852bbb8bcfde96170b28b49f33249dbe2057a8beea13'
def self.build
system "make -C src"
......
......@@ -5,9 +5,9 @@ class Pagemon < Package
homepage 'http://kernel.ubuntu.com/~cking/pagemon/'
version '0.01.10'
source_url 'http://kernel.ubuntu.com/~cking/tarballs/pagemon/pagemon-0.01.10.tar.gz'
source_sha1 'bc0b4c6db0e1551711e90ffa99162cbbe6217056'
source_sha256 '82c240b44b7000fc57355b366bfe28a47a4da857ddaea0ee0ade9d3eae037f54'
depends_on "ncurses"
depends_on 'ncurses'
def self.build
system "sed -i 's,/usr,/usr/local,g' Makefile"
......
......@@ -3,14 +3,13 @@ require 'package'
class Pango < Package
description 'Pango is a library for laying out and rendering of text, with an emphasis on internationalization.'
homepage 'http://www.pango.org/'
version '1.40.0'
source_url 'https://ftp.gnome.org/pub/gnome/sources/pango/1.40/pango-1.40.0.tar.xz'
source_sha1 '5e1394f2c063747593cb8157ebd953103b8000d2'
version '1.40.9'
source_url 'https://ftp.gnome.org/pub/gnome/sources/pango/1.40/pango-1.40.9.tar.xz'
source_sha256 '9faea6535312fe4436b93047cf7a04af544eb52a079179bd3a33821aacce7e16'
depends_on 'freetype'
depends_on 'fontconfig'
depends_on 'harfbuzz'
depends_on 'cairo'
depends_on 'glib'
def self.build
system "./configure"
......
require 'package'
class Parallel < Package
description 'Run multiple programs simultaneously.'
homepage 'https://joeyh.name/code/moreutils/'
version '0.60'
is_fake
depends_on 'moreutils'
end
......@@ -5,7 +5,7 @@ class Patch < Package
homepage 'http://savannah.gnu.org/projects/patch/'
version '2.7.5'
source_url 'https://ftp.gnu.org/gnu/patch/patch-2.7.5.tar.xz'
source_sha1 '8fd8f8f8ba640d871bce1bd33c7fd5e2ebe03a1e'
source_sha256 'fd95153655d6b95567e623843a0e77b81612d502ecf78a489a4aed7867caa299'
def self.build
system './configure --prefix=/usr/local'
......@@ -13,7 +13,7 @@ class Patch < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
......@@ -5,7 +5,7 @@ class Patchelf < Package
homepage 'http://nixos.org/patchelf.html'
version '0.8-2'
source_url 'http://nixos.org/releases/patchelf/patchelf-0.8/patchelf-0.8.tar.bz2'
source_sha1 'd0645e9cee6f8e583ae927311c7ce88d29f416fc'
source_sha256 'c99f84d124347340c36707089ec8f70530abd56e7827c54d506eb4cc097a17e7'
def self.build
system "./configure", "prefix=/usr/local"
......
......@@ -5,7 +5,7 @@ class Patchutils < Package
homepage 'http://cyberelk.net/tim/patchutils/'
version '0.3.4'
source_url 'http://cyberelk.net/tim/data/patchutils/stable/patchutils-0.3.4.tar.xz'
source_sha1 'b1d91eb1e2213450eae666a4701b3f917625dea3'
source_sha256 'cf55d4db83ead41188f5b6be16f60f6b76a87d5db1c42f5459d596e81dabe876'
def self.build
system './configure --prefix=/usr/local'
......
......@@ -5,7 +5,7 @@ class Pciutils < Package
homepage 'http://mj.ucw.cz/sw/pciutils/'
version '3.5.2'
source_url 'https://www.kernel.org/pub/software/utils/pciutils/pciutils-3.5.2.tar.xz'
source_sha1 '29d9a75ce2a2d92721b6e92c7c89236b4c91041f'
source_sha256 '3a99141a9f40528d0a0035665a06dc37ddb1ae341658e51b50a76ecf86235efc'
def self.build
system "make", "PREFIX=/usr/local", "SHARED=yes"
......
......@@ -3,18 +3,17 @@ require 'package'
class Pcre < Package
description 'The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5.'
homepage 'http://pcre.org/'
version '8.40'
source_url 'https://ftp.pcre.org/pub/pcre/pcre-8.40.tar.bz2'
source_sha1 '12f338719b8b028a2eecbf9192fcc00a13fc04f6'
version '8.41'
source_url 'https://ftp.pcre.org/pub/pcre/pcre-8.41.tar.bz2'
source_sha256 'e62c7eac5ae7c0e7286db61ff82912e1c0b7a0c13706616e94a7dd729321b530'
def self.build
system "./configure", "--enable-shared", "--disable-static", "--with-pic", "--enable-utf"
system "./configure", "--libdir=#{CREW_LIB_PREFIX}", "--enable-shared", "--disable-static", "--with-pic", "--enable-utf"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "strip -S #{CREW_DEST_DIR}/usr/local/lib/lib*.so.*"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
......@@ -5,20 +5,23 @@ class Perl < Package
homepage 'https://www.perl.org/'
version '5.24.1-1'
source_url 'http://www.cpan.org/src/5.0/perl-5.24.1.tar.gz'
source_sha1 '19b218bbc3a63a8408ed56b93928fd9a4c1b5c83'
source_sha256 'e6c185c9b09bdb3f1b13f678999050c639859a7ef39c8cad418448075f5918af'
depends_on 'patch' => :build
def self.build
# Use system zlib and bzip2
# Create shared library
system "BUILD_ZLIB=False BUILD_BZIP2=0 ./Configure -de -Duseshrplib"
# Install manual files into /usr/local/share/man/man* even if groff is not installed.
system "BUILD_ZLIB=False BUILD_BZIP2=0 ./Configure -de -Duseshrplib -Dman1dir=#{CREW_PREFIX}/share/man/man1 -Dman3dir=#{CREW_PREFIX}/share/man/man3"
system "make"
system "find . -name '*.so' -print | xargs strip -S"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "sudo curl -o /usr/local/bin/cpanm https://cpanmin.us"
system "sudo chmod +x /usr/local/bin/cpanm"
system "sudo chown chronos /usr/local/bin/cpanm"
end
def self.check
......
require 'package'
class Perl_locale_messages < Package
description 'Perl Locale::Messages - Gettext Like Message Retrieval.'
homepage 'https://metacpan.org/pod/Locale::Messages'
version '1.27'
source_url 'https://cpan.metacpan.org/authors/id/G/GU/GUIDO/libintl-perl-1.27.tar.gz'
source_sha256 '46de373e84e8a178353990b87eeacf9ef4f5c72650248eb20ed9772a65817c6a'
depends_on 'perl'
def self.build
end
def self.install
# install files to build directory
system 'cpanm', '-l', "build", '--self-contained', '.'
# install lib
libdir = `perl -e 'require Config; print $Config::Config{'"'installsitelib'"'};'`
system "mkdir -p #{CREW_DEST_DIR}#{libdir}"
system "(cd build/lib/perl5; tar cf - .) | (cd #{CREW_DEST_DIR}#{libdir}; tar xfp -)"
# install man
mandir = "#{CREW_PREFIX}/share/man"
system "mkdir -p #{CREW_DEST_DIR}#{mandir}"
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_DIR}#{mandir}; tar xfp -)"
end
def self.check
end
end
require 'package'
class Perl_text_unidecode < Package
description 'Perl Text::Unidecode -- plain ASCII transliterations of Unicode text.'
homepage 'https://metacpan.org/pod/Text::Unidecode'
version '1.30'
source_url 'https://cpan.metacpan.org/authors/id/S/SB/SBURKE/Text-Unidecode-1.30.tar.gz'
source_sha256 '6c24f14ddc1d20e26161c207b73ca184eed2ef57f08b5fb2ee196e6e2e88b1c6'
depends_on 'perl'
def self.build
end
def self.install
# install files to build directory
system 'cpanm', '-l', "build", '--self-contained', '.'
# install lib
libdir = `perl -e 'require Config; print $Config::Config{'"'installsitelib'"'};'`
system "mkdir -p #{CREW_DEST_DIR}#{libdir}"
system "(cd build/lib/perl5; tar cf - .) | (cd #{CREW_DEST_DIR}#{libdir}; tar xfp -)"
# install man
mandir = "#{CREW_PREFIX}/share/man"
system "mkdir -p #{CREW_DEST_DIR}#{mandir}"
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_DIR}#{mandir}; tar xfp -)"
end
def self.check
end
end
require 'package'
class Perl_unicode_eastasianwidth < Package
description 'Perl Unicode::EastAsianWidth - East Asian Width properties.'
homepage 'https://metacpan.org/pod/Unicode::EastAsianWidth'
version '1.33'
source_url 'https://cpan.metacpan.org/authors/id/A/AU/AUDREYT/Unicode-EastAsianWidth-1.33.tar.gz'
source_sha256 '41c9f0b50c45dd806a97de73f9fe93516b6c63255e2a5174e5fb2d89635c7797'
depends_on 'perl'
def self.build
end
def self.install
# install files to build directory
system 'cpanm', '-l', "build", '--self-contained', '.'
# install lib
libdir = `perl -e 'require Config; print $Config::Config{'"'installsitelib'"'};'`
system "mkdir -p #{CREW_DEST_DIR}#{libdir}"
system "(cd build/lib/perl5; tar cf - .) | (cd #{CREW_DEST_DIR}#{libdir}; tar xfp -)"
# install man
mandir = "#{CREW_PREFIX}/share/man"
system "mkdir -p #{CREW_DEST_DIR}#{mandir}"
system "(cd build/man; tar cf - .) | (cd #{CREW_DEST_DIR}#{mandir}; tar xfp -)"
end
def self.check
end
end
require 'package'
class Pexec < Package
description 'The main purpose of the program pexec is to execute the given command or shell script (e.g. parsed by /bin/sh) in parallel on the local host or on remote hosts, while some of the execution parameters, namely the redirected standard input, output or error and environmental variables can be varied.'
homepage 'https://www.gnu.org/software/pexec/'
version '1.0rc8'
source_url 'https://ftp.gnu.org/gnu/pexec/pexec-1.0rc8.tar.gz'
source_sha256 'a968e4774eef80b8b1de3c10e6c0ad2ebeeb732b10e438596f110aa6aaf94a64'
depends_on 'groff'
depends_on 'help2man'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,9 +3,9 @@ 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.30'
source_url 'http://php.net/distributions/php-5.6.30.tar.xz'
source_sha1 '1bca4a340e6aaf82a3e940b0f2de3f36518238e4'
version '5.6.31'
source_url 'http://php.net/distributions/php-5.6.31.tar.xz'
source_sha256 'c464af61240a9b7729fabe0314cdbdd5a000a4f0c9bd201f89f8628732fe4ae4'
depends_on 'pkgconfig'
depends_on 'zlibpkg'
......
......@@ -3,9 +3,9 @@ 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.6'
source_url 'http://php.net/distributions/php-7.1.6.tar.xz'
source_sha1 '0e4a6825d2d75d3deec99d247d04a7bbaf69bf0e'
version '7.1.8'
source_url 'https://php.net/distributions/php-7.1.8.tar.xz'
source_sha256 '8943858738604acb33ecedb865d6c4051eeffe4e2d06f3a3c8f794daccaa2aab'
depends_on 'pkgconfig'
depends_on 'zlibpkg'
......
......@@ -5,7 +5,7 @@ class Pixman < Package
homepage 'http://www.pixman.org/'
version '0.34.0'
source_url 'https://www.cairographics.org/releases/pixman-0.34.0.tar.gz'
source_sha1 'a1b1683c1a55acce9d928fea1ab6ceb79142ddc7'
source_sha256 '21b6b249b51c6800dc9553b65106e1e37d0e25df942c90531d4c3997aa20a88e'
def self.build
system "./configure"
......
......@@ -5,7 +5,7 @@ class Pkgconfig < Package
homepage 'https://www.freedesktop.org/wiki/Software/pkg-config/'
version '0.29.2'
source_url 'http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz'
source_sha1 '76e501663b29cb7580245720edfb6106164fad2b'
source_sha256 '6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591'
# It is not possible to write buildessential here since it causes dependency loop.
# depends_on 'buildessential'
......@@ -21,7 +21,7 @@ class Pkgconfig < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
require 'package'
class Platformsh < Package
description 'The unified tool for managing your Platform.sh services from the command line.'
homepage 'https://docs.platform.sh/overview/cli.html'
version '3.19.0'
source_url 'https://github.com/platformsh/platformsh-cli/archive/v3.19.0.tar.gz'
source_sha256 'c8f79f2141bdf5f6bed11376da773f9d90e8b3ddc059a1159cf11a0929aa6aff'
depends_on 'php7' unless File.exists? '/usr/local/bin/php'
def self.install
system "wget https://github.com/platformsh/platformsh-cli/releases/download/v3.19.0/platform.phar"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('platform.phar') ) == 'ca4080182458fb18244bf8d93a36695146a737eb5acd35be56d65161af5a0dd7'
system "chmod +x platform.phar"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp platform.phar #{CREW_DEST_DIR}/usr/local/bin/platform"
end
end
......@@ -5,9 +5,11 @@ class Postgres < Package
homepage 'https://www.postgresql.org/'
version '9.5.0'
source_url 'https://ftp.postgresql.org/pub/source/v9.5.0/postgresql-9.5.0.tar.bz2'
source_sha1 '930afeb713b81778f29d32e7bf18fd08ce2aa8f9'
source_sha256 'f1c0d3a1a8aa8c92738cab0153fbfffcc4d4158b3fee84f7aa6bfea8283978bc'
depends_on 'buildessential'
depends_on 'readline'
depends_on 'zlibpkg'
def self.build
system "./configure"
......
......@@ -5,13 +5,13 @@ class Powerline_fonts < Package
homepage 'https://github.com/powerline/fonts'
version '1.1'
source_url 'https://codeload.github.com/powerline/fonts/tar.gz/2015-12-04?dummy=/'
source_sha1 '4ffe9a28b842ba4ef052b3ffa8cc58db1dbecc64'
source_sha256 '3a0b73abca6334b5e6bddefab67f6eb1b2fac1231817d95fc79126c8998c4844'
def self.install
fonts = "#{CREW_DEST_DIR}/usr/local/share/fonts"
FileUtils.mkdir_p(fonts)
Dir.glob('*').each do |f|
Dir.glob('*').each do |f|
FileUtils.mv(f, fonts) unless ["README.rst", "install.sh"].include? f
end
......@@ -28,7 +28,7 @@ class Powerline_fonts < Package
puts "\nFonts will be available after restart or chrome:inducebrowsercrashforrealz"
puts "To change the font in crosh, enable developer tools in extensions and execute:"
puts "\tterm_.prefs_.set(\"font-family\", \"DejaVu Sans Mono for Powerline\")"
puts "\tterm_.prefs_.set(\"font-family\", \"DejaVu Sans Mono for Powerline\")"
puts "in the Javascript Console to change the font to DejaVu Sans Mono, for example\n\n"
end
end
......
......@@ -5,7 +5,7 @@ class Powerstat < Package
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_sha1 '729c5f8f4509ab13134278c8afe04cf2244d928c'
source_sha256 'a274a7762c44695129434bab2ff10a23575ecb0c1199eb6e424e1324c61a2d46'
def self.build
system "sed -i 's,/usr,/usr/local,g' Makefile"
......
require 'package'
class Presentproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.1'
source_url 'https://www.x.org/archive/individual/proto/presentproto-1.1.tar.gz'
source_sha256 '114252e97afb4dfae8b31e6b0d5e24e4babda26b364e2be57abc2f3c30248b87'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Printproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.0.5'
source_url 'https://www.x.org/archive/individual/proto/printproto-1.0.5.tar.gz'
source_sha256 'e8b6f405fd865f0ea7a3a2908dfbf06622f57f2f91359ec65d13b955e49843fc'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -3,13 +3,13 @@ require 'package'
class Proj4 < Package
description 'proj.4 is a standard Unix filter function which converts geographic longitude and latitude coordinates into cartesian coordinates (and vice versa), and it is a C API for software developers to include coordinate transformation in their own software.'
homepage 'http://proj4.org/'
version '4.9.1-1'
source_url 'http://download.osgeo.org/proj/proj-4.9.1.tar.gz'
source_sha1 '0bc63a41f1bdcff600d076c056f796007abf3f2f'
version '4.9.3'
source_url 'http://download.osgeo.org/proj/proj-4.9.3.tar.gz'
source_sha256 '6984542fea333488de5c82eea58d699e4aff4b359200a9971537cd7e047185f7'
def self.build
system "./configure CFLAGS=\" -fPIC\""
system "make"
system './configure CFLAGS=" -fPIC"'
system 'make'
end
def self.install
......
......@@ -3,21 +3,24 @@ require 'package'
class Protobuf < Package
description 'Protocol buffers are a language-neutral, platform-neutral extensible mechanism for serializing structured data.'
homepage 'https://developers.google.com/protocol-buffers/'
version '3.3.0'
version '3.3.0-1'
source_url 'https://github.com/google/protobuf/archive/v3.3.0.tar.gz'
source_sha1 '34bcb26fe1eff098224c93b9176fb2400f1f2a84'
source_sha256 '94c414775f275d876e5e0e4a276527d155ab2d0da45eed6b7734301c330be36e'
depends_on 'automake'
depends_on 'libtool'
def self.build
system './autogen.sh'
system './configure --prefix=/usr/local'
system "./configure --prefix=/usr/local --libdir=#{CREW_LIB_PREFIX}"
system 'make'
system 'make check'
end
def self.install
system 'make install'
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
def self.check
system 'make check'
end
end
require 'package'
class Pthread_stubs < Package
description 'pthread stubs to get libX11 working'
homepage 'https://x.org'
version '0.1'
source_url 'https://www.x.org/archive/individual/lib/libpthread-stubs-0.1.tar.gz'
source_sha256 'f8f7ca635fa54bcaef372fd5fd9028f394992a743d73453088fcadc1dbf3a704'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Putty < Package
description 'Free Telnet, SSH, and Rlogin clients plus a terminal emulator'
homepage 'https://www.chiark.greenend.org.uk/~sgtatham/putty/'
version '0.70'
source_url 'https://the.earth.li/~sgtatham/putty/latest/putty-0.70.tar.gz'
source_sha256 'bb8aa49d6e96c5a8e18a057f3150a1695ed99a24eef699e783651d1f24e7b0be'
def self.build
system './configure --without-gtk'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Pv < Package
homepage 'http://www.ivarch.com/programs/pv.shtml'
version '1.6.0'
source_url 'http://www.ivarch.com/programs/sources/pv-1.6.0.tar.gz'
source_sha1 '395ce62f4f3e035b86c77038f04b96c5aa233595'
source_sha256 '9dd45391806b0ed215abee4c5ac1597d018c386fe9c1f5afd2f6bc3b07fd82c3'
def self.build
system "./configure"
......
......@@ -5,7 +5,7 @@ class Pwgen < Package
homepage 'https://sourceforge.net/projects/pwgen/'
version '2.07'
source_url 'https://pilotfiber.dl.sourceforge.net/project/pwgen/pwgen/2.07/pwgen-2.07.tar.gz'
source_sha1 '51180f9cd5530d79eea18b2443780dec4ec5ea43'
source_sha256 'eb74593f58296c21c71cd07933e070492e9222b79cedf81d1a02ce09c0e11556'
def self.build
system "./configure --prefix=/usr/local"
......@@ -13,6 +13,6 @@ class Pwgen < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Python < Package
description 'Python is a programming language that lets you work quickly and integrate systems more effectively.'
homepage 'https://www.python.org/'
version '3.3.2'
binary_url ({
aarch64: 'https://dl.dropboxusercontent.com/s/xsu18iggr51ewqh/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 ({
aarch64: 'b32ee2db9c14d7e2d1df6d43836312521a3ece91',
armv7l: 'b32ee2db9c14d7e2d1df6d43836312521a3ece91',
i686: 'a985a4bba243b4fa701db302dc2fa554aef76f1c',
x86_64: 'fbfe0946c2f9191bd6110705994d459e373a8b09',
})
end
......@@ -5,33 +5,34 @@ class Python27 < Package
homepage 'https://www.python.org/'
version '2.7.13-2'
source_url 'https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tar.xz'
source_sha1 '18a8f30a0356c751b8d0ea6f76e764cab13ee046'
source_sha256 '35d543986882f78261f97787fd3e06274bfa6df29fac9b4a94f73930ff98f731'
depends_on 'bz2' => :build
depends_on 'ncurses'
depends_on 'openssl' => :build
depends_on 'sqlite' => :build
depends_on 'gdbm' => :build
depends_on 'zlibpkg'
def self.build
system "./configure", "CPPFLAGS=-I/usr/local/include/ncurses -I/usr/local/include/ncursesw", "--with-ensurepip=install", "--enable-shared"
# python requires to use /usr/local/lib, so leave as is but specify -rpath
system "./configure", "CPPFLAGS=-I/usr/local/include/ncurses -I/usr/local/include/ncursesw",
"LDFLAGS=-Wl,-rpath,#{CREW_PREFIX}/lib",
"--with-ensurepip=install", "--enable-shared"
system "make"
# strip debug symbols from library
system "find . -name '*.so' -print | xargs strip -S" #unless @@debug_symbol
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
# strip binary
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/python2" #unless @@debug_symbol
# remove static library
system "find #{CREW_DEST_DIR}/usr/local -name 'libpython*.a' -print | xargs rm"
system "find #{CREW_DEST_DIR}/usr/local -name 'libpython*.a' -print | xargs -r rm"
# remove cache (byte-code) files from install package
system "find #{CREW_DEST_DIR}/usr/local -name '*.pyc' -o -name '*.pyo' | xargs rm"
# create symbolic links in lib64 for other applications which use libpython
unless Dir.exist? "#{CREW_DEST_DIR}#{CREW_LIB_PREFIX}"
system "mkdir -p #{CREW_DEST_DIR}#{CREW_LIB_PREFIX}"
system "cd #{CREW_DEST_DIR}#{CREW_LIB_PREFIX}; ln -s ../lib/libpython*.so* ."
end
end
def self.check
......
......@@ -5,18 +5,58 @@ class Python3 < Package
homepage 'https://www.python.org/'
version '3.6.0'
source_url 'https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz'
source_sha1 '120d536ee14a3153fc2435838c0f27c2e25cd29c'
source_sha256 'aa472515800d25a3739833f76ca3735d9f4b2fe77c3cb21f69275e0cce30cb2b'
depends_on 'bz2'
depends_on 'bz2' => :build
depends_on 'xzutils' => :build
depends_on 'ncurses'
depends_on 'openssl'
depends_on 'openssl' => :build
depends_on 'sqlite' => :build
depends_on 'zlibpkg'
def self.build
system "./configure --prefix=/usr/local CPPFLAGS=\"-I/usr/local/include -I/usr/local/include/ncurses\" LDFLAGS=\"-L/usr/local/lib\" CFLAGS=\" -fPIC\""
# python requires to use /usr/local/lib, so leave as is but specify -rpath
system "./configure", "CPPFLAGS=-I/usr/local/include/ncurses -I/usr/local/include/ncursesw",
"LDFLAGS=-Wl,-rpath,#{CREW_PREFIX}/lib",
"--with-ensurepip=install", "--enable-shared"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
# remove static library
system "find #{CREW_DEST_DIR}/usr/local -name 'libpython*.a' -print | xargs -r rm"
# create symbolic links in lib64 for other applications which use libpython
unless Dir.exist? "#{CREW_DEST_DIR}#{CREW_LIB_PREFIX}"
system "mkdir -p #{CREW_DEST_DIR}#{CREW_LIB_PREFIX}"
system "cd #{CREW_DEST_DIR}#{CREW_LIB_PREFIX}; ln -s ../lib/libpython*.so* ."
end
end
def self.check
# Chromebook doesn't allow SIGHUP, so disable SIGHUP test
system "sed", "-i", "Lib/test/test_asyncio/test_events.py", "-e", "/Don't have SIGHUP/s/win32/linux/"
system "sed", "-i", "Lib/test/test_asyncio/test_subprocess.py", "-e", "/Don't have SIGHUP/s/win32/linux/"
# Chromebook returns EINVAL for F_NOTIFY DN_MULTISHOT, so disable test_fcntl_64_bit
system "sed", "-i", "Lib/test/test_fcntl.py", "-e", '/ARM Linux returns EINVAL for F_NOTIFY DN_MULTISHOT/s/$/\
@unittest.skipIf(platform.system() == '"'Linux'"', "Chromeos returns EINVAL for F_NOTIFY DN_MULTISHOT")/'
# imaplib test used to use a kind of security hole on a server in university and the hole is closed now.
# See https://bugs.python.org/issue30175 and https://github.com/python/cpython/pull/1320/files for details.
system "sed", "-i", "Lib/test/test_imaplib.py",
"-e", '/test_logincapa_with_client_certfile/i\ \ \ \ @unittest.skipIf(True,\
"bpo-30175: FIXME: cyrus.andrew.cmu.edu doesn\'t accept "\
"our randomly generated client x509 certificate anymore")',
"-e", '/test_logincapa_with_client_ssl_context/i\ \ \ \ @unittest.skipIf(True,\
"bpo-30175: FIXME: cyrus.andrew.cmu.edu doesn\'t accept "\
"our randomly generated client x509 certificate anymore")'
# Using /tmp breaks test_distutils, test_subprocess
# Proxy setting breaks test_httpservers, test_ssl,
# test_urllib, test_urllib2, test_urllib2_localnet
system "TMPDIR=/usr/local/tmp http_proxy= https_proxy= ftp_proxy= make test"
end
end
......@@ -5,18 +5,18 @@ class Qemacs < Package
homepage 'http://bellard.org/qemacs/'
version '0.3.3'
source_url 'http://bellard.org/qemacs/qemacs-0.3.3.tar.gz'
source_sha1 '2a7314610eed09d7c2bef5f1579d774191803bc4'
source_sha256 '2ffba66a44783849282199acfcc08707debc7169394a8fd0902626222f27df94'
def self.build
system "sed -i 's,css.h,libqhtml/css.h,' html2png.c"
system "sed -i 's/$(prefix)/$(DESTDIR)$(prefix)/g' Makefile"
system "./configure", \
"--prefix=/usr/local", \
"--disable-x11", \
"--disable-xv", \
"--disable-xrender", \
"--disable-html", \
"--disable-png"
"--prefix=/usr/local", \
"--disable-x11", \
"--disable-xv", \
"--disable-xrender", \
"--disable-html", \
"--disable-png"
system "make"
end
......@@ -24,6 +24,6 @@ class Qemacs < Package
system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local/bin"
system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local/share/qe"
system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local/man/man1"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Qemu < Package
homepage 'http://www.qemu.org/'
version '2.9.0'
source_url 'http://download.qemu-project.org/qemu-2.9.0.tar.xz'
source_sha1 '5cc63c6cababaaa7d0685e8b32bacf5022873ebc'
source_sha256 'f01cc33e3c5fd5fd2534ce14e369b6b111d7e54e4a4977f8c37eae668176b022'
depends_on 'glib'
depends_on 'autoconf'
......
......@@ -5,7 +5,7 @@ class R < Package
homepage 'https://www.r-project.org/'
version '3.4.0'
source_url 'https://cran.r-project.org/src/base/R-3/R-3.4.0.tar.gz'
source_sha1 '054c1d099006354c89b195df6783b933846ced60'
source_sha256 '288e9ed42457c47720780433b3d5c3c20983048b789291cc6a7baa11f9428b91'
# depends_on 'gfortran' # require gfortran enabled gcc
depends_on 'pcre' # need to use pcre not pcre2
......@@ -16,7 +16,7 @@ class R < Package
depends_on 'curl'
depends_on 'openssl'
depends_on 'readline'
def self.build
system './configure',
'--with-x=no' # X is not available
......@@ -24,7 +24,7 @@ class R < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
require 'package'
class Randrproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.5.0'
source_url 'https://www.x.org/archive/individual/proto/randrproto-1.5.0.tar.gz'
source_sha256 '8f8a716d6daa6ba05df97d513960d35a39e040600bf04b313633f11679006fab'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Ranger < Package # the name of the package
version '1.8.1' # the current version of the package
description 'A VIM-inspired filemanager for the console.'
homepage 'http://ranger.nongnu.org/'
version '1.8.1' # the current version of the package
source_url 'https://github.com/ranger/ranger/archive/v1.8.1.tar.gz' # the source files for the package
source_sha1 '8948bc749cf91297da6dcf7b275a72d17a0302f3'
source_sha256 'ab0e32159cde196df4ff14e9c516aaf8ac2db79e3fdee17e59f327d677a96949'
depends_on 'less'
depends_on 'ncurses'
depends_on 'python'
depends_on 'python27'
def self.build
system "make"
......
......@@ -5,20 +5,26 @@ class Readline < Package
homepage 'http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html'
version '6.3p8'
source_url 'http://ftp.gnu.org/gnu/readline/readline-6.3.tar.gz'
source_sha1 '017b92dc7fd4e636a2b5c9265a77ccc05798c9e1'
source_sha256 '56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43'
depends_on 'buildessential' => :build
depends_on 'patch' => :build
depends_on 'ncurses'
def self.build
system "wget -r -N -nd --no-parent ftp://ftp.gnu.org/gnu/readline/readline-6.3-patches -P readline-6.3-patches"
system "wget -r -N -nd --no-parent ftp://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-001 -P readline-6.3-patches"
system "wget -r -N -nd --no-parent ftp://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-002 -P readline-6.3-patches"
system "wget -r -N -nd --no-parent ftp://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-003 -P readline-6.3-patches"
system "wget -r -N -nd --no-parent ftp://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-004 -P readline-6.3-patches"
system "wget -r -N -nd --no-parent ftp://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-005 -P readline-6.3-patches"
system "wget -r -N -nd --no-parent ftp://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-006 -P readline-6.3-patches"
system "wget -r -N -nd --no-parent ftp://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-007 -P readline-6.3-patches"
system "wget -r -N -nd --no-parent ftp://ftp.gnu.org/gnu/readline/readline-6.3-patches/readline63-008 -P readline-6.3-patches"
# system "for i in readline-6.3-patches/*.sig; do gpg $i; done"
system "for i in readline-6.3-patches/readline63-???; do patch < $i; done"
system "CC='gcc' ./configure --disable-static --with-curses"
system "CC='gcc' ./configure --libdir=#{CREW_LIB_PREFIX} --disable-static --with-curses"
system "make"
system "find . -name 'lib*.so.*' -print | xargs strip -S"
end
def self.install
......
......@@ -5,18 +5,20 @@ class Readline7 < Package
homepage 'http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html'
version '7.0p3'
source_url 'ftp://ftp.gnu.org/gnu/readline/readline-7.0.tar.gz'
source_sha1 'd9095fa14a812495052357e1d678b3f2ac635463'
source_sha256 '750d437185286f40a369e1e4f4764eda932b9459b5ec9a731628393dd3d32334'
depends_on 'buildessential' => :build
depends_on 'patch' => :build
depends_on 'ncurses'
def self.build
system "wget -r -N -nd --no-parent ftp://ftp.gnu.org/gnu/readline/readline-7.0-patches -P readline-7.0-patches"
system "wget -r -N -nd --no-parent ftp://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-001 -P readline-7.0-patches"
system "wget -r -N -nd --no-parent ftp://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-002 -P readline-7.0-patches"
system "wget -r -N -nd --no-parent ftp://ftp.gnu.org/gnu/readline/readline-7.0-patches/readline70-003 -P readline-7.0-patches"
# system "for i in readline-7.0-patches/*.sig; do gpg $i; done"
system "for i in readline-7.0-patches/readline70-???; do patch < $i; done"
system "CC='gcc' ./configure --disable-static --with-curses"
system "CC='gcc' ./configure --libdir=#{CREW_LIB_PREFIX} --disable-static --with-curses"
system "make"
end
......
require 'package'
class Recordproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.14'
source_url 'https://www.x.org/archive/individual/proto/recordproto-1.14.tar.gz'
source_sha256 '74fc0e8919f3c234848794f1ee266ba6d090f9b99fd65ab913c54ee3ad3ff377'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Redis < Package
homepage 'https://redis.io/'
version '3.0.6'
source_url 'http://download.redis.io/releases/redis-3.0.6.tar.gz'
source_sha1 '4b1c7b1201984bca8f7f9c6c58862f6928cf0a25'
source_sha256 '6f1e1523194558480c3782d84d88c2decf08a8e4b930c56d4df038e565b75624'
depends_on 'buildessential'
......
require 'package'
class Renderproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '0.11'
source_url 'https://www.x.org/archive/individual/proto/renderproto-0.11.tar.gz'
source_sha256 '256e4af1d3b4007872a276ed9e5c2522f80f5fe69b97268542917635b4dbf758'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Resourceproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.2.0'
source_url 'https://www.x.org/archive/individual/proto/resourceproto-1.2.0.tar.gz'
source_sha256 '469029d14fdeeaa7eed1be585998ff4cb92cf664f872d1d69c04140815b78734'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Rfkill < Package
homepage 'http://linuxwireless.org/en/users/Documentation/rfkill'
version '0.5'
source_url 'https://www.kernel.org/pub/software/network/rfkill/rfkill-0.5.tar.xz'
source_sha1 '03025d4ae285c40d5c19ec99ef7b317afda9d900'
source_sha256 'e0ae3004215e39a6c5c36e0726558740728d16f67ebdb8bea621250f6091d86a'
depends_on 'buildessential' => :build
......
require 'package'
class Rkhunter < Package
description 'Rootkit Hunter, security monitoring and analyzing tool for POSIX compliant systems.'
homepage 'http://rkhunter.sourceforge.net/'
version '1.4.4'
source_url 'https://downloads.sourceforge.net/project/rkhunter/rkhunter/1.4.4/rkhunter-1.4.4.tar.gz'
source_sha256 'a8807c83f9f325312df05aa215fa75ad697c7a16163175363c2066baa26dda77'
def self.install
system "sed -i 's,/var\",/usr/local/share\",g' installer.sh"
system "sed -i 's,/var/,/usr/local/share/,g' installer.sh"
system "bash installer.sh --layout /usr/local --install"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/etc"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/lib64"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/share/doc"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/share/lib"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/share/man/man8"
system "cp /usr/local/bin/rkhunter #{CREW_DEST_DIR}/usr/local/bin"
system "cp /usr/local/etc/rkhunter.conf #{CREW_DEST_DIR}/usr/local/etc"
system "cp -r /usr/local/lib64/rkhunter #{CREW_DEST_DIR}/usr/local/lib64"
system "cp -r /usr/local/share/doc/rkhunter-1.4.4 #{CREW_DEST_DIR}/usr/local/share/doc"
system "cp -r /usr/local/share/lib/rkhunter #{CREW_DEST_DIR}/usr/local/share/lib"
system "cp /usr/local/share/man/man8/rkhunter.8* #{CREW_DEST_DIR}/usr/local/share/man/man8"
end
end
......@@ -5,17 +5,17 @@ class Rsync < Package
homepage 'https://rsync.samba.org/'
version '3.1.2'
source_url 'http://rsync.samba.org/ftp/rsync/src/rsync-3.1.2.tar.gz'
source_sha1 '0d4c7fb7fe3fc80eeff922a7c1d81df11dbb8a1a'
source_sha256 'ecfa62a7fa3c4c18b9eccd8c16eaddee4bd308a76ea50b5c02a5840f09c0a1c2'
depends_on 'buildessential'
depends_on 'perl' => :build
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
end
......@@ -5,7 +5,7 @@ class Rtmpdump < Package
homepage 'https://rtmpdump.mplayerhq.hu/'
version 'fa8646d'
source_url 'https://git.ffmpeg.org/gitweb/rtmpdump.git/snapshot/fa8646daeb19dfd12c181f7d19de708d623704c0.tar.gz'
source_sha1 '2faefe655b72f91540f39eebc3020f1c9dcc654e'
source_sha256 'dba4d4d2e1c7de6884b01d98194b83cab6784669089fa3c919152087a3a38fd2'
def self.build
system "make"
......
......@@ -5,7 +5,7 @@ class Ruby < Package
homepage 'https://www.ruby-lang.org/en/'
version '2.4.1'
source_url 'https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.xz'
source_sha1 'eb3e25346431214379e3b92c6f6b6e02f7b2503f'
source_sha256 '4fc8a9992de3e90191de369270ea4b6c1b171b7941743614cc50822ddc1fe654'
depends_on 'readline'
depends_on 'ncurses'
......@@ -14,14 +14,12 @@ class Ruby < Package
# at run-time, system's gmp, openssl, readline and zlibpkg are possible to use
def self.build
system "CC='gcc' ./configure"
system "CC='gcc' ./configure --libdir=#{CREW_LIB_PREFIX} --enable-shared"
system "make"
system "find . -name '*.so' | xargs strip -S"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "strip #{CREW_DEST_DIR}/usr/local/bin/ruby"
end
def self.check
......
......@@ -5,7 +5,7 @@ class Ruby_latest < Package
homepage 'https://www.ruby-lang.org/en/'
version '2.4.0'
source_url 'http://cache.ruby-lang.org/pub/ruby/ruby-2.4.0.tar.xz'
source_sha1 '038804bbd0e77508dd2510b729a9f3b325489b2e'
source_sha256 '3a87fef45cba48b9322236be60c455c13fd4220184ce7287600361319bb63690'
depends_on 'readline'
depends_on 'zlibpkg'
......
require 'package'
class S < Package
description 'Open a web search in your terminal.'
homepage 'https://github.com/zquestz/s'
version '0.5.10'
case ARCH
when 'aarch64'
source_url 'https://github.com/zquestz/s/releases/download/v0.5.10/s-linux_arm.zip'
source_sha256 '4d31cbb3f81a52946d9e40e1d3ebb650d7112c5c3d45c07ae29435bfea2c0dea'
when 'armv7l'
source_url 'https://github.com/zquestz/s/releases/download/v0.5.10/s-linux_arm.zip'
source_sha256 '4d31cbb3f81a52946d9e40e1d3ebb650d7112c5c3d45c07ae29435bfea2c0dea'
when 'i686'
source_url 'https://github.com/zquestz/s/releases/download/v0.5.10/s-linux_386.zip'
source_sha256 'ff94e41816bcaadbd0edd334fae634e71afd1bb4f2acb5dc52f6849714c64e68'
when 'x86_64'
source_url 'https://github.com/zquestz/s/releases/download/v0.5.10/s-linux_amd64.zip'
source_sha256 '1e9a379071171ffaa28ce4d697389a70b115955335e41cfbbd37197404129d49'
end
depends_on 'links'
depends_on 'unzip'
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "mkdir -p #{CREW_DEST_DIR}/home/#{USER}/user"
system "cp autocomplete/s-completion.bash /home/#{USER}/user/.s-completion.bash"
system "cp autocomplete/s-completion.bash #{CREW_DEST_DIR}/home/#{USER}/user/.s-completion.bash"
system "cp autocomplete/s.fish /home/#{USER}/user/.s.fish"
system "cp autocomplete/s.fish #{CREW_DEST_DIR}/home/#{USER}/user/.s.fish"
system "cp s #{CREW_DEST_DIR}/usr/local/bin"
puts ""
puts "In order to enable autocomplete for bash, execute the following:".lightblue
puts "echo \"source ~/.s-completion.bash\" >> ~/.bashrc && source ~/.bashrc".lightblue
puts ""
puts "In order to enable a default search binary, execute the following:".lightblue
puts "echo \"alias s='s -b links'\" >> ~/.bashrc && source ~/.bashrc".lightblue
puts ""
puts "Example usage: s [-b links] best linux command line utilities".lightblue
puts ""
end
end
require 'package'
class Sbt < Package
description 'A build tool for Scala, Java and more.'
homepage 'http://www.scala-sbt.org/'
version '0.13.15'
source_url 'https://github.com/sbt/sbt/releases/download/v0.13.15/sbt-0.13.15.tgz'
source_sha256 'b6e073d7c201741dcca92cfdd1dd3cd76c42a47dc9d8c8ead8df7117deed7aef'
depends_on 'jdk8'
def self.install
system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local/share/sbt/bin"
system "install", "-m", "644", "bin/sbt-launch.jar", "#{CREW_DEST_DIR}/usr/local/share/sbt/bin"
system "install", "-m", "644", "bin/sbt-launch-lib.bash", "#{CREW_DEST_DIR}/usr/local/share/sbt/bin"
system "install", "-m", "755", "bin/sbt", "#{CREW_DEST_DIR}/usr/local/share/sbt/bin"
system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local/share/sbt/conf"
system "install", "-m", "644", "conf/sbtopts", "#{CREW_DEST_DIR}/usr/local/share/sbt/conf"
system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local/bin"
system "ln", "-s", "/usr/local/share/sbt/bin/sbt", "#{CREW_DEST_DIR}/usr/local/bin/sbt"
system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local/etc/sbt"
system "ln", "-s", "/usr/local/share/sbt/conf/sbtopts", "#{CREW_DEST_DIR}/usr/local/etc/sbt/sbtopts"
end
end
......@@ -5,7 +5,7 @@ class Scons < Package
homepage 'http://scons.org/'
version '2.5.1'
source_url 'http://prdownloads.sourceforge.net/scons/scons-2.5.1.tar.gz'
source_sha1 'f742350251734df75355e51c70f291e119ef927a'
source_sha256 '0b25218ae7b46a967db42f2a53721645b3d42874a65f9552ad16ce26d30f51f2'
depends_on 'python27'
......
......@@ -5,15 +5,15 @@ class Screen < Package
homepage 'https://www.gnu.org/software/screen/'
version '4.3.1'
source_url 'ftp://ftp.gnu.org/gnu/screen/screen-4.3.1.tar.gz'
source_sha1 'a524761504e28480517e338b20c852f2ab100c93'
source_sha256 'fa4049f8aee283de62e283d427f2cfd35d6c369b40f7f45f947dbfd915699d63'
depends_on 'ncurses'
def self.build
system "./configure --prefix=/usr/local"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
......
......@@ -5,7 +5,7 @@ class Screenfetch < Package
homepage 'https://github.com/KittyKatt/screenFetch'
version '3.7.0'
source_url 'https://github.com/KittyKatt/screenFetch/archive/v3.7.0.tar.gz'
source_sha1 '5a3702504e154335e372df56e4cb621840dc5506'
source_sha256 '6711fe924833919d53c1dfbbb43f3777d33e20357a1b1536c4472f6a1b3c6be0'
def self.build
end
......
require 'package'
class Scrnsaverproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.2.2'
source_url 'https://www.x.org/archive/individual/proto/scrnsaverproto-1.2.2.tar.gz'
source_sha256 'd8dee19c52977f65af08fad6aa237bacee11bc5a33e1b9b064e8ac1fd99d6e79'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Scrollz < Package
homepage 'http://www.scrollz.info/'
version '2.3'
source_url 'http://www.scrollz.info/download/ScrollZ-2.3.tar.gz'
source_sha1 '991e6acfdf95d84ca159a37336c2d45a624d432f'
source_sha256 '22535bcc54ad752107ab181775d90d9cf1b37648f500d627f428388a9d3710e6'
depends_on 'buildessential'
depends_on 'ncurses'
......
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'
depends_on 'help2man'
depends_on 'jdk8'
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 "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 $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"
end
end
......@@ -3,18 +3,19 @@ require 'package'
class Serf < Package
description 'The serf library is a high performance C-based HTTP client library built upon the Apache Portable Runtime (APR) library.'
homepage 'https://serf.apache.org/'
version '1.3.9'
version '1.3.9-2'
source_url 'https://www.apache.org/dist/serf/serf-1.3.9.tar.bz2'
source_sha1 '26015c63e3bbb108c1689bf2090e4c26351db674'
source_sha256 '549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc'
depends_on 'scons'
depends_on 'aprutil'
depends_on 'openssl'
def self.build
nil
system "scons APR=#{CREW_PREFIX} APU=#{CREW_PREFIX} OPENSSL=#{CREW_PREFIX}/include/openssl PREFIX=#{CREW_PREFIX} LIBDIR=#{CREW_LIB_PREFIX}"
end
def self.install
system "scons APR=/usr/local APU=/usr/local PREFIX=#{CREW_DEST_DIR} install"
system "scons install --install-sandbox=#{CREW_DEST_DIR}"
end
end
require "package"
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_sha1 "d45d80d8a452d121ad85ec1d909fb3f85c17ee3f"
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'
def self.build
system "./configure"
system "make"
system './configure'
system 'make'
end
def self.install
......
require 'package'
class Shtool < Package
description 'GNU shtool is a compilation of small but very stable and portable shell scripts into a single shell tool.'
homepage 'http://savannah.gnu.org/projects/shtool'
version '2.0.8'
source_url 'https://ftpmirror.gnu.org/shtool/shtool-2.0.8.tar.gz'
source_sha256 '1298a549416d12af239e9f4e787e6e6509210afb49d5cf28eb6ec4015046ae19'
def self.build
system './configure'
system 'make'
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/man/man1"
system "cp shtool #{CREW_DEST_DIR}/usr/local/bin"
system "cp *.1 #{CREW_DEST_DIR}/usr/local/man/man1"
end
end
......@@ -5,7 +5,7 @@ class Slang < Package
homepage 'http://www.jedsoft.org/slang/'
version '2.3.1a'
source_url 'http://www.jedsoft.org/releases/slang/slang-2.3.1a.tar.bz2'
source_sha1 'a8ea7f1b5736160a94efb67b137a0f5b9916bdf2'
source_sha256 '54f0c3007fde918039c058965dffdfd6c5aec0bad0f4227192cc486021f08c36'
def self.build
system "./configure", "--prefix=/usr/local", "--without-x"
......@@ -15,6 +15,6 @@ class Slang < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Sleuthkit < Package
description 'The Sleuth Kit® (TSK) is a library and collection of command line tools that allow you to investigate disk images.'
homepage 'https://www.sleuthkit.org/sleuthkit/'
version '4.4.1'
source_url 'https://github.com/sleuthkit/sleuthkit/archive/sleuthkit-4.4.1.tar.gz'
source_sha256 '91e2f038ff8407cfe38a26d18adc8dd98970e95db73394c188db98975deb23f7'
depends_on 'autoconf'
depends_on 'automake'
depends_on 'gawk'
depends_on 'libtool'
depends_on 'zlibpkg'
def self.build
system './bootstrap'
system 'sed -i "s,(sb.st_mode \& S_IFMT) == S_IFDIR,S_ISREG(sb.st_mode)," tsk/img/raw.c'
system 'sed -i "s,#define TZNAME _tzname,extern char* tzname[2];\n#define TZNAME tzname," tsk/base/tsk_os.h'
system 'sed -i "s,#define TZNAME\ttzname,," tsk/base/tsk_os.h'
system 'sed -i "1iextern char* tzname[2];\n#define TZNAME tzname" tsk/fs/fs_name.c'
system 'sed -i "1iint optarg[2];\nint optind;" tools/srchtools/srch_strings.c'
system 'sed -i "0,/for (; optind < argc; ++optind)/s/for (; optind < argc; ++optind)/for (optind = 0; optind < argc; ++optind)/" tools/srchtools/srch_strings.c'
system './configure \
--disable-java \
--without-afflib \
--without-libewf'
system "make 'CFLAGS=-std=c99'"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Sluice < Package
homepage 'http://kernel.ubuntu.com/~cking/sluice/'
version '0.02.06'
source_url 'http://kernel.ubuntu.com/~cking/tarballs/sluice/sluice-0.02.06.tar.gz'
source_sha1 'c1afc98790147c2c48bc5675de8352812b4f1fea'
source_sha256 'a1f06c2e7077e28fedb2b4f82066f6e6396bbd2fb4e8f22ef219ff573cdbe163'
def self.build
system "sed -i 's,/usr,/usr/local,g' Makefile"
......
......@@ -5,9 +5,9 @@ class Smemstat < Package
homepage 'http://kernel.ubuntu.com/~cking/smemstat/'
version '0.01.16'
source_url 'http://kernel.ubuntu.com/~cking/tarballs/smemstat/smemstat-0.01.16.tar.gz'
source_sha1 '4efdd89afa15ea7e4cb302653418935dab3c626a'
source_sha256 '232e220574a6d7a8d75dec3aae79ae26b2102cd62ade9d1b2a78a5baa2d1c392'
depends_on "ncurses"
depends_on 'ncurses'
def self.build
system "sed -i 's,/usr,/usr/local,g' Makefile"
......
......@@ -3,9 +3,9 @@ require 'package'
class Socat < Package
description 'SOcket CAT is a multipurpose relay \'netcat++\' (extended design, new implementation).'
homepage 'http://www.dest-unreach.org/socat/'
version '1.7.3.1'
version '1.7.3.1'
source_url 'http://www.dest-unreach.org/socat/download/socat-1.7.3.1.tar.gz'
source_sha1 'a6f1d8ab3e85f565dbe172f33a9be6708dd52ffb'
source_sha256 'a8cb07b12bcd04c98f4ffc1c68b79547f5dd4e23ddccb132940f6d55565c7f79'
depends_on 'readline'
depends_on 'openssl'
......
......@@ -5,7 +5,7 @@ class Speex < Package
homepage 'https://speex.org/'
version '1.2.0'
source_url 'http://downloads.us.xiph.org/releases/speex/speex-1.2.0.tar.gz'
source_sha1 '18ebc3fa3236b4369509e9439acc32d0e864fa7f'
source_sha256 'eaae8af0ac742dc7d542c9439ac72f1f385ce838392dc849cae4536af9210094'
def self.build
system "./configure"
......
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.18.0-1'
source_url 'https://www.sqlite.org/2017/sqlite-autoconf-3180000.tar.gz'
source_sha1 '74559194e1dd9b9d577cac001c0e9d370856671b'
source_sha256 '3757612463976e7d08c5e9f0af3021613fc24bbcfe1c51197d6776b9ece9ac5c'
def self.build
system "./configure", "--disable-static", "--enable-shared", "--with-pic"
system "./configure", "--libdir=#{CREW_LIB_PREFIX}", "--disable-static", "--enable-shared", "--with-pic"
system "make"
system "find . -name 'lib*.so.*' -print | xargs strip -S"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Sshfs < Package
homepage 'https://github.com/libfuse/sshfs'
version '2.8'
source_url 'https://github.com/libfuse/sshfs/releases/download/sshfs_2.8/sshfs-2.8.tar.gz'
source_sha1 '2b792aa5b3a45e0c3fe65c44bd9da8f64a690830'
source_sha256 '7f689174d02e6b7e2631306fda4fb8e6b4483102d1bce82b3cdafba33369ad22'
depends_on 'glib'
depends_on 'fuse'
......
require 'package'
class Stack < Package
description 'The Haskell Tool Stack - Stack is a cross-platform program for developing Haskell projects. It is aimed at Haskellers both new and experienced.'
homepage 'https://docs.haskellstack.org/en/stable/README/'
version '1.4.0'
case ARCH
when 'i686'
source_url 'https://github.com/commercialhaskell/stack/releases/download/v1.4.0/stack-1.4.0-linux-i386.tar.gz'
source_sha256 'aabd307f7dcb585a7821d7b44a73527f0928a76c48711e6968262ee87c86bc14'
when 'x86_64'
source_url 'https://github.com/commercialhaskell/stack/releases/download/v1.4.0/stack-1.4.0-linux-x86_64.tar.gz'
source_sha256 '618a309d763432a2cca654bc29249a77c7de096c693a28b84dd3656470269f5a'
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp stack #{CREW_DEST_DIR}/usr/local/bin"
end
end
......@@ -5,7 +5,7 @@ class Strace < Package
homepage 'https://strace.io/'
version '4.16'
source_url 'https://downloads.sourceforge.net/project/strace/strace/4.16/strace-4.16.tar.xz'
source_sha1 'b780a8cd2e60ea836cfd3468e0f81623a346d180'
source_sha256 '98487cb5178ec1259986cc9f6e2a844f50e5d1208c112cc22431a1e4d9adf0ef'
depends_on 'buildessential'
......
......@@ -3,14 +3,14 @@ require 'package'
class Stunnel < Package
description "Stunnel is a proxy designed to add TLS encryption functionality to existing clients and servers without any changes in the programs' code."
homepage 'https://www.stunnel.org/index.html'
version '5.41'
source_url 'https://www.stunnel.org/downloads/stunnel-5.41.tar.gz'
source_sha1 '9aa8335e0f9571480b0d62b4b58d9d510447b732'
version '5.42'
source_url 'https://www.stunnel.org/downloads/stunnel-5.42.tar.gz'
source_sha256 '1b6a7aea5ca223990bc8bd621fb0846baa4278e1b3e00ff6eee279cb8e540fab'
depends_on 'openssl'
def self.build
system "./configure"
system "./configure", "--libdir=#{CREW_LIB_PREFIX}"
system "make"
end
......
......@@ -3,16 +3,19 @@ require 'package'
class Subversion < Package
description 'Subversion is an open source version control system.'
homepage 'https://subversion.apache.org/'
version '1.9.5'
source_url 'http://apache.mirrors.ionfish.org/subversion/subversion-1.9.5.tar.gz'
source_sha1 'ac9f8ee235f1b667dd6506864af8035aaedfc2d9'
version '1.9.7'
source_url 'http://www-us.apache.org/dist/subversion/subversion-1.9.7.tar.bz2'
source_sha256 'c3b118333ce12e501d509e66bb0a47bcc34d053990acab45559431ac3e491623'
depends_on 'aprutil'
depends_on 'sqlite'
depends_on 'autoconf'
depends_on 'libtool'
depends_on 'serf'
depends_on 'sqlite'
depends_on 'zlibpkg'
def self.build
system './configure --prefix=/usr/local --with-apr=/usr/local --with-apr-util=/usr/local'
system './configure', '--disable-static', "--libdir=#{CREW_LIB_PREFIX}"
system 'make'
end
......
......@@ -5,7 +5,7 @@ class Sysstat < Package
homepage 'http://sebastien.godard.pagesperso-orange.fr/'
version '11.5.6'
source_url 'https://github.com/sysstat/sysstat/archive/v11.5.6.tar.gz'
source_sha1 'a8913a7a8418590bc6ea77a7bbe737577ef96e33'
source_sha256 '2ba2c6bfe0870e3b10061ec19b2623283d4922bc6d824b1ba6534a27001d9fa8'
def self.build
system "sed -i 's/GRP=root/GRP=$(whoami)/' configure"
......
......@@ -3,16 +3,16 @@ 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'
version '8.6.6'
source_url 'http://downloads.sourceforge.net/tcl/tcl8.6.6-src.tar.gz'
source_sha1 '169dd1589cad62c9fac4257c113db245da502cd0'
source_sha256 'a265409781e4b3edcc4ef822533071b34c3dc6790b893963809b9fe221befe07'
def self.build
FileUtils.chdir("unix") do
if `uname -m`.strip == "x86_64"
system "./configure --prefix=/usr/local --enable-64bit"
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} --enable-64bit"
else
system "./configure --prefix=/usr/local"
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
end
system "make"
end
......
......@@ -3,9 +3,9 @@ require 'package'
class Tcpdump < Package
description 'A powerful command-line packet analyzer.'
homepage 'http://www.tcpdump.org/'
version '4.8.1'
version '4.8.1'
source_url 'http://www.tcpdump.org/release/tcpdump-4.8.1.tar.gz'
source_sha1 '364c8a60b637d1b122769fdeae79bcd300d5bd5c'
source_sha256 '20e4341ec48fcf72abcae312ea913e6ba6b958617b2f3fb496d51f0ae88d831c'
depends_on 'libpcap'
depends_on 'openssl'
......
......@@ -3,9 +3,9 @@ require 'package'
class Tcpstat < Package
description 'tcpstat reports certain network interface statistics much like vmstat does for system statistics. tcpstat gets its information by either monitoring a specific interface, or by reading previously saved tcpdump data from a file.'
homepage 'http://www.frenchfries.net/paul/tcpstat/'
version '1.5'
source_url 'https://web.archive.org/web/20160504233625/http://www.frenchfries.net/paul/tcpstat/tcpstat-1.5.tar.gz'
source_sha1 '3881edafe2a45c807a6f197792251036c599ec50'
version '1.5'
source_url 'https://web.archive.org/web/20160504233625/http://www.frenchfries.net/paul/tcpstat/tcpstat-1.5.tar.gz'
source_sha256 '46fde9458cc5678264b0c5f2197f84ada9101951197fdeec5f04b0801fcff0ba'
def self.build
system "./configure", "--prefix=/usr/local"
......
......@@ -5,7 +5,7 @@ class Termcap < Package
homepage 'https://www.gnu.org/software/termutils/'
version '1.3.1'
source_url 'https://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz'
source_sha1 '42dd1e6beee04f336c884f96314f0c96cc2578be'
source_sha256 '91a0e22e5387ca4467b5bcb18edf1c51b930262fd466d5fda396dd9d26719100'
def self.build
system "./configure"
......
......@@ -3,16 +3,30 @@ require 'package'
class Texinfo < Package
description 'Texinfo is the official documentation format of the GNU project.'
homepage 'https://www.gnu.org/software/texinfo/'
version '6.3'
source_url 'http://ftp.gnu.org/gnu/texinfo/texinfo-6.3.tar.gz'
source_sha1 '29b16c646c7bc9cd351b2f1d8dafdce70e5377f6'
version '6.4-1'
source_url 'http://ftpmirror.gnu.org/texinfo/texinfo-6.4.tar.xz'
source_sha256 '6ae2e61d87c6310f9af7c6f2426bd0470f251d1a6deb61fba83a3b3baff32c3a'
depends_on 'gettext' => :build
depends_on 'perl'
depends_on 'perl_locale_messages'
depends_on 'perl_text_unidecode'
depends_on 'perl_unicode_eastasianwidth'
depends_on 'ncurses'
def self.build
system "./configure"
# configure and make
system './configure',
'--with-external-Text-Unidecode',
'--with-external-Unicode-EastAsianWidth'
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
system "make check"
end
end
......@@ -5,17 +5,17 @@ class Tig < Package
homepage 'http://jonas.nitro.dk/tig/'
version '2.2.1'
source_url 'https://github.com/jonas/tig/archive/tig-2.2.1.tar.gz'
source_sha1 '704e35ad3f54024d7ce14dade4294aacc0744b3d'
source_sha256 '92d96635068d779df58aea3fbfa86c5869e39c11c7868d5b3d62229360b5336f'
depends_on 'readline'
depends_on 'ncurses'
def self.build
system "./autogen.sh"
system "./configure", "--prefix=/usr/local"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
......
......@@ -5,7 +5,7 @@ class Tinycc < Package
homepage 'http://bellard.org/tcc/'
version '0.9.26'
source_url 'http://download.savannah.gnu.org/releases/tinycc/tcc-0.9.26.tar.bz2'
source_sha1 '7110354d3637d0e05f43a006364c897248aed5d0'
source_sha256 '521e701ae436c302545c3f973a9c9b7e2694769c71d9be10f70a2460705b6d71'
def self.build
system "./configure --prefix=/usr/local"
......@@ -13,6 +13,6 @@ class Tinycc < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Tmux < Package
description 'tmux is a terminal multiplexer'
homepage 'http://tmux.github.io/'
version '2.2'
source_url 'https://github.com/tmux/tmux/releases/download/2.2/tmux-2.2.tar.gz'
source_sha1 '5ed1430bc7ef44c227e64e9401c686573dd0791a'
source_sha256 'bc28541b64f99929fe8e3ae7a02291263f3c97730781201824c0f05d7c8e19e4'
depends_on 'readline'
depends_on 'libevent'
depends_on 'ncurses'
def self.build
system "CPPFLAGS=-I/usr/local/include/ncurses ./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
......
......@@ -5,7 +5,7 @@ class Traceroute < Package
homepage 'http://traceroute.sourceforge.net/'
version '2.1.0'
source_url 'https://downloads.sourceforge.net/project/traceroute/traceroute/traceroute-2.1.0/traceroute-2.1.0.tar.gz'
source_sha1 'bc5c6c8022187511be5665b3818d919be5987dcc'
source_sha256 '3669d22a34d3f38ed50caba18cd525ba55c5c00d5465f2d20d7472e5d81603b6'
def self.build
# add /usr/lib64 to vpath to check /usr/lib64/libm.so
......
require 'package'
class Trapproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '3.4.3'
source_url 'https://www.x.org/archive/individual/proto/trapproto-3.4.3.tar.gz'
source_sha256 'abfb930b5703b5a6ebafe84d0246bd8c6b099ca4a4eab06d1dc0776a8a9b87c1'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Tree < Package
homepage 'http://mama.indstate.edu/users/ice/tree/'
version '1.7.0'
source_url 'http://mama.indstate.edu/users/ice/tree/src/tree-1.7.0.tgz'
source_sha1 '35bd212606e6c5d60f4d5062f4a59bb7b7b25949'
source_sha256 '6957c20e82561ac4231638996e74f4cfa4e6faabc5a2f511f0b4e3940e8f7b12'
def self.build
system "sed -i 's,/usr,/usr/local,g' Makefile"
......
......@@ -5,7 +5,7 @@ class Trousers < Package
homepage 'http://trousers.sourceforge.net/'
version '0.3.14'
source_url 'https://downloads.sourceforge.net/project/trousers/trousers/0.3.14/trousers-0.3.14.tar.gz'
source_sha1 '9ca2cc9e1179465f6c5d9055e2b855e25031b85a'
source_sha256 'ce50713a261d14b735ec9ccd97609f0ad5ce69540af560e8c3ce9eb5f2d28f47'
depends_on 'openssl'
depends_on 'libtool'
......
......@@ -5,7 +5,7 @@ class Txt2man < Package
homepage 'http://mvertes.free.fr/'
version '1.5.6'
source_url 'http://mvertes.free.fr/download/txt2man-1.5.6.tar.gz'
source_sha1 'ef1392785333ea88f7e01f4f4c519ecfbdd498bd'
source_sha256 '984825c5fd0cb3495160bf3277f327078081a8dc219dc466509e307ec9a2b52a'
depends_on 'gawk'
depends_on 'mandb'
......
......@@ -5,7 +5,7 @@ class Unrar < Package
homepage 'http://www.rarlab.com/'
version '5.4.5'
source_url 'http://www.rarlab.com/rar/unrarsrc-5.4.5.tar.gz'
source_sha1 '1590aec535792def68710dad7b73d5522e50c971'
source_sha256 'e470c584332422893fb52e049f2cbd99e24dc6c6da971008b4e2ae4284f8796c'
def self.build
system "sed -i '145s,$,/libunrar.so,' makefile" # fix naming mistake
......
......@@ -5,7 +5,7 @@ class Unshield < Package
homepage 'https://github.com/twogood/unshield'
version '1.4.2'
source_url 'https://github.com/twogood/unshield/archive/1.4.2.tar.gz'
source_sha1 '02935c888b04507f0a14036773539a4f8c20a152'
source_sha256 '5dd4ea0c7e97ad8e3677ff3a254b116df08a5d041c2df8859aad5c4f88d1f774'
depends_on 'cmake'
......
......@@ -5,7 +5,8 @@ class Unzip < Package
homepage 'http://www.info-zip.org/UnZip.html'
version '1.6_1'
source_url 'https://downloads.sourceforge.net/project/infozip/UnZip%206.x%20%28latest%29/UnZip%206.0/unzip60.tar.gz'
source_sha1 'abf7de8a4018a983590ed6f5cbd990d4740f8a22'
source_sha256 '036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37'
depends_on 'patch'
# adapted from the homebrew recipe as seen at: https://github.com/Homebrew/homebrew-dupes/blob/master/unzip.rb
......@@ -32,9 +33,7 @@ class Unzip < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "MANDIR=/usr/local/tmp/unzip-man", "-f", "unix/Makefile", "install"
#remove the man pages we couldn't install
system "rm -r -f /usr/local/tmp/unzip-man"
system "make", "BINDIR=#{CREW_DEST_DIR}#{CREW_PREFIX}/bin", "MANDIR=#{CREW_DEST_DIR}#{CREW_PREFIX}/share/man", "-f", "unix/Makefile", "install"
end
end
......@@ -3,12 +3,47 @@ require 'package'
class Valgrind < Package
description 'Valgrind is an instrumentation framework for building dynamic analysis tools.'
homepage 'http://valgrind.org/'
version '3.13.0'
version '3.13.0-1'
source_url 'ftp://sourceware.org/pub/valgrind/valgrind-3.13.0.tar.bz2'
source_sha1 'ddf13e22dd0ee688bd533fc66b94cf88f75fad86'
source_sha256 'd76680ef03f00cd5e970bbdcd4e57fb1f6df7d2e2c071635ef2be74790190c3b'
depends_on 'patch' => :build
def self.build
system './configure'
system 'patch -p0 << EOF
--- coregrind/m_redir.c
+++ coregrind/m_redir.c
@@ -1214,9 +1214,11 @@
add_hardwired_spec(
"ld-linux.so.2", "index",
(Addr)&VG_(x86_linux_REDIR_FOR_index), mandatory);
+#if CI_HACK_strlen
add_hardwired_spec(
"ld-linux.so.2", "strlen",
(Addr)&VG_(x86_linux_REDIR_FOR_strlen), mandatory);
+#endif
}
# elif defined(VGP_amd64_linux)
@@ -1238,6 +1240,7 @@
the start, otherwise ld.so makes a lot of noise. */
if (0==VG_(strcmp)("Memcheck", VG_(details).name)) {
+#if CI_HACK_strlen
add_hardwired_spec(
"ld-linux-x86-64.so.2", "strlen",
(Addr)&VG_(amd64_linux_REDIR_FOR_strlen),
@@ -1251,6 +1254,8 @@
complain_about_stripped_glibc_ldso
# endif
);
+#endif
+
}
# elif defined(VGP_ppc32_linux)
EOF'
system './configure --prefix=/usr/local'
system 'make'
end
......
require 'package'
class Videoproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '2.3.3'
source_url 'https://www.x.org/archive/individual/proto/videoproto-2.3.3.tar.gz'
source_sha256 'df8dfeb158767f843054248d020e291a2c40f7f5e0ac6d8706966686fee7c5c0'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Vidstab < Package
homepage 'http://public.hronopik.de/vid.stab/'
version '0.98b'
source_url 'https://github.com/georgmartius/vid.stab/archive/release-0.98b.tar.gz'
source_sha1 '1030a1baa9b2cba844758a6cd8dd5d5fc23f9cd9'
source_sha256 '530f0bf7479ec89d9326af3a286a15d7d6a90fcafbb641e3b8bdb8d05637d025'
depends_on 'cmake'
......
......@@ -5,9 +5,9 @@ class Vifm < Package
homepage 'https://vifm.info/'
version '0.8.2'
source_url 'https://downloads.sourceforge.net/project/vifm/vifm/vifm-0.8.2.tar.bz2'
source_sha1 '1ae4179b2b9a43c440290af0ecc91b9235203be7'
source_sha256 '8b466d766658a24d07fc2039a26fefc6a018f5653684a6035183ca79f02c211f'
depends_on "ncurses"
depends_on 'ncurses'
def self.build
system "./configure", \
......@@ -21,6 +21,6 @@ class Vifm < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Vim < Package
homepage 'http://www.vim.org/'
version '8.0-1'
source_url 'ftp://ftp.vim.org/pub/vim/unix/vim-8.0.tar.bz2'
source_sha1 '54bb7fe631ed8eaea5675ec934e88b0da1f1eca0'
source_sha256 '08bd0d1dd30ece3cb9905ccd48b82b2f81c861696377508021265177dc153a61'
depends_on 'ncurses'
# vim uses shared library of following languages, so need them isntalled at run-time
......@@ -20,7 +20,6 @@ class Vim < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "strip", "#{CREW_DEST_DIR}/usr/local/bin/vim"
puts "\nMake sure to put your .vim directory in a subdirectory of /usr/local so it has execute permissions"
puts "You can then symlink to your home directory so vim can see it"
......
require 'package'
class Vpnc < Package
description 'client for cisco vpn concentrator'
homepage 'https://www.unix-ag.uni-kl.de/~massar/vpnc/'
version '0.5.3'
source_url 'https://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-0.5.3.tar.gz'
source_sha256 '46cea3bd02f207c62c7c6f2f22133382602baeda1dc320747809e94881414884'
depends_on 'libgcrypt'
depends_on 'openssl'
depends_on 'perl'
def self.build
system "sed -i 's,\./makeman.pl,perl makeman.pl,' Makefile"
system "sed -i 's,ETCDIR=/etc/vpnc,ETCDIR=#{CREW_PREFIX}/etc/vpnc,' Makefile"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Wayland < Package
description 'Wayland is intended as a simpler replacement for X, easier to develop and maintain.'
homepage 'https://wayland.freedesktop.org'
version '1.32.92'
is_fake
depends_on 'libwayland'
depends_on 'wayland_protocols'
end
require 'package'
class Wayland_protocols < Package
description 'Wayland is a protocol for a compositor to talk to its clients'
homepage 'https://wayland.freedesktop.org'
version '1.9'
source_url 'https://wayland.freedesktop.org/releases/wayland-protocols-1.9.tar.xz'
source_sha256 '666b72de30ca3b70c2b54ccc9e8114cb520e76db224c816b5e23501099174f75'
depends_on 'libwayland'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Wbox < Package
homepage 'http://www.hping.org/wbox/'
version '5'
source_url 'http://www.hping.org/wbox/wbox-5.tar.gz'
source_sha1 '5f20fca378c8abf53bb6a9069ecdebeb40a74147'
source_sha256 '1589d85e83c8ee78383a491d89e768ab9aab9f433c5f5e035cfb5eed17efaa19'
def self.build
system "make"
......
......@@ -5,7 +5,9 @@ class Whois < Package
homepage 'https://github.com/rfc1036/whois'
version '5.2.16'
source_url 'https://github.com/rfc1036/whois/archive/v5.2.16.tar.gz'
source_sha1 '1a5afb7363ef62de0565ae10cee7f0a42b6b260e'
source_sha256 'd8204ca199329f14c33cb9f893b0f50918dbef34a6838317270e65c55ab32615'
depends_on 'gettext'
def self.build
system "sed -i 's,prefix = /usr,prefix = /usr/local,' Makefile"
......
require 'package'
class Windowswmproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.0.4'
source_url 'https://www.x.org/archive/individual/proto/windowswmproto-1.0.4.tar.gz'
source_sha256 '2dccf510cf18a1b5cfd3a277c678d88303efc85478b479fec46228a861956eb7'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
require 'json'
require 'fileutils'
class Wine < Package
description 'Wine (originally an acronym for "Wine Is Not an Emulator") is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, macOS, & BSD.'
homepage 'https://www.winehq.org/'
version '2.10'
version '2.10-1'
source_url 'https://dl.winehq.org/wine/source/2.x/wine-2.10.tar.xz'
source_sha1 '886bc24c315b2accbc2ad41d921e92177768f3a5'
source_sha256 '488df7ffd2e81da455bf428fc9eb784bb4273a890334500895665711bd52f179'
depends_on 'bison'
depends_on 'flex'
......@@ -15,9 +14,9 @@ class Wine < Package
def self.build
case ARCH
when "i686" || "armv7l"
when "i686", "armv7l", "aarch64"
system "./configure --without-x"
when "x86_64" || "aarch64"
when "x86_64"
system "./configure --without-x --enable-win64"
else
abort "Error getting your device configuration."
......@@ -27,7 +26,7 @@ class Wine < Package
def self.install
case ARCH
when "x86_64" || "aarch64"
when "x86_64"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
FileUtils.cd("#{CREW_DEST_DIR}/usr/local/bin") do
system "ln -s wine64 wine"
......
require 'package'
class Xcb_proto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.12'
source_url 'https://www.x.org/archive/individual/xcb/xcb-proto-1.12.tar.gz'
source_sha256 'cfa49e65dd390233d560ce4476575e4b76e505a0e0bacdfb5ba6f8d0af53fd59'
depends_on 'python27'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Xcmiscproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.2.2'
source_url 'https://www.x.org/archive/individual/proto/xcmiscproto-1.2.2.tar.gz'
source_sha256 '48013cfbe4bd5580925a854a43e2bccbb4c7a5a31128070644617b6dc7f8ef85'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,13 +5,13 @@ class Xe < Package
homepage 'https://github.com/chneukirchen/xe/'
version '0.6.1'
source_url 'https://github.com/chneukirchen/xe/archive/v0.6.1.tar.gz'
source_sha1 '76c0a31c4d646314c3e92753a2fec3ae7cedad1d'
source_sha256 '36036d0e9464233d3113af187c473491298ed1168976330d7dd615b8f0521b96'
def self.build
system "make", "PREFIX=/usr/local"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Xextproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '7.3.0'
source_url 'https://www.x.org/archive/individual/proto/xextproto-7.3.0.tar.gz'
source_sha256 '1b1bcdf91221e78c6c33738667a57bd9aaa63d5953174ad8ed9929296741c9f5'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Xf86vidmodeproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '2.3'
source_url 'https://www.x.org/archive/individual/proto/xf86vidmodeproto-2.3.tar.gz'
source_sha256 '4bdb8d868f65783f58d9619232a31a2c309e7ae15d24ce5efc579a732aaa271d'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Xineramaproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '1.2'
source_url 'https://www.x.org/archive/individual/proto/xineramaproto-1.2.tar.gz'
source_sha256 'd1298f7e3bea0790bd3c93516b83ff4551b20b544c50fd231d53fc4b5ba93100'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Xmlclitools < Package
description 'xmlclitools provides four command-line tools for searching, modifying, and formating XML data. The tools are designed to work in conjunction with standard *nix utilities such as grep, sort, and shell scripts.'
homepage 'http://freecode.com/projects/xmlclitools'
version '1.61'
source_url 'ftp://ftp.nstu.ru/pub/sources/langs/xml/xmlclitools-1.61.tar.gz'
source_sha256 '262ce2f119a278ee2f965722f4d23b6b67f8baaa594858b9a0124849726e5a63'
depends_on 'glib'
depends_on 'pcre'
depends_on 'libxml2'
def self.build
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Xorg_proto < Package
is_fake
depends_on 'applewmproto'
depends_on 'bigreqsproto'
depends_on 'compositeproto'
depends_on 'damageproto'
depends_on 'dmxproto'
depends_on 'dri2proto'
depends_on 'dri3proto'
depends_on 'fixesproto'
depends_on 'fontcacheproto'
depends_on 'fontsproto'
depends_on 'glproto'
depends_on 'inputproto'
depends_on 'kbproto'
depends_on 'presentproto'
depends_on 'printproto'
depends_on 'randrproto'
depends_on 'recordproto'
depends_on 'renderproto'
depends_on 'resourceproto'
depends_on 'scrnsaverproto'
depends_on 'trapproto'
depends_on 'videoproto'
depends_on 'windowswmproto'
depends_on 'xcmiscproto'
depends_on 'xextproto'
depends_on 'xf86vidmodeproto'
depends_on 'xineramaproto'
depends_on 'xproto'
end
require 'package'
class Xproto < Package
description 'The protocols for the X window system provide extended functionality for communication between a X client and the server.'
homepage 'https://x.org'
version '7.0.31'
source_url 'https://www.x.org/archive/individual/proto/xproto-7.0.31.tar.gz'
source_sha256 '6d755eaae27b45c5cc75529a12855fed5de5969b367ed05003944cf901ed43c7'
def self.build
system "./configure"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Xxhash < Package
homepage 'http://cyan4973.github.io/xxHash/'
version '0.6.2'
source_url 'https://github.com/Cyan4973/xxHash/archive/v0.6.2.tar.gz'
source_sha1 '303f93e57b4e1ddc627d62a3313eaab82fd11720'
source_sha256 'e4da793acbe411e7572124f958fa53b280e5f1821a8bf78d79ace972950b8f82'
def self.build
system "make"
......
......@@ -5,18 +5,16 @@ class Xzutils < Package
homepage 'http://tukaani.org/xz/'
version '5.2.3-2'
source_url 'http://tukaani.org/xz/xz-5.2.3.tar.gz'
source_sha1 '529638eec3597e429cc54c74551ac0a89169e841'
source_sha256 '71928b357d0a09a12a4b4c5fafca8c31c19b0e7d3b8ebb19622e96f26dbf28cb'
def self.build
system "./configure", "--prefix=/usr/local", "--disable-docs", "--enable-shared", "--disable-static", "--with-pic"
system "./configure", "--prefix=/usr/local", "--libdir=#{CREW_LIB_PREFIX}",
"--disable-docs", "--enable-shared", "--disable-static", "--with-pic"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
# strip debug symbol from library
system "strip -S #{CREW_DEST_DIR}/usr/local/lib/liblzma.so.*"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
......
require 'package'
class Yarn < Package
description 'Yarn is a new package manager for JavaScript and an alternative to npm.'
homepage 'https://yarnpkg.com/en/'
version '0.27.0-20170629.1443'
source_url 'https://nightly.yarnpkg.com/yarn-v0.27.0-20170629.1443.tar.gz'
source_sha256 'e1086d267151cd05896b15023e8c4e253a64e675a80bb38dc294b5b1c86c6656'
depends_on 'node' unless File.exists? '/usr/local/bin/node'
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local"
system "cp -r lib/ #{CREW_DEST_DIR}/usr/local"
system "cp -r bin/ #{CREW_DEST_DIR}/usr/local"
end
end
require 'package'
class Yasm < Package
version '1.3.0'
description 'Yasm is a complete rewrite of the NASM assembler under the new BSD License.'
homepage 'http://yasm.tortall.net/'
source_url 'http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz'
source_sha1 'b7574e9f0826bedef975d64d3825f75fbaeef55e'
source_sha256 '3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f'
def self.build
system './configure --prefix=/usr/local'
......
......@@ -5,10 +5,10 @@ class Zlibpkg < Package
homepage 'http://www.zlib.net/'
version '1.2.11-1'
source_url 'http://www.zlib.net/zlib-1.2.11.tar.gz'
source_sha1 'e6d119755acdf9104d7ba236b1242696940ed6dd'
source_sha256 'c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1'
def self.build
system "./configure"
system "./configure", "--libdir=#{CREW_LIB_PREFIX}"
system "make"
end
......@@ -16,10 +16,7 @@ class Zlibpkg < Package
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
# remove static library since there is no configuration option to not create it.
system "rm", "#{CREW_DEST_DIR}/usr/local/lib/libz.a"
# strip library
system "strip -S #{CREW_DEST_DIR}/usr/local/lib/libz.so.*"
system "rm", "#{CREW_DEST_DIR}#{CREW_LIB_PREFIX}/libz.a"
end
def self.check
......
......@@ -4,10 +4,10 @@ class Zsh < Package
description 'Zsh is a shell designed for interactive use, although it is also a powerful scripting language.'
homepage 'http://zsh.sourceforge.net/'
version '5.0.7'
source_url "http://sourceforge.net/projects/zsh/files/zsh/5.0.7/zsh-5.0.7.tar.gz/download"
source_sha1 "a77519d3a6c251c69b1f4924cacdac17cc8e6a9d"
source_url 'http://sourceforge.net/projects/zsh/files/zsh/5.0.7/zsh-5.0.7.tar.gz/download'
source_sha256 '43f0a4c179ef79bb8c9153575685f7f45f28a3615c8cf96345f503d5b9e7b919'
depends_on "ncurses"
depends_on 'ncurses'
def self.build
system "./configure --prefix=/usr/local"
......
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