Skip to content

Commit

Permalink
msys2: work around makepkg hanging at the end of build()
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed May 19, 2020
1 parent 42cbe91 commit 35457c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions dist/msys2-mingw/llvm/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ build() {
cd "${srcdir}/builddir"
../../../../../configure --prefix=${MINGW_PREFIX} --with-llvm-config="llvm-config --link-static" LDFLAGS="-static" --enable-libghdl --enable-synth
make GNATMAKE="gnatmake -j$(nproc)"
exit
}

package() {
Expand Down
2 changes: 2 additions & 0 deletions dist/msys2-mingw/mcode/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ build() {
cd "${srcdir}/builddir"
../../../../../configure --prefix=${MINGW_PREFIX} LDFLAGS=-static --enable-libghdl --enable-synth
make GNATMAKE="gnatmake -j$(nproc)"
exit
}

package() {
cd "${srcdir}/builddir"
mkdir -p "${pkgdir}${MINGW_PREFIX}/lib"
make DESTDIR="${pkgdir}" install
}

6 changes: 4 additions & 2 deletions dist/msys2-mingw/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ build () {

gstart 'Build package'
dos2unix PKGBUILD
makepkg-mingw -sCLfc --noconfirm --noprogressbar
makepkg-mingw --noconfirm --noprogressbar -sCLf --noarchive
gend

ls -la
gstart 'Archive package'
makepkg-mingw --noconfirm --noprogressbar -R
gend

gstart 'Install package'
pacman --noconfirm -U "mingw-w64-${TARBALL_ARCH}-ghdl-${TARGET}-ci"-*-any.pkg.tar.zst
Expand Down

0 comments on commit 35457c9

Please sign in to comment.