mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Add CREW_OPTIONS constant
Add --mandir option to CREW_OPTIONS constant Bump version
This commit is contained in:
12
lib/const.rb
12
lib/const.rb
@@ -1,6 +1,6 @@
|
||||
# Defines common constants used in different parts of crew
|
||||
|
||||
CREW_VERSION = '1.3.2'
|
||||
CREW_VERSION = '1.3.4'
|
||||
|
||||
ARCH = `uname -m`.strip
|
||||
ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' end
|
||||
@@ -46,4 +46,12 @@ USER = `whoami`.chomp
|
||||
|
||||
CHROMEOS_RELEASE = `grep CHROMEOS_RELEASE_CHROME_MILESTONE= /etc/lsb-release | cut -d'=' -f2`.chomp
|
||||
|
||||
CREW_BUILD = `gcc -dumpmachine`
|
||||
case ARCH
|
||||
when 'aarch64', 'armv7l'
|
||||
CREW_BUILD = 'armv7l-cros-linux-gnueabihf'
|
||||
when 'i686'
|
||||
CREW_BUILD = 'i686-cros-linux-gnu'
|
||||
when 'x86_64'
|
||||
CREW_BUILD = 'x86_64-cros-linux-gnu'
|
||||
end
|
||||
CREW_OPTIONS = "--prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} --mandir=#{CREW_PREFIX}/share/man --build=#{CREW_BUILD} --host=#{CREW_BUILD} --target=#{CREW_BUILD}"
|
||||
|
||||
Reference in New Issue
Block a user