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
66a20c28
Commit
66a20c28
authored
Jan 24, 2021
by
satmandu
Committed by
GitHub
Jan 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
File -> 5.39 (#4991)
* filecmd -> 5.39 * remove extraversion
parent
0418b951
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
20 deletions
+26
-20
packages/filecmd.rb
packages/filecmd.rb
+26
-20
No files found.
packages/filecmd.rb
View file @
66a20c28
...
@@ -2,34 +2,39 @@ require 'package'
...
@@ -2,34 +2,39 @@ require 'package'
class
Filecmd
<
Package
class
Filecmd
<
Package
description
'file command determines the file type.'
description
'file command determines the file type.'
homepage
'ftp://ftp.astron.com/pub/file'
homepage
'http://ftp.astron.com/'
version
'5.37'
@_ver
=
'5.39'
version
@_ver
compatibility
'all'
compatibility
'all'
source_url
'ftp://ftp.astron.com/pub/file/file-5.37.tar.gz'
source_url
"http://ftp.astron.com/pub/file/file-
#{
@_ver
}
.tar.gz"
source_sha256
'
e9c13967f7dd339a3c241b7710ba093560b9a33013491318e88e6b8b57bae07f
'
source_sha256
'
f05d286a76d9556243d0cb05814929c2ecf3a5ba07963f8f70bfaaa70517fad1
'
binary_url
({
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/filecmd-5.37
-chromeos-armv7l.tar.xz'
,
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/filecmd-5.39
-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/filecmd-5.37
-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/filecmd-5.39
-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/filecmd-5.37
-chromeos-i686.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/filecmd-5.39
-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/filecmd-5.37
-chromeos-x86_64.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/filecmd-5.39
-chromeos-x86_64.tar.xz'
,
})
})
binary_sha256
({
binary_sha256
({
aarch64:
'26c0e8ccc7d7d64e422d7f4deae71550646f16f3228cdd9dcc926c5dbea5eb8e
'
,
aarch64:
'cdd5e95dfa839a179e68822683a0eda74e83b0ec530fdf82665051ced048d3e7
'
,
armv7l:
'26c0e8ccc7d7d64e422d7f4deae71550646f16f3228cdd9dcc926c5dbea5eb8e
'
,
armv7l:
'cdd5e95dfa839a179e68822683a0eda74e83b0ec530fdf82665051ced048d3e7
'
,
i686:
'495d8a50dabff55cf4bf288aa9e8a4ab3ceadf18de20aacd96a79d0bb42219ae
'
,
i686:
'af07c76f343f22825915ffae3ec48a1e2542b1df43555363c5d7c0ccb10e3f95
'
,
x86_64:
'5df86414a61540346de2712eb7eb553a5562d17f4c3d325f4a42aa8a2bf43829
'
,
x86_64:
'25591cd681ad7835f0b5033c0a3e10c23a4bb0a8a1d399ead603f80c743643cb
'
,
})
})
def
self
.
build
def
self
.
build
# The filefix command changes the full path of the file command in configure scripts.
# The filefix command changes the full path of the file command in configure scripts.
# Execute this command from your source code root directory.
# Execute this command from your source code root directory.
system
"echo '#!/bin/bash' > filefix"
system
"cat <<'EOF'> filefix
system
"echo 'for f in $(find . -name configure); do sed -i
\'
s,/usr/bin/file,
#{
CREW_PREFIX
}
/bin/file,g
\'
$f; done' >> filefix"
#!/bin/bash
system
"./configure"
,
for f in $(find . -name configure); do
"--prefix=
#{
CREW_PREFIX
}
"
,
sed -i 's,/usr/bin/file,
#{
CREW_PREFIX
}
/bin/file,g' ${f}
"--libdir=
#{
CREW_LIB_PREFIX
}
"
,
done
"--disable-libseccomp"
EOF"
system
"env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \
./configure \
#{
CREW_OPTIONS
}
\
--disable-libseccomp"
system
"make"
system
"make"
end
end
...
@@ -38,7 +43,8 @@ class Filecmd < Package
...
@@ -38,7 +43,8 @@ class Filecmd < Package
end
end
def
self
.
install
def
self
.
install
system
"install -Dm755 filefix
#{
CREW_DEST_PREFIX
}
/bin/filefix"
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/bin/"
FileUtils
.
install
'filefix'
,
"
#{
CREW_DEST_PREFIX
}
/bin/filefix"
,
mode:
0755
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
end
end
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