blob: 5b11dba7fc87bf0c2de3232b734bcf6c8c3a5066 (
plain)
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
50
|
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
pkgdesc='VHDL compiler and simulator'
pkgname=nvc
pkgver=1.12.2
pkgrel=1
url=https://www.nickg.me.uk/nvc
license=(GPL-3.0-or-later)
conflicts=(nvc-git)
arch=(x86_64 i686)
depends=(libelf llvm-libs ncurses zstd tcl capstone)
makedepends=(pkgconfig make flex check llvm automake autoconf)
optdepends=('ruby: for the scripts to download and install VHDL libraries')
source=("${url%/nvc}/files/${pkgname}-${pkgver}.tar.gz")
b2sums=('fb3aae12df7fbc4fa3bcc2a5b9f7a4c4d8518283a9f2c5ec089523a206588c6825d1df2c33c182928b57b1cff5edb71de21c96c0cf9a488666e7376fa15fbae6')
build () {
cd "${pkgname}-${pkgver}"
rm -rf _build
mkdir _build
cd _build
LDFLAGS="${LDFLAGS} -pthread" \
CFLAGS="${CFLAGS} -pthread" \
CXXFLAGS="${CXXFLAGS} -pthread" \
../configure \
--prefix=/usr \
--disable-dependency-tracking \
--enable-silent-rules \
--enable-verilog \
--enable-vital \
--enable-server \
--enable-tcl \
--with-llvm=/usr/bin/llvm-config \
--with-bash-completion=/usr/share/bash-completion \
--with-ncurses
make && make bootstrap
}
check () {
# TODO: Currently three test cases fail.
: make -C "${pkgname}-${pkgver}/_build" check
}
package () {
cd "${pkgname}-${pkgver}"
make -C_build DESTDIR="${pkgdir}" install
install -Dm755 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md
}
|