Skip to content

Commit

Permalink
lanraragi: revision bump (libarchive 3.7.6)
Browse files Browse the repository at this point in the history
Co-authored-by: Carlo Cabrera <[email protected]>
  • Loading branch information
carlocab committed Sep 24, 2024
1 parent a6941f9 commit 8570b67
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Formula/l/lanraragi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Lanraragi < Formula
url "https://github.com/Difegue/LANraragi/archive/refs/tags/v.0.9.21.tar.gz"
sha256 "ed2d704d058389eb4c97d62080c64fa96fcc230be663ec8958f35764d229c463"
license "MIT"
revision 1
revision 2
head "https://github.com/Difegue/LANraragi.git", branch: "dev"

bottle do
Expand Down Expand Up @@ -72,6 +72,14 @@ def install
bin.install "lanraragi"
libexec.install "redis.conf"
end

return if OS.linux? || Hardware::CPU.intel?

# FIXME: This installs its own `libarchive`, but we should use our own to begin with.
# As a workaround, install symlinks to our `libarchive` instead of the downloaded ones.
libarchive_install_dir = libexec/"lib/perl5/darwin-thread-multi-2level/auto/share/dist/Alien-Libarchive3/dynamic"
libarchive_install_dir.children.map(&:unlink)
ln_sf Formula["libarchive"].opt_lib.children, libarchive_install_dir
end

test do
Expand Down

0 comments on commit 8570b67

Please sign in to comment.