blob: 4e9cf803d8d2e6d14079c076aee668128190ff45 (
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
|
# Maintainer: Sean Anderson <seanga2@gmail.com>
# Contributor: Frederik Schwan <freswa at archlinux dot org>
# Contributor: Sebastian Bøe <sebastianbooe at gmail dot com>
pkgname=chisel
pkgver=6.3.0
pkgrel=2
pkgdesc='Constructing Hardware in a Scala Embedded Language'
arch=('any')
url='https://www.chisel-lang.org/'
license=('BSD')
_java_version=11
_scala_version=2.13
depends=(
java-environment=$_java_version
)
optdepends=(
"verilator: for simulation"
)
makedepends=(
graphviz
sbt
)
source=(
"https://github.com/chipsalliance/chisel/archive/refs/tags/v${pkgver}.tar.gz"
"chisel.patch"
)
sha256sums=('fe8fe151db667b4c93f73392b762d174140d7710a45e9bac000d9d4539136cb8'
'77c48cd298c9a0311b26bba156e081560bd50c0bf220beb5d095405eeb5ae894')
prepare() {
cd $pkgname-$pkgver
patch -p1 -i "$srcdir/chisel.patch"
echo "ThisBuild / version := \"$pkgver\"" > version.sbt
}
build() {
cd ${pkgname}-${pkgver}
sbt --batch --java-home "/usr/lib/jvm/java-${_java_version}-openjdk/" assembly
}
package() {
cd ${pkgname}-${pkgver}
install -dm755 "${pkgdir}"/usr/share/licenses/${pkgname} "${pkgdir}"/usr/share/scala/${pkgname}/
install -Dm644 target/scala-$_scala_version/${pkgname}-assembly-${pkgver}.jar \
"${pkgdir}"/usr/share/scala/${pkgname}/${pkgname}.jar
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/
}
|