summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e20ce70448a6d6770344d1adf29c508bb7a565d9 (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
# Maintainer: Paulo Matos <paulo@matos-sorge.com>
# Contributor: b4283 <unknown@unknowndomain.com>
pkgname=riscv-isa-sim-git # '-bzr', '-git', '-hg' or '-svn'
pkgver=r496.785762c
pkgrel=1
pkgdesc="Spike, a RISC-V ISA Simulator"
arch=(x86_64 i686)
url="https://github.com/riscv/riscv-isa-sim"
license=('BSD')
groups=()
depends=(riscv-fesvr-git dtc)
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/riscv/riscv-isa-sim')
md5sums=('SKIP')
noextract=()

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	./configure --prefix=/usr
	make
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir/" install
}