summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 02f1edc4e87ee1fe35865580b21bdc2b302ab259 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
# Maintainer: Fionn Langhans <fionn.langhans@gmail.com>
pkgname=jfederc-git
pkgver=1.1
pkgrel=3
epoch=

pkgdesc="A compiler for the Feder programming language"
arch=('any')
url="https://github.com/codefionn/feder"
license=('ZLIB')
groups=()
depends=('gcc' 'java-environment>=8')
makedepends=('git')
optdepends=('clang: Another C compiler')
checkdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=()
noextract=()
md5sums=()
validpgpkeys=()

prepare() {
	cd $srcdir
	rm -rf feder
	git clone $url
	cd feder
}

build() {
	cd $srcdir
	cd feder
	./scripts/build.sh
}

check() {
	cd $srcdir
	cd feder
	cd federlang
	./tests/test.sh
}

package() {
	cd $srcdir
	cd feder
	./scripts/install.sh "$pkgdir"
	mkdir --parents "$pkgdir/usr/share/licenses/jfederc-git"
	cp LICENSE "$pkgdir/usr/share/licenses/jfederc-git/"
}