summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 916a5791538e109c51ddef75b49fb6b9953c1430 (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
39
40
41
# Maintainer: Bogdan Danylchenko <exp.wez@gmail.com>
pkgname=hexa-git
pkgver=289
pkgrel=1
pkgdesc="Hexa is a programming language in an early stage of development"
arch=('x86_64')
url="https://github.com/hexalang/hexa"
license=('MIT')
makedepends=('git' 'nodejs')
depends=('nodejs')
provides=('hexa')
source=("hexa::git+https://github.com/hexalang/hexa" "hexa.sh")
md5sums=('SKIP' 'ba6c114926428fc72cfa569490f547b0')

pkgver() {
	cd "$SRCDEST"/hexa
	git rev-list HEAD --count
}

build() {
	cd $srcdir/hexa
    node bootstrap.js hexa.json
}

package() {
	# cd $srcdir/hexa
	mkdir -p $pkgdir/usr/bin
	mkdir -p $pkgdir/usr/share/licenses/hexa-git
	mkdir -p $pkgdir/usr/share/hexa
	mkdir -p $pkgdir/usr/share/hexa/library

	cp $srcdir/hexa/hexa.js $pkgdir/usr/share/hexa/hexa.js
	cp -a $srcdir/hexa/library $pkgdir/usr/share/hexa
	cp $srcdir/hexa/LICENSE $pkgdir/usr/share/licenses/hexa-git/LICENSE

	
	mkdir -p $srcdir/hexabin
	cp $srcdir/hexa.sh $srcdir/hexabin/hexa

    install --mode=755 "$srcdir/hexabin/hexa" "$pkgdir"/usr/bin/
}