yay https://github.com/Jguer/yay - это инструмент для сборки пакетов Arch User Repository.Я пытаюсь построить его в Windows msys2 (https://www.msys2.org/), которая основана на аналогичном менеджере пакетов 'pacman'.
Мои шаги
pacman -S base-devel base-mingw64-devel
pacman -S mingw-w64-x86_64-ca-certificates ca-certificates # for git https
pacman -S mingw-w64-x86_64-go
export PATH=$PATH:/mingw64/bin
export GOROOT=/mingw64/lib/go # com from /mingw64/etc/profile.d/go.zsh git
pacman -S libarchive-devel # for build dependency
clone https://aur.archlinux.org/yay.git
cd yay
vim PKGBUILD # remove the 'go' makedepend and 'sudo' depends
makepkg
Сообщение об ошибке происходитв сборке github.com/jguer/go-alpm
/usr/lib/../lib/libalpm.a(libalpm_la-alpm.o):(.text+0x18f): undefined reference to `libintl_bindtextdomain'
/usr/lib/../lib/libalpm.a(libalpm_la-alpm.o):(.text+0x18f): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libintl_bindtextdomain'
/usr/lib/../lib/libalpm.a(libalpm_la-alpm.o):(.text+0x1f2): undefined reference to `curl_global_cleanup'
/usr/lib/../lib/libalpm.a(libalpm_la-alpm.o):(.text+0x1f2): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `curl_global_cleanup'
...