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
62936026
Commit
62936026
authored
May 31, 2021
by
Ed Reel
Committed by
GitHub
May 31, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pdftk package (#5825)
parent
9cd537c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
packages/pdftk.rb
packages/pdftk.rb
+35
-0
No files found.
packages/pdftk.rb
0 → 100644
View file @
62936026
require
'package'
class
Pdftk
<
Package
description
'PDFtk is a simple tool for doing everyday things with PDF documents.'
homepage
'https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/'
version
'3.2.2'
license
'GPL-2'
compatibility
'all'
source_url
'https://gitlab.com/pdftk-java/pdftk/-/archive/v3.2.2/pdftk-v3.2.2.tar.bz2'
source_sha256
'b315f1267947af337c0d1e8253fba26108eed6392b43633fe967093f42ad45eb'
depends_on
'jdk8'
depends_on
'gradle'
=>
:build
def
self
.
build
@pdftk
=
<<~
EOF
#!/bin/bash
cd
#{
CREW_PREFIX
}
/share/pdftk
java -jar pdftk-all.jar "$@"
EOF
File
.
write
(
'pdftk.sh'
,
@pdftk
)
system
"JAVA_HOME=
#{
CREW_PREFIX
}
gradle shadowJar"
end
def
self
.
install
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/bin"
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/share/pdftk"
FileUtils
.
mv
'build/libs/pdftk-all.jar'
,
"
#{
CREW_DEST_PREFIX
}
/share/pdftk"
FileUtils
.
install
'pdftk.sh'
,
"
#{
CREW_DEST_PREFIX
}
/bin/pdftk"
,
mode:
0
o755
end
def
self
.
postinstall
puts
"
\n
Type 'pdftk' to get started.
\n
"
.
lightblue
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