summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dfddc33ca8d17a8e8f317b72313f09197b8b2d28 (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
# Maintainer: pixeljoelson <pixeljoelson@gmail.com>
pkgname=kit-git
pkgver=r252.8aa8a0a
pkgrel=1
pkgdesc="A magical, high performance programming language for game development."
arch=('x86_64')
url="https://kitlang.org"
license=('LGPL3')
groups=()
depends=('gmp')
makedepends=('git' 'stack')
optdepends=('ccache: compilation caching support')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/kitlang/kit.git')
noextract=()
md5sums=('SKIP')

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

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

package() {
	cd "$srcdir/${pkgname%-git}"
	stack install --local-bin-path "$pkgdir/usr/bin"
	mkdir -p "$pkgdir/usr/lib/kit"
	cp -r std/* "$pkgdir/usr/lib/kit"
}