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
11e2f53b
Commit
11e2f53b
authored
Aug 08, 2018
by
Ed Reel
Committed by
Chris Thurber
Aug 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update sommelier to add daemon and postinstall config (#2521)
Bump version Add pre-built binaries
parent
ad5e5943
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
packages/sommelier.rb
packages/sommelier.rb
+27
-1
No files found.
packages/sommelier.rb
View file @
11e2f53b
...
...
@@ -3,13 +3,21 @@ require 'package'
class
Sommelier
<
Package
description
'Sommelier works by redirecting X11 and Wayland programs to the built-in ChromeOS wayland server.'
homepage
'https://chromium.googlesource.com/chromiumos/containers/sommelier'
version
'1382c'
version
'1382c
e
'
source_url
'https://chromium.googlesource.com/chromiumos/containers/sommelier/+/0.20/README?format=TEXT'
source_sha256
'b58d799b16d20abf92369fe0749c73f7398996f0afa9933517051778a8bb16c3'
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/sommelier-1382ce-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/sommelier-1382ce-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/sommelier-1382ce-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/sommelier-1382ce-chromeos-x86_64.tar.xz'
,
})
binary_sha256
({
aarch64:
'54fd051594c0f62a1b8af107c23432b7a12a961450741d2c40fe5b5453ae3a10'
,
armv7l:
'54fd051594c0f62a1b8af107c23432b7a12a961450741d2c40fe5b5453ae3a10'
,
i686:
'a6a00941d0a7c22059bc44e1bc9fd766d0bca2168c96c0ac825f7d4779f7c929'
,
x86_64:
'd46cfd42ff7f05de3096235ec89d297687202a929edb731e2f7532eec8d4e7eb'
,
})
depends_on
'mesa'
...
...
@@ -25,12 +33,30 @@ class Sommelier < Package
system
"sed -i 's,/lib/,/
#{
ARCH_LIB
}
/,g' Makefile"
system
"sed -i 's,-I.,-I. -I
#{
CREW_PREFIX
}
/include/pixman-1,g' Makefile"
system
"make PREFIX=
#{
CREW_PREFIX
}
SYSCONFDIR=
#{
CREW_PREFIX
}
/etc"
system
"echo '#!/bin/bash' > sommelierd"
system
"echo 'sommelier -X --x-display=
\$
DISPLAY --no-exit-with-child /bin/sh -c
\"
#{
CREW_PREFIX
}
/etc/sommelierrc
\"
' >> sommelierd"
end
end
def
self
.
install
Dir
.
chdir
(
"sommelier"
)
do
system
"make"
,
"PREFIX=
#{
CREW_PREFIX
}
"
,
"SYSCONFDIR=
#{
CREW_PREFIX
}
/etc"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"install -Dm755 sommelierd
#{
CREW_DEST_PREFIX
}
/sbin/sommelierd"
end
end
def
self
.
postinstall
puts
puts
"To complete the installation, execute the following:"
.
lightblue
puts
"echo '# Sommelier environment variables' >> ~/.bashrc"
.
lightblue
puts
"echo '# See https://github.com/dnschneid/crouton/wiki/Sommelier-(A-more-native-alternative-to-xiwi)' >> ~/.bashrc"
.
lightblue
puts
"echo 'export GDK_BACKEND=wayland' >> ~/.bashrc"
.
lightblue
puts
"echo 'export CLUTTER_BACKEND=wayland' >> ~/.bashrc"
.
lightblue
puts
"echo 'export XDG_RUNTIME_DIR=/var/run/chrome' >> ~/.bashrc"
.
lightblue
puts
"echo 'export WAYLAND_DISPLAY=wayland-0' >> ~/.bashrc"
.
lightblue
puts
"echo 'export DISPLAY=:0' >> ~/.bashrc"
.
lightblue
puts
"echo '[ -f
#{
CREW_PREFIX
}
/sbin/sommelierd ] &&
#{
CREW_PREFIX
}
/sbin/sommelierd &' >> ~/.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