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
88fcb2de
Commit
88fcb2de
authored
Nov 01, 2017
by
Casey Strouse
Committed by
GitHub
Nov 01, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1237 from uberhacker/add-binclock-package
Add binclock package
parents
a1a8798b
0858b7ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
packages/binclock.rb
packages/binclock.rb
+30
-0
No files found.
packages/binclock.rb
0 → 100644
View file @
88fcb2de
require
'package'
class
Binclock
<
Package
description
'Ncurses clock, with time displayed in colourful binary'
homepage
'https://github.com/JohnAnthony/Binary-Clock'
version
'3883e8'
source_url
'https://github.com/JohnAnthony/Binary-Clock/archive/3883e8876576a45162b9a128d8317b20f98c5140.tar.gz'
source_sha256
'e8caa26437301c70bf9840901db9e46d32b99c0ec8b442562f96390e28f35408'
binary_url
({
})
binary_sha256
({
})
depends_on
'ncurses'
def
self
.
build
system
"sed -i 's,#include <ncurses.h>,#include <
#{
CREW_PREFIX
}
/include/ncurses/ncurses.h>,' binclock.c"
system
"sed -i 's,/usr/bin,
#{
CREW_PREFIX
}
/bin,g' Makefile"
system
"sed -i 's,/usr/share,
#{
CREW_PREFIX
}
/share,g' Makefile"
system
"make"
end
def
self
.
install
system
"mkdir -p
#{
CREW_DEST_PREFIX
}
/bin"
system
"mkdir -p
#{
CREW_DEST_PREFIX
}
/share/man/man1"
system
"cp binclock
#{
CREW_DEST_PREFIX
}
/bin"
system
"cp binclock.1
#{
CREW_DEST_PREFIX
}
/share/man/man1"
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