Skip to content

Commit

Permalink
gtk-doc: fix relocation
Browse files Browse the repository at this point in the history
something broke with the last update and there are now backslashes
in the paths. Handle those as well.
  • Loading branch information
lazka committed Sep 25, 2024
1 parent dff2b22 commit de6afb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mingw-w64-gtk-doc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _realname=gtk-doc
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=1.34.0
pkgrel=1
pkgrel=2
pkgdesc="Documentation tool for public library API (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
Expand Down Expand Up @@ -66,7 +66,8 @@ package() {
done

local _config_data="${pkgdir}${MINGW_PREFIX}/share/gtk-doc/python/gtkdoc/config_data.py"
echo -e "import sys\n$(cat "${_config_data}")" > "${_config_data}"
sed '1i\import sys' -i "${_config_data}"
sed -s "s|'$(cygpath -m ${MINGW_PREFIX})|sys.prefix + '|g" -i "${_config_data}"
sed -s "s|'$(cygpath -w ${MINGW_PREFIX}/ | sed 's/\\/\\\\/g')|sys.prefix + '/|g" -i "${_config_data}"
sed -s "s|'${MINGW_PREFIX}|sys.prefix + '|g" -i "${_config_data}"
}

0 comments on commit de6afb0

Please sign in to comment.