# Template file for 'lfe'
pkgname=lfe
version=2.2.0
revision=1
build_style=gnu-makefile
hostmakedepends="erlang"
depends="erlang"
short_desc="Lisp flavoured erlang"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="http://lfe.io/"
distfiles="https://github.com/lfe/lfe/archive/v${version}.tar.gz"
checksum=5c9de979c64de245ac3ae2f9694559a116b538ca7d18bb3ef07716e0e3a696f3

do_install() {
	for b in lfe lfec lfescript; do
		vbin bin/${b}
	done

	for m in doc/man/*; do
		vman ${m}
	done

	for f in doc/{*.txt,*.md}; do
		vdoc ${f}
	done

	vmkdir usr/lib/erlang/lib/lfe/ebin
	vcopy ebin/* usr/lib/erlang/lib/lfe/ebin
}
