summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6def50086dd9e4aed75ed067287cae5e3131b0cc (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
pkgname=moonshine
pkgver=0.2.1
pkgrel=1

pkgdesc="A lightweight Lua VM for the browser"
url="http://moonshinejs.org"
arch=('any')
license=('GPL3')

depends=('lua' 'nodejs')
makedepends=('npm')

source=(moonshine-"$pkgver".tar.gz::https://github.com/gamesys/moonshine/archive/"$pkgver".tar.gz)

noextract=("$pkgver.tgz")

sha1sums=('4ea6a621bdc6778b165e91571293c990617371b2')

package() {
	npm install -g --prefix "$pkgdir"/usr moonshine-"$pkgver".tar.gz
	install -D "$pkgdir"/usr/lib/node_modules/moonshine/bin/man/*.1 \
	           "$pkgdir"/usr/share/man/man1/
	chown -R root:root "$pkgdir"/usr
}