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
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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