Commit c37dbd05 authored by saltedcoffii's avatar saltedcoffii Committed by GitHub

[New Package] libfmt (#5156)

* [New Package] libfmt

* Create builddir directory
parent b473a361
require 'package'
class Libfmt < Package
description 'A modern formatting library'
homepage 'https://fmt.dev'
version '7.1.3'
compatibility 'all'
source_url 'https://github.com/fmtlib/fmt/releases/download/7.1.3/fmt-7.1.3.zip'
source_sha256 '5d98c504d0205f912e22449ecdea776b78ce0bb096927334f80781e720084c9f'
def self.build
Dir.mkdir "builddir"
Dir.chdir "builddir" do
system "cmake #{CREW_CMAKE_OPTIONS} \
-DBUILD_SHARED_LIBS=TRUE \
.."
system "make"
end
end
def self.install
Dir.chdir "builddir" do
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
def self.check
Dir.chdir "builddir" do
system "make", "test"
end
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