Skip to content

Commit

Permalink
Merge pull request msys2#18578 from ognevnydemon/jj-extra-binaries
Browse files Browse the repository at this point in the history
jj: switch to cargo install
  • Loading branch information
lazka authored Sep 22, 2023
2 parents 82fecb5 + 7c471fc commit 7f1324c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions mingw-w64-jj/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}"
"${MINGW_PACKAGE_PREFIX}-${_realname}-docs")
pkgver=0.9.0
pkgrel=1
pkgrel=2
pkgdesc="Jujutsu (an experimental VCS) (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32')
Expand Down Expand Up @@ -49,7 +49,16 @@ check() {
package_jj() {
cd "${srcdir}/${_realname}-${pkgver}"

install -Dm755 "target/release/${_realname}.exe" "${pkgdir}${MINGW_PREFIX}/bin/${_realname}.exe"
${MINGW_PREFIX}/bin/cargo install \
--frozen \
--offline \
--no-track \
--path cli \
--root "${pkgdir}${MINGW_PREFIX}" \
--all-features

# used for internal testing
rm ${pkgdir}${MINGW_PREFIX}/bin/fake*

install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE"
install -Dm644 jj.bash "${pkgdir}${MINGW_PREFIX}/share/bash-completion/completions/jj"
Expand Down

0 comments on commit 7f1324c

Please sign in to comment.