aboutsummaryrefslogtreecommitdiffstats
path: root/testing/systemc/APKBUILD
blob: cbf0c0e5189344e4810e86be110900c05b6ef1f5 (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=systemc
pkgver=2.3.2
pkgrel=0
pkgdesc="C++ library for modeling and describing complex hardware systems"
url="http://www.accellera.org/downloads/standards/systemc"
arch="x86 x86_64" # upstream only supports x86*
license="Apache-2.0"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc $pkgname-dev"
source="http://www.accellera.org/images/downloads/standards/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver/objdir"

prepare() {
	mkdir -p "$builddir"
	default_prepare
}

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

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

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

sha512sums="050e99a50997a6a9594d6083d1d990540026fa4ab5985ec2923602c40cc4f55a2b099cd71b681ba52e5ed745ce016133244d0dc061b79676804c3c07568e60e9  systemc-2.3.2.tar.gz"