summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: faa9a51e60ac16567141c3f6b3a30f34ecb6c952 (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
# Maintainer: kraftwerk28 <kefirchik3@gmail.com>

pkgname=porth-git
pkgver=1.0
pkgrel=1
pkgdesc="It's like Forth but in Python"
arch=('x86_64')
url="https://github.com/tsoding/porth.git"
license=('MIT')
depends=('nasm' 'binutils' 'python')
makedepends=('git' 'python')
source=("git+https://github.com/tsoding/porth.git")
sha256sums=('SKIP')

check() {
	cd "$srcdir/${pkgname%-git}"
	python test.py
}

package() {
	cd "$srcdir/${pkgname%-git}"
	mkdir -p "$pkgdir/usr/share/${pkgname%-git}/examples"
	cp -R "examples/" "$pkgdir/usr/share/${pkgname%-git}"
	mkdir -p "$pkgdir/usr/lib/${pkgname%-git}"
	cp -RT "std/" "$pkgdir/usr/lib/${pkgname%-git}/"
	mkdir -p "$pkgdir/usr/bin"
	cp "porth.py" "$pkgdir/usr/bin/${pkgname%-git}"
}