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
Łukasz Nowak
chromebrew
Commits
48bd8c35
Commit
48bd8c35
authored
Aug 10, 2019
by
Ed Reel
Committed by
Chris Thurber
Aug 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add netpbm package (#3420)
Fix paths in manweb perl script Add pre-built binaries
parent
5e45bad7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
packages/netpbm.rb
packages/netpbm.rb
+50
-0
No files found.
packages/netpbm.rb
0 → 100644
View file @
48bd8c35
require
'package'
class
Netpbm
<
Package
description
'Netpbm is a toolkit for manipulation of graphic images, including conversion of images between a variety of different formats.'
homepage
'http://netpbm.sourceforge.net/'
version
'10.73.28'
source_url
'https://downloads.sourceforge.net/project/netpbm/super_stable/10.73.28/netpbm-10.73.28.tgz'
source_sha256
'c0d32d4b9a53fde47dd9a36f45653e0ef51f6c390517f10b0c5056d1a8a844bd'
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/netpbm-10.73.28-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/netpbm-10.73.28-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/netpbm-10.73.28-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/netpbm-10.73.28-chromeos-x86_64.tar.xz'
,
})
binary_sha256
({
aarch64:
'2f4dd0de3f9af1423121ba6e82ddc268863fadaf50222a51dc2026652e99fefb'
,
armv7l:
'2f4dd0de3f9af1423121ba6e82ddc268863fadaf50222a51dc2026652e99fefb'
,
i686:
'3a900cd5917c750a09f5d9e5f5845c2cfe1a02539c3ad8ef63d0a291ea0f1c64'
,
x86_64:
'06375d9b711b7a03a26e8d00d84c3a13f3d1c2bc3cff16442c39b29c7ca2a58f'
,
})
depends_on
'libtiff'
def
self
.
patch
system
"sed -i 's,/etc/,
#{
CREW_DEST_PREFIX
}
/etc/,g' buildtools/installnetpbm.pl"
end
def
self
.
build
puts
puts
'This is the dumbest thing but when prompted, hit enter for every prompt.'
.
lightblue
system
'./configure'
system
'make'
system
'make package'
end
def
self
.
install
puts
puts
"When prompted for install prefix, enter '
#{
CREW_DEST_PREFIX
}
', otherwise hit enter for every other prompt."
.
lightblue
puts
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/etc"
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/share"
system
'./installnetpbm'
system
"sed -i 's,/usr/bin/perl,
#{
CREW_PREFIX
}
/bin/perl,'
#{
CREW_DEST_PREFIX
}
/bin/manweb"
system
"sed -i 's,/etc/manweb.conf,
#{
CREW_PREFIX
}
/etc/manweb.conf,'
#{
CREW_DEST_PREFIX
}
/bin/manweb"
FileUtils
.
mv
"
#{
CREW_DEST_PREFIX
}
/man"
,
"
#{
CREW_DEST_PREFIX
}
/share"
FileUtils
.
mv
"
#{
CREW_DEST_PREFIX
}
/lib"
,
"
#{
CREW_DEST_LIB_PREFIX
}
"
if
ARCH
==
'x86_64'
FileUtils
.
rm_f
'/tmp/netpbm'
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