Skip to content

Commit e74cc16

Browse files
alebcaychenrui333
authored andcommitted
pdfcpu: use std_go_args
1 parent 11071d4 commit e74cc16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Formula/pdfcpu.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class Pdfcpu < Formula
1919
depends_on "go" => :build
2020

2121
def install
22-
system "go", "build", "-trimpath", "-o", bin/"pdfcpu", "-ldflags",
23-
"-X github.com/pdfcpu/pdfcpu/pkg/pdfcpu.VersionStr=#{version}", "./cmd/pdfcpu"
22+
ldflags = "-X github.com/pdfcpu/pdfcpu/pkg/pdfcpu.VersionStr=#{version}"
23+
system "go", "build", *std_go_args(ldflags: ldflags), "./cmd/pdfcpu"
2424
end
2525

2626
test do

0 commit comments

Comments
 (0)