/
smake.rb
43 lines (36 loc) 路 1.62 KB
/
smake.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
class Smake < Formula
desc "Portable make program with automake features"
homepage "https://codeberg.org/schilytools/schilytools"
url "https://codeberg.org/schilytools/schilytools/archive/2024-03-21.tar.gz"
sha256 "4d66bf35a5bc2927248fac82266b56514fde07c1acda66f25b9c42ccff560a02"
license "GPL-2.0-only"
bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "54d5687fe82a141e445b3e6bf8404dda343c41e57b0c67bc3292241b5af28d1a"
sha256 cellar: :any_skip_relocation, arm64_ventura: "b1f63df56d0dd8903164a3fa57dbf30b9d71904ddf051ef907e616e8b535da79"
sha256 cellar: :any_skip_relocation, arm64_monterey: "a88dc2fafc2b3f3745e1ad3a79e82c0c252faf403ff54a2f67e66298114e9ff4"
sha256 cellar: :any_skip_relocation, sonoma: "f46933438ba16e6944354e43afc1ed55572ded080b4267af8cb2e6fb7744107c"
sha256 cellar: :any_skip_relocation, ventura: "76c0564c658f45e7d92c1ffaaedf2b5394ace1f29a124867288a47575f40a339"
sha256 cellar: :any_skip_relocation, monterey: "8cf227992ec09344d3a74e81e4aa24b5c3b6747896bba6fdf8bc5b8ca55f57cc"
sha256 cellar: :any_skip_relocation, x86_64_linux: "6b51d8b0c121455fff0ae8f7b5329566f202885e5d4ca0a8720e9a42c489435f"
end
def install
cd "psmake" do
system "./MAKE-all"
end
cd "libschily" do
system "../psmake/smake"
end
cd "smake" do
system "../psmake/smake"
end
cd "man" do
system "../psmake/smake"
end
bin.install Dir.glob("smake/OBJ/*/smake")
man1.install Dir.glob("smake/OBJ/*/*/*.1")
man5.install Dir.glob("man/man5/OBJ/*/*/*.5")
end
test do
system "#{bin}/smake", "-version"
end
end