diff options
Diffstat (limited to 'dist/msys2-mingw/llvm/PKGBUILD')
-rw-r--r-- | dist/msys2-mingw/llvm/PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dist/msys2-mingw/llvm/PKGBUILD b/dist/msys2-mingw/llvm/PKGBUILD new file mode 100644 index 000000000..0f6ebf9af --- /dev/null +++ b/dist/msys2-mingw/llvm/PKGBUILD @@ -0,0 +1,28 @@ +_realname=ghdl-llvm +pkgbase=mingw-w64-${_realname} +pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") +pkgver=ci +pkgrel=1 +pkgdesc="GHDL: the open-source analyzer, compiler and simulator for VHDL (LLVM backend) (mingw-w64)" +arch=('any') +#depends=() +makedepends=("${MINGW_PACKAGE_PREFIX}-clang" "${MINGW_PACKAGE_PREFIX}-gcc-ada") +#source=( +# "ghdl::git://github.com/ghdl/ghdl.git#branch=master" +#) +#sha512sums=( +# 'SKIP' +#) + +build() { + mkdir "${srcdir}/builddir" + cd "${srcdir}/builddir" + ../../../../../configure --prefix=${MINGW_PREFIX} --with-llvm-config 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 +} |