summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 85d2c7617757bb588d27c7cf8d5b7416381d5df0 (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
# Maintainer: Adiee5 <adiee5@adiee5.ct8.pl>
pkgname=prog8
pkgver=10.5
pkgrel=1
pkgdesc="A high-level programming language designed for 6502 based devices"
arch=("any")
url="https://github.com/irmen/prog8"
license=('GPL-3.0-only')
depends=("java-runtime-headless>=11" "tass64")
optdepends=("x16-emulator: emulating Commander x16"
	    "vice: Commodore 64 emulation"
#	    "box16: It doesn't look like box16 has an AUR package..."
#	    "vim: Editing prog8 code"
#	    "nano: Editing prog8 code"
	    )
source=("prog8c-$pkgver.jar::https://github.com/irmen/prog8/releases/download/v$pkgver/prog8c-$pkgver-all.jar"
	"p8compile"
	"prog8_detect.vim"
	"https://raw.githubusercontent.com/irmen/prog8/master/LICENSE"
	"https://raw.githubusercontent.com/irmen/prog8/master/syntax-files/nano/prog8.nanorc"
	"https://raw.githubusercontent.com/irmen/prog8/master/syntax-files/Vim/prog8.vim"
	"https://raw.githubusercontent.com/irmen/prog8/master/syntax-files/Vim/prog8_builtins.vim"
	"prog8c_var_init")
noextract=("prog8c-$pkgver.jar")
sha256sums=("4af437045ac065a8ab1d128ffa7027a6ef72929ff38bb4a9daad0e32c9b3581b"
	    "c5b390a611ce778d8e22b6a2f626d273d424889c1ee7ce5454c66bce35aa888c"
	    "SKIP"
	    "SKIP"
	    "SKIP"
	    "SKIP"
	    "SKIP"
	    "SKIP")

package() {
	install -Dm644 $srcdir/prog8c-$pkgver.jar "$pkgdir/usr/share/java/prog8/prog8c.jar"
	install -Dm755 p8compile "$pkgdir/usr/bin/p8compile"
	install -Dm755 p8compile "$pkgdir/usr/bin/prog8c"
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -Dm644 prog8.nanorc "$pkgdir/usr/share/nano/prog8.nanorc"
	install -Dm644 prog8_detect.vim "$pkgdir/usr/share/vim/vimfiles/ftdetect/prog8.vim"
	install -Dm644 prog8.vim "$pkgdir/usr/share/vim/vimfiles/syntax/prog8.vim"
	install -Dm644 prog8_builtins.vim "$pkgdir/usr/share/vim/vimfiles/syntax/prog8_builtins.vim"
	install -Dm644 prog8c_var_init "$pkgdir/etc/profile.d/prog8.sh"
}