blob: a4f84d20f07efc78e0fa8f1b64454f50cbacc0c0 (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
pkgname=oss-cvc-git
pkgver=r11.d01c4ab
pkgrel=2
pkgdesc="a full IEEE 1364 2005 compliant Verilog Hardware Description Language (HDL) simulator"
arch=("x86_64")
# original provider: http://www.tachyon-da.com/
url="https://github.com/cambridgehackers/open-src-cvc"
license=('custom')
groups=()
depends=()
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('oss-cvc::git+https://github.com/cambridgehackers/open-src-cvc.git'
'header-fix.patch'
'mem-mgmt-fix.patch'
'vpi-header-fix.patch'
'oss-cvc-vpi.pc')
noextract=()
md5sums=('SKIP'
'87e282ade0fc00012cc2061f464276ad'
'288f25791fe0148f7c9fa8b009300add'
'e067b67f9453cf61629cc9d8f8d58b2b'
'e0b29b4e45f3e16e2da33fb95e02317d')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${pkgname%-git}"
patch -p1 -i "${srcdir}/header-fix.patch"
patch -p1 -i "${srcdir}/mem-mgmt-fix.patch"
patch -p1 -i "${srcdir}/vpi-header-fix.patch"
}
build() {
cd "${srcdir}/${pkgname%-git}/src"
make -f makefile.cvc64 cvc64
cd "${srcdir}/${pkgname%-git}/toggle_coverage/src"
make -f makefile.lnx all
}
package() {
cd "${srcdir}/${pkgname%-git}"
install -d "${pkgdir}/usr/bin"
for b in \
src/cvc64 \
toggle_coverage/src/{chk_tgldat,tgldat_merge,tgldat_report,tvcd_to_tgldat}
do
install -m 755 -t "${pkgdir}/usr/bin" $b
done
ln -s cvc64 "${pkgdir}/usr/bin/cvc"
install -d "${pkgdir}/usr/include/oss-cvc"
for h in pli_incs/*.h ; do
install -m 644 -t "${pkgdir}/usr/include/oss-cvc" $h
done
install -d "${pkgdir}/usr/share/licenses/oss-cvc"
for l in \
OSS-CVC-MODIFIED-ARTISTIC-LIC.TXT \
OSS-CVC-ARTISTIC-LICENSING-FAQ.pdf
do
install -m 644 -t "${pkgdir}/usr/share/licenses/oss-cvc" $l
done
install -d "${pkgdir}/usr/share/doc/oss-cvc"
for d in \
*README \
doc/*{README,txt,pdf} \
doc/systemverilog.doc/*README \
toggle_coverage/README*
do
install -m 644 -t "${pkgdir}/usr/share/doc/oss-cvc" $d
done
install -d "${pkgdir}/usr/lib/pkgconfig"
install -m 644 -t "${pkgdir}/usr/lib/pkgconfig" "${srcdir}/oss-cvc-vpi.pc"
}
|