summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 83611c1f68bb8d7350b7836ccfc5b099a03d8022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pkgname=purescript
pkgver=0.13.8
pkgrel=1
pkgdesc="A small strongly, statically typed programming language with expressive types, inspired by Haskell and compiling to JavaScript."
arch=('x86_64')
url="https://hackage.haskell.org/package/purescript"
license=('custom:BSD3')
makedepends=('stack')
source=(${pkgname}-${pkgver}.tar.gz::"https://hackage.haskell.org/package/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('701fac49de867ec01252b067185e8bbd1b72e4b96997044bac3cca91e3f8096a')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  stack build
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  stack --local-bin-path "${pkgdir}/usr/bin/" install
}