summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRedbeanw44602 <[email protected]>2025-09-22 17:45:13 +0800
committerRedbeanw44602 <[email protected]>2025-09-22 17:45:13 +0800
commita5bcafadecc816b0becc89f627151bf4aa6b49df (patch)
treec8db5013e7ce1a10d885130059586a8f8e91fa97
parent5c6b2b30ba26d2f3a870c0b72a77d92d53b9decc (diff)
update.
-rw-r--r--xmake/modules/private/action/require/impl/actions/install.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua
index 76e65eb5f..d7310149a 100644
--- a/xmake/modules/private/action/require/impl/actions/install.lua
+++ b/xmake/modules/private/action/require/impl/actions/install.lua
@@ -109,7 +109,7 @@ function _patch_pkgconfig(package)
local file = io.open(pcfile, 'w')
if file then
-- @see https://github.com/xmake-io/xmake-repo/pull/8165#discussion_r2366249416
- local version = package:version_str():gsub("^v", "")
+ local version = package:version_str():ltrim("v")
file:print("# Generated by Xmake")
file:print("prefix=%s", "${pcfiledir}/" .. path.unix(path.relative(installdir, path.directory(pcfile))))
file:print("exec_prefix=${prefix}")