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
a10b398e
Commit
a10b398e
authored
Mar 04, 2021
by
satmandu
Committed by
GitHub
Mar 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow modifying default variables, and allow modifying curl (#5325)
parent
0be246e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
install.sh
install.sh
+6
-5
No files found.
install.sh
View file @
a10b398e
...
...
@@ -4,9 +4,9 @@
set
-e
#chromebrew directories
OWNER
=
"
skycocker
"
REPO
=
"
chromebrew
"
BRANCH
=
"
master
"
OWNER
=
"
${
OWNER
:-
skycocker
}
"
REPO
=
"
${
REPO
:-
chromebrew
}
"
BRANCH
=
"
${
BRANCH
:-
master
}
"
URL
=
"https://raw.githubusercontent.com/
${
OWNER
}
/
${
REPO
}
/
${
BRANCH
}
"
CREW_PREFIX
=
"
${
CREW_PREFIX
:-
/usr/local
}
"
CREW_LIB_PATH
=
"
${
CREW_PREFIX
}
/lib/crew/"
...
...
@@ -14,6 +14,7 @@ CREW_CONFIG_PATH="${CREW_PREFIX}/etc/crew/"
CREW_BREW_DIR
=
"
${
CREW_PREFIX
}
/tmp/crew/"
CREW_DEST_DIR
=
"
${
CREW_BREW_DIR
}
/dest"
CREW_PACKAGES_PATH
=
"
${
CREW_LIB_PATH
}
/packages"
CURL
=
"
${
CURL
:-
curl
}
"
EARLY_PACKAGES
=
"gcc10 llvm brotli c_ares libcyrussasl libiconv libidn2
\
libmetalink libnghttp2 libpsl libssh2 libtirpc libunistring openldap
\
...
...
@@ -85,7 +86,7 @@ case "${ARCH}" in
esac
for
package
in
$EARLY_PACKAGES
;
do
pkgfile
=
"
$(
curl
-Lsf
"
${
URL
}
"
/packages/
"
$package
"
.rb
)
"
pkgfile
=
"
$(
$CURL
-Lsf
"
${
URL
}
"
/packages/
"
$package
"
.rb
)
"
temp_url
=
"
$(
echo
"
$pkgfile
"
|
grep
-m
3
"
$ARCH
"
: |
head
-n
1 |
cut
-d
\'
-f2
|
tr
-d
\'
|
tr
-d
\"
|
sed
's/,//g'
)
"
temp_sha256
=
"
$(
echo
"
$pkgfile
"
|
grep
-m
3
"
$ARCH
"
: |
tail
-n
1 |
cut
-d
\'
-f2
|
tr
-d
\'
|
tr
-d
\"
|
sed
's/,//g'
)
"
urls[k]
=
"
$temp_url
"
...
...
@@ -99,7 +100,7 @@ function download_check () {
#download
echo
-e
"
${
BLUE
}
Downloading
${
1
}
...
${
RESET
}
"
curl
'-#'
-C
-
-L
--ssl
"
${
2
}
"
-o
"
${
3
}
"
$CURL
'-#'
-C
-
-L
--ssl
"
${
2
}
"
-o
"
${
3
}
"
#verify
echo
-e
"
${
BLUE
}
Verifying
${
1
}
...
${
RESET
}
"
...
...
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