Commit 89507605 authored by Ed Reel's avatar Ed Reel

Change packages d-h from sha1 to sha256

parent b7e11402
......@@ -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
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'
......@@ -8,17 +7,17 @@ class Dart < Package
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_sha1 '24d132e12d7982ae0c7f41bf78e7e45aaae303cb'
source_sha1 '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_sha1 'c2ff2a1c499b1dd3f8e547d7f012fabf46e06108'
source_sha1 'f774330896e60df918848075f3f1d9ada414bcce4fe81504e2646a79536eb333'
when 'armv7l'
source_url 'https://storage.googleapis.com/dart-archive/channels/stable/release/1.24.2/sdk/dartsdk-linux-arm-release.zip'
source_sha1 'c14d211981c405a754963941d3c8be6d0da22a8c'
source_sha1 'c65d7ff111e396a9c7a691fc8470abe5e58cccdf70ef74c191d1cc527dc7c6fb'
when 'aarch64'
source_url 'https://storage.googleapis.com/dart-archive/channels/stable/release/1.24.2/sdk/dartsdk-linux-arm64-release.zip'
source_sha1 'cf6b96eb5b88b1865bf357c2c9fd7ad8d64f763f'
#
source_sha1 '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
......
......@@ -5,7 +5,7 @@ class Dbus < Package
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'
source_sha256 'ac12df14a0fd0a9ecb56d02e2988cd313b91116d048aaaf53786ad6ccea9906d'
depends_on 'expat'
......
......@@ -5,7 +5,7 @@ class Di < Package
homepage 'http://gentoo.com/di/'
version '4.43'
source_url 'http://gentoo.com/di/di-4.43.tar.gz'
source_sha1 'ddced0d59d29ccdcbc4282bc7464a925d14955e1'
source_sha256 'c8374d2ab7a82274d733be01639f48440accf4c70c70b152f5fa3b1c8a9745e0'
def self.build
system "sed -i '40s,= ,= $(DESTDIR)/,' Makefile" # set correct bin path
......
......@@ -5,7 +5,7 @@ class Diffutils < Package
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'
source_sha256 'dad398ccd5b9faca6b0ab219a036453f62a602a56203ac659b43e889bec35533'
depends_on "libsigsegv"
......
......@@ -5,7 +5,7 @@ class Diskscan < Package
homepage 'http://blog.disksurvey.org/proj/diskscan/'
version '0.19'
source_url 'https://github.com/baruch/diskscan/archive/0.19.tar.gz'
source_sha1 '74777d57af378fffe209086a026b788cd35d4d05'
source_sha256 '92a7298af99043e1e584e4343040b6574b9229f44c122e1cbcb90ba478d928d1'
depends_on 'cmake'
depends_on 'termcap'
......
......@@ -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"
......
......@@ -5,7 +5,7 @@ class Dos2unix < Package
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'
source_sha256 '8ccda7bbc5a2f903dafd95900abb5bf5e77a769b572ef25150fde4056c5f30c5'
def self.build
system 'make'
......
......@@ -5,21 +5,18 @@ class Dropbox < Package
homepage 'https://www.dropbox.com/'
version '28.4.14'
case ARCH
when 'x86'
when 'i686'
source_url 'https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86-28.4.14.tar.gz'
source_sha1 '32f5e412b8f630c057bc4d4a8a034fe9af685ddc'
source_sha256 '8ab28710d819ad2f790a7f5d5132a58d28ea9751f2f04f234bc1f9f9979c5c83'
when 'x86_64'
source_url 'https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-28.4.14.tar.gz'
source_sha1 '40f4f37b64394d42f4fa3d6b3d53553f854587e4'
else
abort 'Unable to install dropboxd. Supported architectures include x86 and x86_64 only.'.lightred
source_sha256 'a2385e48ab8ea8403f5c51c297105019a90cb58773bf383c6205bd3586a7ee0a'
end
depends_on 'python'
depends_on 'python' unless File.exists? '/usr/local/bin/python'
def self.install
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"
......
......@@ -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
......
......@@ -7,7 +7,7 @@ class Elixir < Package
depends_on 'erlang'
source_url 'https://github.com/elixir-lang/elixir/archive/v1.3.1.tar.gz'
source_sha1 '29dc1b4da5e051ad71ad84b6886d7c184e4b9add'
source_sha256 'c4ab90a0d8d7ed4159dd6b7e1bcbcdbdb8c6177a35328d774fccf00346b4b42c'
def self.build
system 'make clean test'
......
......@@ -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
......
......@@ -5,7 +5,7 @@ class Erlang < Package
homepage 'http://www.erlang.org/'
version '19.2'
source_url 'http://www.erlang.org/download/otp_src_19.2.tar.gz'
source_sha1 'f5188ba6f496b9d1c37597705d095b4e6aa7bcd3'
source_sha256 'a016b3ef5dac1e532972617b2715ef187ecb616f7cd7ddcfe0f1d502f5d24870'
def self.build
system 'export ERL_OTP=`pwd`'
......
......@@ -5,7 +5,7 @@ class Expat < Package
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'
source_sha256 'd9e50ff2d19b3538bd2127902a89987474e1a4db8e43a66a4d1a712ab9a504ff'
def self.build
system "./configure", "--libdir=#{CREW_LIB_PREFIX}", "--enable-shared", "--disable-static", "--with-pic"
......
......@@ -5,7 +5,7 @@ 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"
......
......@@ -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"
......
......@@ -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,7 +5,7 @@ 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"
......
......@@ -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'
......
......@@ -5,7 +5,7 @@ class Fish < Package
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'
source_sha256 'f8c0edadca2de379ccf305aeace660a9255fa2180c72e85e97705a24c256b2a5'
depends_on 'ncurses'
......
......@@ -5,7 +5,7 @@ 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
......
......@@ -5,7 +5,7 @@ class Fontconfig < Package
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'
source_sha256 '73f6d323c7bcfbde25d78397675191d55b8f4139132c6a9444410f3a2d8a9a95'
depends_on 'pkgconfig'
depends_on 'freetype'
......
......@@ -5,7 +5,7 @@ class Foremost < Package
homepage 'http://foremost.sourceforge.net/'
version '1.5.7'
source_url 'http://foremost.sourceforge.net/pkg/foremost-1.5.7.tar.gz'
source_sha1 'c26d68990d7bd5245d5f7dc83c9217642a7a2056'
source_sha256 '502054ef212e3d90b292e99c7f7ac91f89f024720cd5a7e7680c3d1901ef5f34'
def self.build
system "make"
......
......@@ -5,7 +5,7 @@ class Freetype < Package
homepage 'https://www.freetype.org/'
version '2.7.1'
source_url 'http://download.savannah.gnu.org/releases/freetype/freetype-2.7.1.tar.gz'
source_sha1 '60fb8097901a887b8e8f6e7f777ef0516ae68022'
source_sha256 '162ef25aa64480b1189cdb261228e6c5c44f212aac4b4621e28cf2157efb59f5'
def self.build
system "./configure CFLAGS=\" -fPIC\""
......
......@@ -5,7 +5,7 @@ class Fribidi < Package
homepage 'https://www.fribidi.org/'
version '0.19.7'
source_url 'https://www.fribidi.org/download/fribidi-0.19.7.tar.bz2'
source_sha1 'e470e078eafe6c065708def3e037c129c0d7367d'
source_sha256 '08222a6212bbc2276a2d55c3bf370109ae4a35b689acbc66571ad2a670595a8e'
def self.build
system "./configure"
......
......@@ -5,7 +5,7 @@ class Fuse < Package
homepage 'https://github.com/libfuse/libfuse'
version '2.9.7'
source_url 'https://github.com/libfuse/libfuse/releases/download/fuse-2.9.7/fuse-2.9.7.tar.gz'
source_sha1 'cd174e3d37995a42fad32fac92f76cd18e24174f'
source_sha256 '832432d1ad4f833c20e13b57cf40ce5277a9d33e483205fc63c78111b3358874'
def self.build
system "./configure"
......
......@@ -5,7 +5,7 @@ class Gawk < Package
homepage 'https://www.gnu.org/software/gawk/'
version '4.1.4-1'
source_url 'http://ftp.gnu.org/gnu/gawk/gawk-4.1.4.tar.xz'
source_sha1 'd67e00e2f6178e9cbd2c0ba923ae157bc0b3b570'
source_sha256 '53e184e2d0f90def9207860531802456322be091c7b48f23fdc79cda65adc266'
depends_on 'libsigsegv'
depends_on 'readline' => :build
......
......@@ -5,7 +5,7 @@ class Gc < Package
homepage 'http://www.hboehm.info/gc/'
version '7.2g'
source_url 'http://www.hboehm.info/gc/gc_source/gc-7.2g.tar.gz'
source_sha1 'd470f6c0dcb55f8a4f26199731edf006eba5b85c'
source_sha256 '584e29e2f1be4a389ca30f78dcd2c991031e7d1e1eb3d7ce2a0f975218337c2f'
def self.build
system "./configure --prefix=/usr/local"
......@@ -13,6 +13,6 @@ class Gc < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -11,11 +11,11 @@ class Gcc < Package
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.7/gcc-4.9.4-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.7/gcc-4.9.4-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
aarch64: 'b34938c0ec56dc7bf7c03d4d5596232dede65c53',
armv7l: 'b34938c0ec56dc7bf7c03d4d5596232dede65c53',
i686: '2f18ba781298d4275dd54a339ea415764a4d6fee',
x86_64: '4e8e609fafab6ebb527cad7ecabce481c1b419e4',
binary_sha256 ({
aarch64: 'e0bf0855f30aa2084e86b0d382c99b6d15bbc1937f4ea6a993ab06ca1a80bd70',
armv7l: 'e0bf0855f30aa2084e86b0d382c99b6d15bbc1937f4ea6a993ab06ca1a80bd70',
i686: '66a6f4f1b08c1f0f09bc58ccb65b35e48912bf529d1de8452e3e8faeff75bc0c',
x86_64: '78cd2fd1a95aee25a9804371118adad78265237718068ed86d90d82e41ca02ce',
})
depends_on 'binutils'
......
......@@ -5,7 +5,7 @@ class Gdal < Package
homepage 'http://www.gdal.org/'
version '1.11.2-1'
source_url 'http://download.osgeo.org/gdal/1.11.2/gdal-1.11.2.tar.gz'
source_sha1 '6f3ccbe5643805784812072a33c25be0bbff00db'
source_sha256 '66bc8192d24e314a66ed69285186d46e6999beb44fc97eeb9c76d82a117c0845'
depends_on 'python27'
depends_on 'curl'
......
......@@ -3,9 +3,9 @@ require 'package'
class Gdb < Package
description 'GDB, the GNU Project debugger, allows you to see what is going on \'inside\' another program while it executes -- or what another program was doing at the moment it crashed.'
homepage 'https://www.gnu.org/software/gdb/'
version '8.0'
version '8.0'
source_url 'http://ftp.gnu.org/gnu/gdb/gdb-8.0.tar.xz'
source_sha1 '148c8e783ebf9b281241d0566db59961191ec64d'
source_sha256 'f6a24ffe4917e67014ef9273eb8b547cb96a13e5ca74895b06d683b391f3f4ee'
depends_on "buildessential"
depends_on "ncurses"
......
require 'package'
class Gdbm < Package
description 'GNU dbm is a set of database routines that use extensible hashing.'
homepage 'https://www.gnu.org/software/gdbm/'
version '1.13'
source_url 'ftp://ftp.gnu.org/gnu/gdbm/gdbm-1.13.tar.gz'
source_sha1 '7f2a8301497bbcac91808b011ca533380914fd21'
source_sha256 '9d252cbd7d793f7b12bcceaddda98d257c14f4d1890d851c386c37207000a253'
depends_on 'readline'
def self.build
system './configure', '--disable-static', '--enable-shared', '--with-pic'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
......
......@@ -6,29 +6,31 @@ class Gdrive < Package
version '2.1.0'
source_url 'https://github.com/prasmussen/gdrive/archive/2.1.0.tar.gz'
source_sha1 '2abfb27e9c0bfa1904bcfb6bd01b32ed6884db75'
source_sha256 'a1ea624e913e258596ea6340c8818a90c21962b0a75cf005e49a0f72f2077b2e'
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
case ARCH
when 'x86_64'
system "wget -L -O #{CREW_DEST_DIR}/usr/local/bin/gdrive https://docs.google.com/uc?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA&export=download"
when 'aarch64'
system "wget -L -O #{CREW_DEST_DIR}/usr/local/bin/gdrive https://docs.google.com/uc?id=0B3X9GlR6EmbnamliN0Rld01oRVk&export=download"
system "sleep 10"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA1.hexdigest( File.read("#{CREW_DEST_DIR}/usr/local/bin/gdrive") ) == '4fd8391b300cac45963e53da44dcfe68da08d843'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{CREW_DEST_DIR}/usr/local/bin/gdrive") ) == '83cfcad8e1f39d3b7ae9407d34a624d1951d616cadb89841613b588cac468fa8'
when 'armv7l'
system "wget -L -O #{CREW_DEST_DIR}/usr/local/bin/gdrive https://docs.google.com/uc?id=0B3X9GlR6EmbnamliN0Rld01oRVk&export=download"
system "sleep 10"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA1.hexdigest( File.read("#{CREW_DEST_DIR}/usr/local/bin/gdrive") ) == '3d670905e13edf96d43c9f97293bdba62c740926'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{CREW_DEST_DIR}/usr/local/bin/gdrive") ) == '83cfcad8e1f39d3b7ae9407d34a624d1951d616cadb89841613b588cac468fa8'
when 'x86_64'
system "wget -L -O #{CREW_DEST_DIR}/usr/local/bin/gdrive https://docs.google.com/uc?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA&export=download"
system "sleep 10"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{CREW_DEST_DIR}/usr/local/bin/gdrive") ) == 'f31b441c5cdb835ee69849a62856e35c17954fd5b600f6de8a6f5d7bd7bf0420'
when 'mips64'
system "wget -L -O #{CREW_DEST_DIR}/usr/local/bin/gdrive https://docs.google.com/uc?id=0B3X9GlR6Embna2lzdEJ6blFzSzQ&export=download"
system "sleep 10"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA1.hexdigest( File.read("#{CREW_DEST_DIR}/usr/local/bin/gdrive") ) == '334bbd74b87fd1d05550e366724fe8e3c9e61ca4'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{CREW_DEST_DIR}/usr/local/bin/gdrive") ) == 'df9fc86b782bb313a65633b90294e1167993bf7527e9d1aecdbb8937571bdb20'
when 'ppc64'
system "wget -L -O #{CREW_DEST_DIR}/usr/local/bin/gdrive https://docs.google.com/uc?id=0B3X9GlR6EmbnS09XMzhfRXBnUzA&export=download"
system "sleep 10"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA1.hexdigest( File.read("#{CREW_DEST_DIR}/usr/local/bin/gdrive") ) == '70a1ac5be9ba819da5cf7a8dbd513805a26509ac'
else
abort 'Unable to install gdrive. Architecture not supported.'.lightred
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{CREW_DEST_DIR}/usr/local/bin/gdrive") ) == '3560ef4971cb9fc02785fa652bb9d3525253b853a744540cc717e578c329bfe4'
end
system "chmod +x #{CREW_DEST_DIR}/usr/local/bin/gdrive"
end
......
......@@ -5,7 +5,7 @@ class Geoip < Package
homepage 'https://github.com/maxmind/geoip-api-c/'
version '1.6.9'
source_url 'https://github.com/maxmind/geoip-api-c/releases/download/v1.6.9/GeoIP-1.6.9.tar.gz'
source_sha1 'ac0deb2309c14d5763e82fa4139de1f3193ab6b1'
source_sha256 '4b446491843de67c1af9b887da17a3e5939e0aeed4826923a5f4bf09d845096f'
def self.build
system "./configure"
......
......@@ -5,7 +5,7 @@ class Geos < Package
homepage 'https://trac.osgeo.org/geos/'
version '3.4.2-1'
source_url 'http://download.osgeo.org/geos/geos-3.4.2.tar.bz2'
source_sha1 'b8aceab04dd09f4113864f2d12015231bb318e9a'
source_sha256 '15e8bfdf7e29087a957b56ac543ea9a80321481cef4d4f63a7b268953ad26c53'
def self.build
system "./configure CFLAGS=\" -fPIC\""
......
......@@ -5,7 +5,7 @@ class Gettext < Package
homepage 'https://www.gnu.org/software/gettext/'
version '0.19.8.1'
source_url 'ftp://ftp.gnu.org/gnu/gettext/gettext-0.19.8.1.tar.xz'
source_sha1 'e0fe90ede22f7f16bbde7bdea791a835f2773fc9'
source_sha256 '105556dbc5c3fbbc2aa0edb46d22d055748b6f5c7cd7a8d99f8e7eb84e938be4'
depends_on 'diffutils' => :build
depends_on 'ncurses'
......
......@@ -5,7 +5,7 @@ class Git < Package
homepage 'https://git-scm.com/'
version '2.13.0'
source_url 'https://github.com/git/git/archive/v2.13.0.tar.gz'
source_sha1 'd0078048574b824bc0d202deb3830717a955eb3e'
source_sha256 '0c0ff3ce35c44e5e19de6589b824075c9cdf8ff84c5c1099a56545398a8729e4'
# use system zlibpkg, openssl, curl, expat
depends_on 'zlibpkg' => :build
......
......@@ -5,7 +5,7 @@ class Glib < Package
homepage 'https://developer.gnome.org/glib/'
version '2.40.2'
source_url 'https://ftp.gnome.org/pub/gnome/sources/glib/2.40/glib-2.40.2.tar.xz'
source_sha1 'dcb8ad22b1c0e6969a844029ffb91a6def7ad240'
source_sha256 'e8ff8af2950897e805408480c454c415d1eade4e670ec5fb507f5e5853726c7a'
depends_on 'libffi'
depends_on 'gettext'
......
......@@ -10,10 +10,10 @@ class Glibc219 < Package
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.7/glibc-2.19-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.7/glibc-2.19-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
aarch64: '4e318b8250d90a52d0f19963be60de41a8eccba4',
armv7l: '4e318b8250d90a52d0f19963be60de41a8eccba4',
i686: '156c2b7bcb0ed9f8604d0a91908871648c55e260',
x86_64: 'e094f717ec2f5add484994a8537903fa0d07d7f8',
binary_sha256 ({
aarch64: '7524d818571059970caece1b4616d947c4937a591383ed5644636c45d9c16bdd',
armv7l: '7524d818571059970caece1b4616d947c4937a591383ed5644636c45d9c16bdd',
i686: 'b9eb79ec3bfe59c85b7520673cbd5eb24414a176e040fca9a5fb57e82e4dd28e',
x86_64: '173200b006598bc46c964531a87ffde6cae1656759d5f96c54bc73b322e0af46',
})
end
......@@ -10,10 +10,10 @@ class Glibc223 < Package
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.7/glibc-2.23-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.7/glibc-2.23-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
aarch64: '0fecd72cda0d24833750553015e88fb6624e62a3',
armv7l: '0fecd72cda0d24833750553015e88fb6624e62a3',
i686: '5260ed2243ca382c5fd780f3833a0d39b519f1fc',
x86_64: '57e08745e97f79a49283847c92ac5164072db14c',
binary_sha256 ({
aarch64: '54cfc66b712bb3a0f5619a90e82db98c34c949e93902cfeb6140da38ed73a19d',
armv7l: '54cfc66b712bb3a0f5619a90e82db98c34c949e93902cfeb6140da38ed73a19d',
i686: '9a51fe1485eb84b13d4c0fe03839fd9534a48e81c6cb22e845db17a6e711106d',
x86_64: '28fd0a4aa514081e1ae098421e47d0172e818e4435b1a2ffd447d4f7cb6799e4',
})
end
......@@ -10,10 +10,10 @@ class Gmp < Package
i686: 'https://github.com/jam7/chrome-cross/releases/download/v1.7/gmp-6.1.2-chromeos-i686.tar.xz',
x86_64: 'https://github.com/jam7/chrome-cross/releases/download/v1.7/gmp-6.1.2-chromeos-x86_64.tar.xz',
})
binary_sha1 ({
aarch64: '63b9465ad81d2ad68f6b328f1dada69337c4f71e',
armv7l: '63b9465ad81d2ad68f6b328f1dada69337c4f71e',
i686: '51d647a9a3bd14d0d5f8acbd6f4baf4401e155b4',
x86_64: 'a69e303b879264de36ca3e075dd3601f77538163',
binary_sha256 ({
aarch64: '74c06e1c7fa3b6be68613ba72167416141674a70044452706b9612f6dd4d4267',
armv7l: '74c06e1c7fa3b6be68613ba72167416141674a70044452706b9612f6dd4d4267',
i686: 'd9c8f4c0102d30d17e75c753491c527138ead8238681368e265a58edc8b3ae40',
x86_64: '09e6e4a1575da39471e0ae713e54d62dfcb347d913afc3f7f2d49e8489c8d54a',
})
end
......@@ -5,7 +5,7 @@ class Gnupg < Package
homepage 'https://gnupg.org/'
version '2.1.21'
source_url 'https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.1.21.tar.bz2'
source_sha1 '1852c066bc21893bc52026ead78edf50fdf15e13'
source_sha256 '7aead8a8ba75b69866f583b6c747d91414d523bfdfbe9a8e0fe026b16ba427dd'
depends_on 'bz2'
depends_on 'automake'
......
......@@ -5,7 +5,7 @@ class Gnutls < Package
homepage 'http://gnutls.org/'
version '3.5.12'
source_url 'https://www.gnupg.org/ftp/gcrypt/gnutls/v3.5/gnutls-3.5.12.tar.xz'
source_sha1 '9f453686bc6b1e6ebc04197158a2bc123c0272df'
source_sha256 '63cb39a5eaa029381df2e49a74cfb7be89fc4a592445191818ffe1e66bde57cb'
depends_on 'buildessential' => :build
depends_on 'zlibpkg' => :build
......
......@@ -5,8 +5,8 @@ class Go < Package
homepage 'https://golang.org/'
version '1.8.3'
source_url 'https://storage.googleapis.com/golang/go1.8.3.src.tar.gz'
source_sha1 '7c3b942c58a44396ff1d205d0e6e72770792d626'
source_sha256 '5f5dea2447e7dcfdc50fa6b94c512e58bfba5673c039259fd843f68829d99fa6'
# Tests requires perl
depends_on 'perl'
# go is required to build versions of go > 1.4
......
......@@ -5,7 +5,7 @@ class Go_bootstrap < Package
homepage 'https://golang.org/'
version '1.4'
source_url 'https://storage.googleapis.com/golang/go1.4-bootstrap-20161024.tar.gz'
source_sha1 '47e02e41aa99dea899b65ebf7b50ec706141be8c'
source_sha256 '398c70d9d10541ba9352974cc585c43220b6d8dbcd804ba2c9bd2fbf35fab286'
def self.build
FileUtils.cd('src') do
......@@ -17,8 +17,8 @@ class Go_bootstrap < Package
dest = "#{CREW_DEST_DIR}/usr/local/lib/go_bootstrap"
system "mkdir", "-p", dest
FileUtils.mv Dir.pwd, dest
puts "--------"
puts "Installed Go_bootstrap for #{ARCH} in /usr/local/lib/go_bootstrap"
end
end
\ No newline at end of file
end
......@@ -5,7 +5,7 @@ class Goaccess < Package
homepage 'https://goaccess.io/'
version '1.2'
source_url 'http://tar.goaccess.io/goaccess-1.2.tar.gz'
source_sha1 '4c12796ff5afd14f359b1f638fc51c4007db1e3c'
source_sha256 '6ba9f66540ea58fc2c17f175265f9ed76d74a8432eeac1182b74ebf4f2cd3414'
depends_on 'openssl'
depends_on 'geoip'
......
require "package"
require 'package'
class Gperf < Package
description 'GNU gperf is a perfect hash function generator.'
homepage 'https://www.gnu.org/software/gperf/'
version "3.1"
source_url "http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz"
source_sha1 "e3c0618c2d2e5586eda9498c867d5e4858a3b0e2"
version '3.1'
source_url 'http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz'
source_sha256 '588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2'
def self.build
system "./configure"
system "make"
system './configure'
system 'make'
end
def self.install
......
......@@ -5,7 +5,7 @@ class Gpgme < Package
homepage 'https://www.gnupg.org/related_software/gpgme/index.html'
version '1.8.0'
source_url 'https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.8.0.tar.bz2'
source_sha1 'efa043064dbf675fd713228c6fcfcc4116feb221'
source_sha256 '596097257c2ce22e747741f8ff3d7e24f6e26231fa198a41b2a072e62d1e5d33'
depends_on "libgpgerror"
depends_on "libassuan"
......@@ -16,6 +16,6 @@ class Gpgme < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Graphicsmagick < Package
homepage 'http://www.graphicsmagick.org/'
version '1.3.23'
source_url 'http://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.23/GraphicsMagick-1.3.23.tar.gz'
source_sha1 'ad43788153e11e5123ac94b60a2c9acc74036d70'
source_sha256 'cb320e009173c66927041a675755fad454b8aadf1da2c6fd1d65eac298c556db'
depends_on 'buildessential'
......
require 'package'
class Groff < Package
description 'Groff (GNU troff) is a typesetting system that reads plain text mixed with formatting commands and produces formatted output.'
homepage 'https://www.gnu.org/software/groff/'
version '1.22.3-1'
source_url 'http://ftp.gnu.org/gnu/groff/groff-1.22.3.tar.gz'
source_sha1 '61a6808ea1ef715df9fa8e9b424e1f6b9fa8c091'
source_sha256 '3a48a9d6c97750bfbd535feeb5be0111db6406ddb7bb79fc680809cda6d828a5'
def self.build
system 'INSTALL_PROGRAM=\'${INSTALL} -s\' ./configure'
# force to compile in sequential since groff Makefile doesn't work in parallel
system 'make', '-j1'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
......
......@@ -5,7 +5,7 @@ class Gzsize < Package
homepage 'https://bfontaine.github.io/gzsize/'
version '0.1.1'
source_url 'https://github.com/bfontaine/gzsize/archive/0.1.1.tar.gz'
source_sha1 '778820b0bf3fc2197955b60c6dc49f6fac00878b'
source_sha256 'ffb9cc1e5ed10443b1bcf2f711787bc7f69eee27ed83b48f2ccf9d80e39554dd'
def self.build
system "make"
......
......@@ -5,8 +5,8 @@ class Haproxy < Package
homepage 'http://www.haproxy.org/'
version '1.7.2'
source_url 'http://www.haproxy.org/download/1.7/src/haproxy-1.7.2.tar.gz'
source_sha1 'b022485e28b96b673e3116a69d8922cb7367a81f'
source_sha256 'f95b40f52a4d61feaae363c9b15bf411c16fe8f61fddb297c7afcca0072e4b2f'
depends_on "openssl"
depends_on "pcre"
......@@ -15,6 +15,6 @@ class Haproxy < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -5,7 +5,7 @@ class Harfbuzz < Package
homepage 'https://www.freedesktop.org/wiki/Software/HarfBuzz/'
version '1.1.5'
source_url 'https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.4.5.tar.bz2'
source_sha1 'e979eb20b789c1fc47107ef93a584924e34dd195'
source_sha256 'd0e05438165884f21658154c709075feaf98c93ee5c694b951533ac425a9a711'
def self.build
system "./configure"
......
......@@ -5,16 +5,16 @@ class Htop < Package
homepage 'https://hisham.hm/htop/'
version '2.0.2'
source_url 'http://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz'
source_sha1 '201f793f13dce2448e36047079875b9bd5bba75a'
source_sha256 '179be9dccb80cee0c5e1a1f58c8f72ce7b2328ede30fb71dcdf336539be2f487'
depends_on 'buildessential'
depends_on 'ncurses'
def self.build
system "./configure --disable-unicode"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
......
......@@ -5,7 +5,7 @@ class Httpd < Package
homepage 'http://httpd.apache.org/'
version '2.2.32'
source_url 'https://github.com/apache/httpd/archive/2.2.32.tar.gz'
source_sha1 '647e459f645c4138561e3f4314570f2f525d754d'
source_sha256 '0d74b1e4d69cedc56323cedc819c083ca975b679b6a082abf60c21836756bb1d'
depends_on 'subversion'
......
......@@ -5,7 +5,7 @@ class Hub < Package
homepage 'https://hub.github.com/'
version '2.3.0-pre9'
source_url 'https://github.com/github/hub/archive/v2.3.0-pre9.tar.gz'
source_sha1 'd18f0a28d13b7e773186ece35df032f561d2172d'
source_sha256 '3246a5e3a071a7ccb06c30230a720b6457837bd6b97b32ab248dfb2b2222dbfb'
depends_on 'git'
depends_on 'go'
......
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