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
261fe029
Commit
261fe029
authored
Apr 01, 2021
by
saltedcoffii
Committed by
GitHub
Apr 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
samurai (#5518)
parent
ca39dbbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
packages/samurai.rb
packages/samurai.rb
+26
-0
No files found.
packages/samurai.rb
0 → 100644
View file @
261fe029
require
'package'
class
Samurai
<
Package
description
'Samurai is a ninja compatible build tool written in C.'
homepage
'https://github.com/michaelforney/samurai'
version
'1.2'
license
'Apache-2.0 and MIT'
compatibility
'all'
source_url
'https://github.com/michaelforney/samurai/releases/download/1.2/samurai-1.2.tar.gz'
source_sha256
'3b8cf51548dfc49b7efe035e191ff5e1963ebc4fe8f6064a5eefc5343eaf78a5'
def
self
.
patch
system
"sed -i 's:PREFIX=/usr/local:PREFIX=
#{
CREW_PREFIX
}
:' Makefile"
system
"sed -i 's:MANDIR=
\$
(PREFIX)/share/man:MANDIR=
#{
CREW_MAN_PREFIX
}
:g' Makefile"
end
def
self
.
build
system
"make CFLAGS='-pipe -O2 -flto=auto -fuse-ld=gold' \
LDFLAGS='-flto=auto -fuse-ld=gold' \
CC='
#{
CREW_TGT
}
-gcc'"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
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