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
54b391e3
Commit
54b391e3
authored
Mar 30, 2020
by
Casey Strouse
Committed by
GitHub
Mar 30, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3974 from uberhacker/add-symfony-package
Add symfony package
parents
39b965a1
02a49146
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
packages/symfony.rb
packages/symfony.rb
+35
-0
No files found.
packages/symfony.rb
0 → 100644
View file @
54b391e3
require
'package'
class
Symfony
<
Package
description
'Symfony is a set of PHP Components, a Web Application framework'
homepage
'https://symfony.com/'
version
'4.13.3'
source_url
'file:///dev/null'
source_sha256
'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
depends_on
'php74'
unless
File
.
exist?
"
#{
CREW_PREFIX
}
/bin/php"
def
self
.
install
case
ARCH
when
'aarch64'
,
'armv7l'
arch
=
'arm'
sha256
=
'7fed4138ee75f6b68e034760acd3ad9e0b95a41ab052a8454148891d8389670d'
when
'i686'
arch
=
'386'
sha256
=
'acafc620d486b7aff8d21adff32655c6b4db7f74f46248d0830ce5b93d324dbc'
when
'x86_64'
arch
=
'amd64'
sha256
=
'63a86004121244dc2ae1cef86ffe16c80e272c2b2f99397b9222390eb85426a2'
end
system
"wget https://github.com/symfony/cli/releases/download/v
#{
version
}
/symfony_linux_
#{
arch
}
"
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
Digest
::
SHA256
.
hexdigest
(
File
.
read
(
"symfony_linux_
#{
arch
}
"
)
)
==
sha256
system
"install -Dm755 symfony_linux_
#{
arch
}
#{
CREW_DEST_PREFIX
}
/bin/symfony"
end
def
self
.
postinstall
puts
puts
'Installing shell auto-completion...'
.
lightblue
system
'symfony self:shell-setup --silent'
puts
end
end
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