Commit aa2259bc authored by Casey Strouse's avatar Casey Strouse Committed by GitHub

Merge pull request #1232 from uberhacker/update-crew-prefix

Abstract prefix, libdir and localstatedir configure options
parents 134d4f86 3701932b
......@@ -3,29 +3,25 @@ require 'package'
class A2png < Package
description 'Converts plain ASCII text into PNG bitmap images.'
homepage 'https://sourceforge.net/projects/a2png/'
version '0.1.5'
version '0.1.5-1'
source_url 'https://sourceforge.net/projects/a2png/files/a2png/0.1.5/a2png-0.1.5.tar.bz2'
source_sha256 'd3ae1c771f5180d93f35cded76d9bb4c4cc2023dbe65613e78add3eeb43f736b'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/a2png-0.1.5-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/a2png-0.1.5-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/a2png-0.1.5-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/a2png-0.1.5-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '5ab9734f65e6cf3dc414713d77c9f0347e6a5c6ba7c3bf7057739cb8e06ee301',
armv7l: '5ab9734f65e6cf3dc414713d77c9f0347e6a5c6ba7c3bf7057739cb8e06ee301',
i686: '03b5deb42bb5a699e797cb4c9735131a41bbb933ad332bfd5e787840184e0a59',
x86_64: 'af075e42a66c48067db3a3f12dc771b407d0f7b4e5a1ab5d012b535098b015f2',
})
depends_on 'cairo'
def self.build
system './configure --enable-cairo \
--with-cairo-lib=/usr/local/lib \
--with-cairo-include=/usr/local/include/cairo'
system "./configure \
--prefix=#{CREW_PREFIX} \
--libdir=#{CREW_LIB_PREFIX} \
--localstatedir=#{CREW_PREFIX}/tmp \
--enable-cairo \
--with-cairo-lib=#{CREW_LIB_PREFIX} \
--with-cairo-include=#{CREW_PREFIX}/include/cairo"
system 'make'
end
......
......@@ -3,29 +3,24 @@ 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'
version '4.14-1'
source_url 'https://ftp.gnu.org/gnu/a2ps/a2ps-4.14.tar.gz'
source_sha256 'f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/a2ps-4.14-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/a2ps-4.14-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/a2ps-4.14-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/a2ps-4.14-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'c388a6a5eff22947cf9736e2afb74076166667efb5e383521b7669323f8b3935',
armv7l: 'c388a6a5eff22947cf9736e2afb74076166667efb5e383521b7669323f8b3935',
i686: '41705706fd35654a82614f9765066ddad5c775c4874a680d00df9ec357c5e3a0',
x86_64: 'f457623eac89e9b57b1784ff44016e4a53c224dbd0d3384a83d488e65cadd189',
})
depends_on 'gperf'
depends_on 'filecmd'
def self.build
system './configure'
system 'make'
system "./configure \
--prefix=#{CREW_PREFIX} \
--libdir=#{CREW_LIB_PREFIX} \
--localstatedir=#{CREW_PREFIX}/tmp"
system "make"
end
def self.install
......
......@@ -3,28 +3,24 @@ require 'package'
class Acl < Package
description 'Commands for Manipulating POSIX Access Control Lists.'
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'
version '2.2.52-1'
source_url 'https://download.savannah.gnu.org/releases/acl/acl-2.2.52.src.tar.gz'
source_sha256 '179074bb0580c06c4b4137be4c5a92a701583277967acdb5546043c7874e0d23'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/acl-2.2.52-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/acl-2.2.52-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/acl-2.2.52-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/acl-2.2.52-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'a5af9c618a1e8db3641b16b84680a852bbe9fa651b8097087b9b35279eb07a83',
armv7l: 'a5af9c618a1e8db3641b16b84680a852bbe9fa651b8097087b9b35279eb07a83',
i686: 'd12b8be543c92eb789d80abe09a84e8a9261410379bd23829d3dc7305aabe608',
x86_64: 'c883356b00cfa258cb3e62f9af734ac2a951e9f50faa6b244736f5c03f5662e7',
})
depends_on 'attr'
def self.build
system './configure --prefix=/usr/local --libexecdir=/usr/local/lib --disable-static'
system 'make'
system "./configure \
--prefix=#{CREW_PREFIX} \
--libdir=#{CREW_LIB_PREFIX} \
--libexecdir=#{CREW_LIB_PREFIX} \
--disable-static"
system "make"
end
def self.install
......
......@@ -3,21 +3,13 @@ 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.1.0'
version '2.1.0-1'
source_url 'https://github.com/ggreer/the_silver_searcher/archive/2.1.0.tar.gz'
source_sha256 'cb416a0da7fe354a009c482ae709692ed567f8e7d2dad4d242e726dd7ca202f0'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/ag-2.1.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/ag-2.1.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/ag-2.1.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/ag-2.1.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '9068764c9f859f2686bdf26f6a0b30bda895ca53a1daf8779dcf9567a24f047c',
armv7l: '9068764c9f859f2686bdf26f6a0b30bda895ca53a1daf8779dcf9567a24f047c',
i686: 'ff04901b182b707cf8215140bc82239b52504c9b1403ba06b3d8ea2935c5b4e5',
x86_64: 'b9999eb7e207d5794181f112cb06d33d658e232b53385172533dcba91e7b8c43',
})
depends_on "autoconf"
......@@ -28,7 +20,9 @@ class Ag < Package
def self.build
system "autoreconf", "-fiv"
system "./configure"
system "./configure \
--prefix=#{CREW_PREFIX} \
--libdir=#{CREW_LIB_PREFIX}"
system "make"
end
......
......@@ -3,40 +3,32 @@ 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-1'
version '0.37-2'
source_url 'http://www.winfield.demon.nl/linux/antiword-0.37.tar.gz'
source_sha256 '8e2c000fcbc6d641b0e6ff95e13c846da3ff31097801e86702124a206888f5ac'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/antiword-0.37-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/antiword-0.37-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/antiword-0.37-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/antiword-0.37-1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'bf715a95e9b95ad8a7cb154d69f9489d9eb55145b85dc2cdff18f1ebac8a942d',
armv7l: 'bf715a95e9b95ad8a7cb154d69f9489d9eb55145b85dc2cdff18f1ebac8a942d',
i686: '91586f23b5cddb8918a3fa83f43387516b4576e1be900d608b5a3bde6aeccbfd',
x86_64: 'c73e352b73ff7ac4007426b339f8100e97810efb5ff7c77fb0f62aa794d0b473',
})
def self.build
system 'make'
system "sed -i 's,GLOBAL_RESOURCES_DIR = /usr/share/antiword,GLOBAL_RESOURCES_DIR = #{CREW_PREFIX}/share/antiword,' Makefile.Linux"
system "sed -i 's,/share/,/,g' antiword.h"
system "sed -i 's,/usr/antiword,#{CREW_PREFIX}/share/antiword,g' antiword.h"
system "sed -i 's,/usr/share/antiword,#{CREW_PREFIX}/share/antiword,' Docs/antiword.1"
system "make"
end
def self.install
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/share/antiword,g' antiword.h"
system "sed -i 's,/usr/share/antiword,/usr/local/share/antiword,' Docs/antiword.1"
system "mkdir -p /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/share/antiword"
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
system "mkdir -p #{CREW_DEST_PREFIX}/man/man1"
system "mkdir -p #{CREW_DEST_PREFIX}/share/antiword"
system "cp antiword #{CREW_DEST_PREFIX}/bin"
system "cp Docs/antiword.1 #{CREW_DEST_PREFIX}/man/man1"
system "cp Resources/* #{CREW_DEST_PREFIX}/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
......
......@@ -3,28 +3,18 @@ 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.6.2'
version '1.6.2-1'
source_url 'http://apache.claz.org/apr/apr-1.6.2.tar.bz2'
source_sha256 '09109cea377bab0028bba19a92b5b0e89603df9eab05c0f7dbd4dd83d48dcebd'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/apr-1.6.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/apr-1.6.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/apr-1.6.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/apr-1.6.2-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'e93f070e23ec7c8e80646d69c1d3c03444d6317562f5856077ef599c8eddd03c',
armv7l: 'e93f070e23ec7c8e80646d69c1d3c03444d6317562f5856077ef599c8eddd03c',
i686: '865b7ff09833786362ee2846a35cda6d8df7e6bafbc505adbbcd16decf98481f',
x86_64: '2c1a686695dcb949a72b99c2ff75f12dde2ef7dcad531ba7d3ede0abcd004f06',
})
depends_on 'buildessential'
def self.build
system './configure --prefix=/usr/local'
system 'make'
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
end
def self.install
......
......@@ -3,35 +3,28 @@ require 'package'
class Apriconv < Package
description 'a portable implementation of the iconv() library'
homepage 'http://apr.apache.org/'
version '1.2.1'
version '1.2.1-1'
source_url 'http://apache.claz.org/apr/apr-iconv-1.2.1.tar.bz2'
source_sha256 'c46c919bc2a36a705f91f4dea444b18a83236eef97a417528a988113b3a7e46e'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/apriconv-1.2.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/apriconv-1.2.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/apriconv-1.2.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/apriconv-1.2.1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'e9925a67c3f0e1280acf049730a39af4fe7c003835f07fe2e39085d18602e829',
armv7l: 'e9925a67c3f0e1280acf049730a39af4fe7c003835f07fe2e39085d18602e829',
i686: 'c3c5809a328a2caab28011f513315c638b3cd8582aaf509e726e6621d7af7132',
x86_64: '4317c04f0c4b8a44e6a6343077f9e46180d6a32ddc14ac437d69fb35a96b32b0',
})
depends_on 'apr'
depends_on 'httpd'
depends_on 'libtool'
def self.build
system './configure \
--prefix=/usr/local \
--with-apr=/usr/local'
system 'make'
system "./configure \
--prefix=#{CREW_PREFIX} \
--with-apr=#{CREW_PREFIX}"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "libtool --mode=finish #{CREW_DEST_DIR}/usr/local/lib/iconv"
system "libtool --mode=finish #{CREW_DEST_PREFIX}/lib/iconv"
end
end
......@@ -3,29 +3,24 @@ 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.6.0'
version '1.6.0-1'
source_url 'http://apache.claz.org/apr/apr-util-1.6.0.tar.bz2'
source_sha256 '8474c93fa74b56ac6ca87449abe3e155723d5f534727f3f33283f6631a48ca4c'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/aprutil-1.6.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/aprutil-1.6.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/aprutil-1.6.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/aprutil-1.6.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '0c43c0acf059f91ed31c429facf69cc3c381093fd48f06ff377897199bdae49e',
armv7l: '0c43c0acf059f91ed31c429facf69cc3c381093fd48f06ff377897199bdae49e',
i686: 'da915a6f7c4e5827f177b0f5473295d3a8886704e383e11a167961690d7a532b',
x86_64: '3054b966fa64e6b793210563fe01195238cbbacc4d31c33830cc2bfc39925836',
})
depends_on 'apr'
depends_on 'expat'
def self.build
system './configure --prefix=/usr/local --with-apr=/usr/local'
system 'make'
system "./configure \
--prefix=#{CREW_PREFIX} \
--libdir=#{CREW_LIB_PREFIX} \
--with-apr=#{CREW_PREFIX}"
system "make"
end
def self.install
......
......@@ -3,21 +3,13 @@ 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.16'
version '3.16-1'
source_url 'http://www.catb.org/~esr/ascii/ascii-3.16.tar.gz'
source_sha256 'a94bb3970e8f1f63566f055517aecbdd46b11c4ccf142f77ffb80a79994f03a9'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/ascii-3.16-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/ascii-3.16-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/ascii-3.16-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/ascii-3.16-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '960f68dac5375dfe116f0b1a299761279b35890a1926b70607130eeebe052c45',
armv7l: '960f68dac5375dfe116f0b1a299761279b35890a1926b70607130eeebe052c45',
i686: 'e3df5f81fdfc3ff137a50372a50d79e44902c0569e12c253dcaddec824ec5259',
x86_64: '4138b0c85c565d38cdcbea96edbd223551ff640d65868dc00e016cc72f64bc46',
})
def self.build
......@@ -25,8 +17,10 @@ class Ascii < Package
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp ascii #{CREW_DEST_DIR}/usr/local/bin"
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
system "mkdir -p #{CREW_DEST_PREFIX}/man/man1"
system "cp ascii #{CREW_DEST_PREFIX}/bin"
system "cp ascii.1 #{CREW_DEST_PREFIX}/man/man1"
end
end
......@@ -3,7 +3,7 @@ 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-2'
version '0.60.7-rc1-3'
source_url 'ftp://alpha.gnu.org/gnu/aspell/aspell-0.60.7-rc1.tar.gz'
source_sha256 '86b5662f24316142f70c5890787bdc5596625ca3604dfe85926ee61f27f2365e'
......@@ -12,12 +12,12 @@ class Aspell < Package
binary_sha256 ({
})
depends_on 'ruby' unless File.exists? '/usr/local/bin/ruby'
depends_on 'ruby' unless File.exists? "#{CREW_PREFIX}/bin/ruby"
depends_on 'ncursesw'
def self.build
system "./configure --libdir=#{CREW_LIB_PREFIX}"
system 'make'
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
end
def self.install
......
......@@ -3,27 +3,22 @@ require 'package'
class Attr < Package
description 'Commands for Manipulating Filesystem Extended Attributes.'
homepage 'http://savannah.nongnu.org/projects/attr'
version '2.4.47'
version '2.4.47-1'
source_url 'http://download.savannah.gnu.org/releases/attr/attr-2.4.47.src.tar.gz'
source_sha256 '25772f653ac5b2e3ceeb89df50e4688891e21f723c460636548971652af0a859'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/attr-2.4.47-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/attr-2.4.47-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/attr-2.4.47-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/attr-2.4.47-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '082b73f0a150d15c3c9648ad28295f01ac73424c8d32d9b6cda8b7337954dc7c',
armv7l: '082b73f0a150d15c3c9648ad28295f01ac73424c8d32d9b6cda8b7337954dc7c',
i686: 'da6b9cd56ea0f0bc4396fb5db5ecb6056b1e09d5a678d8e3cce6f28bf6c7ed2d',
x86_64: '1b941d8dc1f5bc0bb810d28b9db1c6e93422e961169c603c09d10ba14e7afe49',
})
depends_on 'gettext'
def self.build
system "./configure --prefix=/usr/local --disable-static"
system "./configure \
--prefix=#{CREW_PREFIX} \
--libdir=#{CREW_LIB_PREFIX} \
--disable-static"
system "make"
end
......
......@@ -4,16 +4,23 @@ class Autossh < Package
description 'The purpose of autossh is to start an SSH connection, monitor it, and restart it if necessary.'
homepage 'http://www.harding.motd.ca/autossh'
# No releases available so the only option is to use the master branch
version '9c72d3'
version '9c72d3b'
source_url 'https://github.com/jonhiggs/autossh/archive/9c72d3b6f77bfe2ad57844128ea46019fecb7fdb.tar.gz'
source_sha256 '39497e1ccd80f781282e8f6387bb3ae5b1501807a39aeced95e8be57c3778cba'
def self.build
system './configure'
system 'make'
system "./configure --prefix=#{CREW_PREFIX}"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
system "mkdir -p #{CREW_DEST_PREFIX}/share/doc/autossh"
system "mkdir -p #{CREW_DEST_PREFIX}/share/examples/autossh"
system "mkdir -p #{CREW_DEST_PREFIX}/man/man1"
system "cp autossh #{CREW_DEST_PREFIX}/bin"
system "cp CHANGES README #{CREW_DEST_PREFIX}/share/doc/autossh"
system "cp autossh.host rscreen #{CREW_DEST_PREFIX}/share/examples/autossh"
system "cp autossh.1 #{CREW_DEST_PREFIX}/man/man1"
end
end
......@@ -3,34 +3,26 @@ 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.121'
source_url 'https://github.com/aws/aws-cli/archive/1.11.121.tar.gz'
source_sha256 'c667e77880a093d5ef3d635f19e7eab3cb0b7527f648d74e571fca8d170474a8'
version '1.11.156'
source_url 'https://github.com/aws/aws-cli/archive/1.11.156.tar.gz'
source_sha256 'e16e4e7e56b94bcbd97e1ef2131f8b760ab0e06ac80b73caae1304c9b6d2a1e2'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/aws-1.11.121-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/aws-1.11.121-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/aws-1.11.121-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/aws-1.11.121-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '1624bdbf0a968b17d45a85d4415c2240e15fc6c6e2afb8a406787a7e30a92b42',
armv7l: '1624bdbf0a968b17d45a85d4415c2240e15fc6c6e2afb8a406787a7e30a92b42',
i686: 'b9842c00b418b90f83102d7096495c3c7eca3d52b5f5ed88506ad53717bade23',
x86_64: '3fb6256209843cc0dcfaf81089516787427f77697e9b561b920eedf8aee864a3',
})
depends_on 'python27' unless File.exists? '/usr/local/bin/python'
depends_on 'python27' unless File.exists? "#{CREW_PREFIX}/bin/python"
depends_on 'unzip'
def self.install
system "wget https://s3.amazonaws.com/aws-cli/awscli-bundle.zip"
system "unzip awscli-bundle.zip"
system "awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws"
system "chmod +x /usr/local/bin/aws"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/aws"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp -r /usr/local/aws #{CREW_DEST_DIR}/usr/local"
system "cp /usr/local/bin/aws #{CREW_DEST_DIR}/usr/local/bin"
system "awscli-bundle/install -i #{CREW_PREFIX}/share/aws -b #{CREW_PREFIX}/bin/aws"
system "chmod +x #{CREW_PREFIX}/bin/aws"
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
system "mkdir -p #{CREW_DEST_PREFIX}/share"
system "cp #{CREW_PREFIX}/bin/aws #{CREW_DEST_PREFIX}/bin"
system "cp -r #{CREW_PREFIX}/share/aws #{CREW_DEST_PREFIX}/share"
end
end
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