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
87cec70c
Commit
87cec70c
authored
May 15, 2018
by
Chris Thurber
Committed by
GitHub
May 15, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2358 from uberhacker/add-xdg_base-package
Add xdg_base package
parents
1d75caa0
42007dd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
packages/xdg_base.rb
packages/xdg_base.rb
+35
-0
No files found.
packages/xdg_base.rb
0 → 100644
View file @
87cec70c
require
'package'
class
Xdg_base
<
Package
description
'XDG Base Directory Specification Configuration'
homepage
'https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html'
version
'0.7'
source_url
'https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html'
source_sha256
'342289ad33b48b8f643278f74cafa182f4471d490b82dc5e442e2e720fa4080f'
def
self
.
install
# Changes the ~/.config and ~/.local directories to use symlinks instead.
# This is needed in cases when executables are installed in these locations.
system
"mkdir -p
#{
CREW_DEST_DIR
}
$HOME"
system
"mkdir -p
#{
CREW_DEST_PREFIX
}
/.config"
system
"mkdir -p
#{
CREW_DEST_PREFIX
}
/.local"
system
"ln -s
#{
CREW_PREFIX
}
/.config
#{
CREW_DEST_DIR
}
$HOME/.config"
system
"ln -s
#{
CREW_PREFIX
}
/.local
#{
CREW_DEST_DIR
}
$HOME/.local"
system
"ln -s
#{
CREW_PREFIX
}
/.config $HOME/.config"
system
"ln -s
#{
CREW_PREFIX
}
/.config $HOME/.local"
end
def
self
.
postinstall
puts
puts
"The following bash environment variables should set as shown below:"
.
lightblue
puts
"echo '# XDG Base Directory Specification Environment Variables' >> ~/.bashrc"
.
lightblue
puts
"echo '# See https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html.' >> ~/.bashrc"
.
lightblue
puts
"echo 'export XDG_DATA_HOME=
\$
HOME/.local/share' >> ~/.bashrc"
.
lightblue
puts
"echo 'export XDG_CONFIG_HOME=
\$
HOME/.config' >> ~/.bashrc"
.
lightblue
puts
"echo 'export XDG_DATA_DIRS=
#{
CREW_PREFIX
}
/share' >> ~/.bashrc"
.
lightblue
puts
"echo 'export XDG_CONFIG_DIRS=
#{
CREW_PREFIX
}
/etc/xdg' >> ~/.bashrc"
.
lightblue
puts
"echo 'export XDG_CACHE_HOME=
\$
HOME/.cache' >> ~/.bashrc"
.
lightblue
puts
"source ~/.bashrc"
.
lightblue
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