summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b38a5b8ef0d4980e5ced5dc0fe8b89ceb5de8fbf (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
pkgbase=bluespec
pkgname=(bluespec-tools bluespec-docs)
pkgver=2019.05.beta2
pkgrel=1
pkgdesc='Bluespec SystemVerilog Tools'
url='http://forum.bluespec.com'
arch=(x86_64)
license=(custom)
depends=(glibc libstdc++5 gmp4)
makedepends=()
options=(!strip)
optdepends=(
	'emacs: Syntax highlight with emacs'
	'vim: Syntax highlight with vim'
)
source=('https://s3.wasabisys.com/bluespec/downloads/Bluespec-2019.05.beta2/Bluespec-2019.05.beta2-centos7-amd64.tar.gz')
sha256sums=('99bc63f992f80d983b22f50e660a39268a997caed1f484b97161949c7ccf13e4')

BUILD_DIR=build

prepare() {
	cat <<EOF > bluespec-home.sh
export BLUESPECDIR="/opt/bluespec"
EOF
}

package_bluespec-tools() {
	cd "$srcdir"
	install -d "$pkgdir/etc/profile.d"
	install -Dm 755 ./bluespec-home.sh "$pkgdir/etc/profile.d/"

	cd "Bluespec-${pkgver}-centos7-amd64"
	install -d "$pkgdir/opt/bluespec"
	cp -r ./lib/* "$pkgdir/opt/bluespec/"
	install -d "$pkgdir/usr/bin"
	install -Dm 755 ./bin/* "$pkgdir/usr/bin/"

	install -d "$pkgdir/usr/share/vim/vimfiles"
	cp -r ./util/vim/{ftdetect,indent,syntax} "$pkgdir/usr/share/vim/vimfiles/"
}

package_bluespec-docs() {
	cd "$srcdir/Bluespec-${pkgver}-centos7-amd64"
	install -d "$pkgdir/usr/share/doc"
	cp -r ./doc/* "$pkgdir/usr/share/doc/"

}