blob: d666ac7ed4887b1f724d6516ef9d6cf21cc0d400 (
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
|
# Maintainer: Torleif Skår <torleif DOT skaar AT gmail.com>
# Contributor: David Manouchehri <david@davidmanouchehri.com>
_pkgname=iverilog
pkgname=${_pkgname}-libvvp-git
pkgver=12.0.r777.g15d6e83
pkgrel=1
pkgdesc="Icarus Verilog simulation and synthesis tool - With VVP library support"
arch=('i686' 'x86_64')
_url="https://github.com/steveicarus/iverilog"
url="http://iverilog.icarus.com/"
license=('GPL-2.0-or-later')
depends=(
'gcc-libs'
'bzip2'
'bash'
'zlib'
'readline'
)
makedepends=(
'git'
'autoconf'
'gperf'
'make'
'gcc'
'bison'
'flex'
)
provides=(
"${_pkgname}"
)
options=()
source=("git+${_url}")
b2sums=('SKIP')
pkgver() {
cd "${_pkgname}"
# Grab the latest 'version' tag and not snapshot tag
(
set -o pipefail
tag=$(git tag --list 'v[0-9]*' --sort=-version:refname | head -n1)
commits=$(git rev-list --count "${tag}"..HEAD)
hash=$(git rev-parse --short=7 HEAD)
version="$(echo ${tag#v} | sed 's/_/./g' - )"
echo "${version}.r${commits}.g${hash}"
)
}
build() {
cd "$srcdir/${_pkgname}"
sh autoconf.sh
./configure --prefix=/usr --enable-libvvp
make
}
checks() {
cd "${_pkgname}"
make check
}
package() {
cd "${_pkgname}"
DESTDIR="$pkgdir" make install
}
|