diff options
Diffstat (limited to 'dist/msys2-mcode/PKGBUILD')
-rw-r--r-- | dist/msys2-mcode/PKGBUILD | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dist/msys2-mcode/PKGBUILD b/dist/msys2-mcode/PKGBUILD new file mode 100644 index 000000000..70423d64d --- /dev/null +++ b/dist/msys2-mcode/PKGBUILD @@ -0,0 +1,22 @@ +_realname=ghdl-mcode +pkgbase=mingw-w64-${_realname} +pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") +pkgver=ci +pkgrel=1 +pkgdesc="GHDL: the open-source analyzer, compiler, simulator and (experimental) synthesizer for VHDL (mcode backend) (mingw-w64)" +arch=('any') +depends=('zlib-devel') +makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-gcc-ada") + +build() { + mkdir "${srcdir}/builddir" + cd "${srcdir}/builddir" + ../../../../configure --prefix=${MINGW_PREFIX} LDFLAGS=-static --enable-libghdl --enable-synth + make GNATMAKE="gnatmake -j$(nproc)" +} + +package() { + cd "${srcdir}/builddir" + mkdir -p "${pkgdir}${MINGW_PREFIX}/lib" + make DESTDIR="${pkgdir}" install +} |