1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DOTNET_PKG_COMPAT
="8.0"
14 DESCRIPTION
="An open source and free input method dictionary conversion program"
15 HOMEPAGE
="https://github.com/studyzy/imewlconverter"
17 if [[ "${PV}" == 9999 ]] ; then
20 EGIT_REPO_URI
="https://github.com/studyzy/imewlconverter.git"
22 SRC_URI
="https://github.com/studyzy/imewlconverter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
27 SRC_URI
+=" ${NUGET_URIS} "
32 DOTNET_PKG_PROJECTS
=( src
/ImeWlConverterCmd
/ImeWlConverterCmd.csproj
)
37 if [[ "${PV}" == 9999 ]] ; then
43 sed -i -E "s|<Version>.+</Version>|<Version>${PV}</Version>|" src
/ImeWlConverterCmd
/ImeWlConverterCmd.csproj
44 sed -i -e 's/dotnet ImeWlConverterCmd.dll/ImeWlConverterCmd/g' src
/ImeWlConverterCmd
/Program.cs
46 dotnet-pkg_src_prepare
50 mv "${DOTNET_PKG_OUTPUT}/Readme.txt" CHANGELOG || die
52 dotnet-pkg-base_install
53 dotnet-pkg-base_dolauncher
"/usr/share/${P}/ImeWlConverterCmd"