aboutsummaryrefslogtreecommitdiffstats
path: root/testing/iverilog/APKBUILD
blob: 2f782a8231e012dd3c90d250a8c381c78b8ac649 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=iverilog
_pkgver=10_2
pkgver=${_pkgver%%_*}.${_pkgver##*_}
pkgrel=0
pkgdesc="Icarus Verilog compiler and simulation tool"
url="http://iverilog.icarus.com"
arch="all"
license="GPL-2.0-or-later"
depends=""
makedepends="automake autoconf gperf bison flex"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/steveicarus/iverilog/archive/v$_pkgver.tar.gz"
builddir="$srcdir/$pkgname-$_pkgver"

prepare() {
	default_prepare
	cd "$builddir"
	aclocal && autoconf
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="a6d2d3123bbec093784ad14e91fd1d350b2092cf998348b6a9ce764bc739a14834adee5661bf3d21fef187d38fc03c37a079181ce65c3c64a92b1ce16df1aaca  iverilog-10.2.tar.gz"