Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
441fede0
Commit
441fede0
authored
7 years ago
by
Ed Reel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add box package
parent
31e448b2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
packages/box.rb
packages/box.rb
+17
-0
No files found.
packages/box.rb
0 → 100644
View file @
441fede0
require
'package'
class
Box
<
Package
description
'An application for building and managing Phars.'
homepage
'https://box-project.github.io/box2/'
version
'2.7.5'
source_url
'https://raw.githubusercontent.com/box-project/box2/2.7.5/README.md'
source_sha256
'b60e231f431cefbd88fc4022af5408c2098242f45485180d87ad88dbd30e6d02'
depends_on
'php'
unless
File
.
exists?
"
#{
CREW_PREFIX
}
/bin/php"
def
self
.
install
system
'wget https://github.com/box-project/box2/releases/download/2.7.5/box-2.7.5.phar'
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
Digest
::
SHA256
.
hexdigest
(
File
.
read
(
'box-2.7.5.phar'
)
)
==
'28b4b798ad4dcf8fbf9cd68aaff495d4bbeaec4363f5f319a222829d9b6abdfe'
system
"install -Dm755 box-2.7.5.phar
#{
CREW_DEST_PREFIX
}
/bin/box"
end
end
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment