summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 06acd8677f31d9d919c24c4c95fc4def418a9af7 (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
# Maintainer: Márton Szabó <username="notramo" host="vipmail.hu">
pkgname=crystal-icr-git
pkgver=v0.4.0.r5.4495b1d
pkgrel=1
pkgdesc="Interactive console for Crystal programming language. Git version."
arch=(i686 x86_64)
url='https://github.com/crystal-community/icr'
license=(LGPL)
depends=('crystal' 'readline')
makedepends=('llvm')
source=("git+https://github.com/crystal-community/icr")
sha256sums=('SKIP')

pkgver() {
  cd "icr"
  printf "%s" "$(git describe --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
  cd "icr"
  make
}

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