require 'package' class Fly < Package description 'fly is a C program that creates PNG, JPEG or GIF images on the fly from CGI and other programs.' homepage 'http://www.w3perl.com/fly/' version '1.6.5' license 'custom' compatibility 'all' source_url 'http://www.w3perl.com/fly/dist/fly-1.6.5.tar.gz' source_sha256 '8411915a9acd9a3d86896db5a53ac6bd4e35b44106c0f180cc0f96a6f02a62c9' binary_compression 'tar.xz' binary_sha256({ aarch64: '18e5b2d2e945f0192bc56de5c24a822421027c20477a1306ea9f61a8fc55eea9', armv7l: '18e5b2d2e945f0192bc56de5c24a822421027c20477a1306ea9f61a8fc55eea9', i686: '9a59d20d16c94b64b5efda732669b862c12544b0e1bec6570ad9d6dd6db71f47', x86_64: '6232f0497b3d6cd9956dcce7b372a23a26a2874210deca99d57556ffe9c61644' }) depends_on 'libgd' def self.build system 'make' end def self.install system "mkdir -p #{CREW_DEST_PREFIX}/bin" system "cp fly #{CREW_DEST_PREFIX}/bin" end end