blob: 85a2ee0c47e8a6c4bec48cc972074f91c84cb1bf (
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
|
# Maintainer: Sebastian Bøe <sebastianbooe at gmail dot com>
pkgname=firrtl-git
pkgver=r610.83a3dc1
pkgrel=1
pkgdesc='Flexible Intermediate Representation for RTL'
arch=('any')
url='https://github.com/ucb-bar/firrtl'
license=('BSD')
provides=('firrtl')
conflicts=('firrtl')
depends=('java-environment' 'bash')
makedepends=('sbt' 'git')
source=('git+https://github.com/ucb-bar/firrtl.git'
'firrtl.sh')
sha512sums=('SKIP' 'SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build(){
cd $srcdir/firrtl
sbt assembly
}
package() {
jar_location="$pkgdir"/usr/share/scala/"$pkgname"
install -d "$pkgdir"/usr/share/licenses/"$pkgname"
install -d "$pkgdir"/usr/bin
cd "$srcdir"
# Install an executable bash script created for this specific
# package (not the one in utils/bin)
install -Dm755 \
firrtl.sh \
"$pkgdir"/usr/bin/firrtl
cd firrtl
# Install the jar
install -Dm755 \
utils/bin/firrtl.jar \
$jar_location/firrtl.jar
# Install the license
install -Dm644 \
src/LICENSE.txt \
"$pkgdir"/usr/share/licenses/"$pkgname"/
}
|