summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 67bf33beb4087c454209de03b923faeff6798d3b (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
# Maintainer: Oleh Prypin <aur@blaxpirit.com>
pkgname=crystal-icr
pkgver=0.2.4
pkgrel=1
pkgdesc="Interactive console for Crystal programming language"
arch=('i686' 'x86_64')
url='https://github.com/greyblake/crystal-icr'
license=('unknown')
depends=('crystal' 'readline')
source=("https://github.com/greyblake/crystal-icr/archive/v$pkgver.tar.gz")
sha256sums=('95c9b49532dc1914d34fa1daed23574f62c87ef1c2a0967f4044ede07450f488')

build() {
  cd "$pkgname-$pkgver"
  make
}

check() {
  cd "$pkgname-$pkgver"
  make test || true # TODO remove when tests pass
}

package() {
  cd "$pkgname-$pkgver"
  install -Dm755 bin/icr "$pkgdir/usr/bin/icr"
}