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
d25bf1b9
Commit
d25bf1b9
authored
Feb 19, 2021
by
saltedcoffii
Committed by
GitHub
Feb 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[New Package] zoneinfo (#5163)
parent
a8a1b568
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
packages/zoneinfo.rb
packages/zoneinfo.rb
+37
-0
No files found.
packages/zoneinfo.rb
0 → 100644
View file @
d25bf1b9
require
'package'
class
Zoneinfo
<
Package
description
'Code and data that represent the history of local time for many representative locations around the globe.'
homepage
'https://www.iana.org/time-zones'
version
'2021a'
compatibility
'all'
source_url
'https://data.iana.org/time-zones/releases/tzdb-2021a.tar.lz'
source_sha256
'21bf125de7b0c486cb57f1ba61b39584c949b2e6cac0a03a6425435d9bff37d0'
def
self
.
patch
system
"sed -i 's:TZDEFAULT = $(TOPDIR)/etc/localtime:TZDEFAULT =
#{
CREW_PREFIX
}
/etc/localtime:g' Makefile"
system
"sed -i 's:USRDIR = usr:USRDIR = usr/local:g' Makefile"
end
def
self
.
build
system
"make"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
def
self
.
check
system
"make"
,
"check"
end
def
self
.
postinstall
system
"tzselect"
puts
puts
"Add `TZ='<timezone>'` to your ~/.bashrc file"
.
lightblue
puts
"Where <timezone> is the timezone displayed above"
.
lightblue
puts
"e.g. `TZ=America/New_York` or `TZ=Etc/UTC`"
.
lightblue
puts
"This won't affect the timezone of non-chromebrew ChromeOS apps."
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