Files
chromebrew/packages/pdfcrack.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

28 lines
947 B
Ruby

require 'package'
class Pdfcrack < Package
description 'pdfcrack is a command line, password recovery tool for PDF-files.'
homepage 'https://sourceforge.net/projects/pdfcrack'
version '0.16'
license 'GPL-2'
compatibility 'all'
source_url 'https://sourceforge.net/projects/pdfcrack/files/pdfcrack/pdfcrack-0.16/pdfcrack-0.16.tar.gz'
source_sha256 '7865b203074ccfd5c612c8ce00c46ffcb4fabaa26154ce9304dfc668c7cb73ef'
binary_compression 'tar.xz'
binary_sha256({
aarch64: 'f2aeae2872eddaa3034f024d80a6a10302ba88274c07b77112aac24f7146f4e9',
armv7l: 'f2aeae2872eddaa3034f024d80a6a10302ba88274c07b77112aac24f7146f4e9',
i686: '0a8bb96eaaa224e97a6ba6d77890359398cc06c5844e99de19aa63a2e39c7c6d',
x86_64: 'fe283684679ffe42701876251ef2ae9dc4b19272a91a0df93f968f0e2d148c1b'
})
def self.build
system 'make'
end
def self.install
system "install -Dm755 pdfcrack #{CREW_DEST_PREFIX}/bin/pdfcrack"
end
end