require "./context.cr" require "./recipe.cr" extend Package # FIXME: recipe.clean? context autoclean? Context.new().tap do |context| # FIXME: context.new_recipe? context.recipe? Recipe.new(context, "hello", "2.10").tap do |recipe| recipe.sources << "https://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz" recipe.download recipe.extract #recipe.instructions.configure << "cd hello-#{recipe.version} && ./configure" #recipe.instructions.build << "cd hello-#{recipe.version} && make" recipe.instructions.install << "cd hello-#{recipe.version} && make DESTDIR='${PKG}' install" raise "oh no, build failed" unless recipe.build recipe.package recipe.clean end end