blob: 71fb0e39a3b3ba8ed446c2ccbee0a4161efcfe27 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: Markus Koch <markus@notsyncing.net>
# Contributor: Uffe Jakobsen <uffe@uffe.org>
# Contributor: Adrian Perez de Castro <aperez@igalia.com>
pkgname=nvc-git
pkgver=r5664.8db81668
pkgrel=1
pkgdesc="VHDL compiler and simulator"
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/nickg/nvc"
license=('GPL3')
provides=('nvc')
conflicts=('nvc')
depends=(libelf llvm-libs ncurses zstd)
makedepends=(pkgconfig make flex check llvm tcl automake autoconf)
optdepends=('ruby: for the scripts to download and install VHDL libraries')
noextract=()
md5sums=('SKIP')
_gitname=nvc
_gitver=master
source=("git+https://github.com/nickg/${_gitname}.git")
pkgver() {
cd "${srcdir}/${_gitname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_gitname}"
}
build() {
cd "${srcdir}/${_gitname}"
rm -rf _build
mkdir _build
cd _build
../autogen.sh
LDFLAGS="${LDFLAGS} -pthread" \
CFLAGS="${CFLAGS} -pthread" \
CXXFLAGS="${CXXFLAGS} -pthread" \
../configure \
--prefix=/usr \
--disable-dependency-tracking \
--enable-jit \
--enable-verilog \
--enable-vital \
--enable-lto \
--with-llvm=/usr/bin/llvm-config \
--with-bash-completion=/usr/share/bash-completion \
--with-ncurses
make && make bootstrap
}
check() {
cd "${srcdir}/${_gitname}"
}
package() {
cd "${srcdir}/${_gitname}"
make -C_build DESTDIR="${pkgdir}" install
install -Dm755 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md
}
# EOF
|