summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d055a927ce1c4eca02de497b2afa9b7f068bb328 (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
# Maintainer: Jiuyang Liu <liujiuyang1994@gmail.com>

pkgname=bluespec-git
pkgver=r3.cc623d8
pkgrel=1
pkgdesc='Bluespec Compiler (BSC)'
arch=('x86_64')
url='https://github.com/B-Lang-org/bsc'
license=('custom')
depends=()
makedepends=('git' 'gperf' 'ghc' 'haskell-regex-compat' 'haskell-syb' 'haskell-old-time' 'fontconfig' 'libxft')
source=("git+https://github.com/B-Lang-org/bsc.git")
md5sums=('SKIP')

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

prepare() {
  cd "$srcdir/bsc"
  git submodule update --init --recursive
}

build(){
  cd "$srcdir/bsc"
  make GHC="ghc -dynamic"
}

package() {
  cd "$srcdir/bsc"
}