-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathPKGBUILD
49 lines (46 loc) · 1.37 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
_realname=ghdl-mcode
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=v0.37.0
pkgrel=1
pkgdesc="GHDL: the open-source analyzer, compiler, simulator and (experimental) synthesizer for VHDL (mcode backend) (mingw-w64)"
arch=('any')
license=(['GPLv2+', 'custom'])
url="http://ghdl.free.fr/"
provides=("${MINGW_PACKAGE_PREFIX}-ghdl")
conflicts=(
"${MINGW_PACKAGE_PREFIX}-ghdl-llvm"
"${MINGW_PACKAGE_PREFIX}-ghdl-mcode-rc"
"${MINGW_PACKAGE_PREFIX}-ghdl-llvm-rc"
"${MINGW_PACKAGE_PREFIX}-ghdl-mcode-git"
"${MINGW_PACKAGE_PREFIX}-ghdl-llvm-git"
)
depends=('zlib-devel')
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-gcc-ada")
source=(
"ghdl::git://github.com/ghdl/ghdl.git#tag=${pkgver}"
)
sha512sums=(
'SKIP'
)
# FIXME: Cannot run tests because expected failures make 'check()' exit with error: A failure occurred in check()
# Here, the testsuite is copied to be executed afterwards
prepare() {
cp -r "${srcdir}/ghdl/testsuite" "${startdir}/"
rm -rf "${startdir}"/testsuite/gna/bug071/
}
build() {
mkdir "${srcdir}/builddir"
cd "${srcdir}/builddir"
../ghdl/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
}