Commit 02fb6279 authored by Ed Reel's avatar Ed Reel

Add libmicrohttpd package

parent 2451d4b5
require 'package'
class Libmicrohttpd < Package
description 'GNU libmicrohttpd is a small C library that is supposed to make it easy to run an HTTP server as part of another application.'
homepage 'https://www.gnu.org/software/libmicrohttpd/'
version '0.9.58'
source_url 'https://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.58.tar.gz'
source_sha256 '7a11e1376c62ff95bd6d2dfe6799d57ac7cdbcb32f70bfbd5e47c71f373e01f3'
binary_url ({
})
binary_sha256 ({
})
depends_on 'diffutils' => :build
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "gzip -9 #{CREW_DEST_PREFIX}/share/man/man3/libmicrohttpd.3"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment