Skip to content

Commit

Permalink
pkgconf: drop-in replacement for pkg-config
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Oct 18, 2024
1 parent 08f2c5b commit 0dd60d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Formula/p/pkgconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Pkgconf < Formula
url "https://distfiles.ariadne.space/pkgconf/pkgconf-2.3.0.tar.xz"
sha256 "3a9080ac51d03615e7c1910a0a2a8df08424892b5f13b0628a204d3fcce0ea8b"
license "ISC"
revision 1

livecheck do
url "https://distfiles.ariadne.space/pkgconf/"
Expand Down Expand Up @@ -59,6 +60,14 @@ def install
system "./configure", *configure_args
system "make"
system "make", "install"

# Make `pkgconf` a drop-in replacement for `pkg-config` by adding symlink[^1].
# Similar to Debian[^2], Fedora, ArchLinux and MacPorts.
#
# [^1]: https://github.com/pkgconf/pkgconf/#pkg-config-symlink
# [^2]: https://salsa.debian.org/debian/pkgconf/-/blob/debian/unstable/debian/pkgconf.links?ref_type=heads
bin.install_symlink "pkgconf" => "pkg-config"
man1.install_symlink "pkgconf.1" => "pkg-config.1"
end

test do
Expand Down

0 comments on commit 0dd60d2

Please sign in to comment.