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
76ce4378
Commit
76ce4378
authored
May 09, 2021
by
Ed Reel
Committed by
GitHub
May 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add openhab package (#5756)
parent
1bfba909
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
packages/openhab.rb
packages/openhab.rb
+39
-0
No files found.
packages/openhab.rb
0 → 100644
View file @
76ce4378
require
'package'
class
Openhab
<
Package
description
'A vendor and technology agnostic open source automation software for your home'
homepage
'https://www.openhab.org/'
@_ver
=
'3.1.0'
version
@_ver
license
'Eclipse Public License 2.0'
compatibility
'x86_64'
source_url
'https://ci.openhab.org/job/openHAB3-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-3.1.0-SNAPSHOT.tar.gz'
source_sha256
'cecf5a13ba0d1003da5366eaa5d23c3adb93f574c4d471ecbca38763c36554f7'
binary_url
({
})
binary_sha256
({
})
depends_on
'jdk11'
def
self
.
build
openhab
=
<<~
EOF
#!/bin/bash
cd
#{
CREW_PREFIX
}
/share/openhab
./start.sh
EOF
IO
.
write
(
'openhab.sh'
,
openhab
)
end
def
self
.
install
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/bin"
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/share/openhab"
FileUtils
.
install
'openhab.sh'
,
"
#{
CREW_DEST_PREFIX
}
/bin/openhab"
,
mode:
0
o755
FileUtils
.
mv
Dir
[
'*'
],
"
#{
CREW_DEST_PREFIX
}
/share/openhab"
end
def
self
.
postinstall
puts
"
\n
To get started, execute 'openhab'.
\n
"
.
lightblue
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