blob: 3d42917bbab33de709abd3657f77f59e8a082528 (
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
|
# Maintainer: Katie Wolfe <katie@dnaf.moe>
_lua_version=5.3
pkgname=fennel-git
pkgver=r343.bb85b0c
pkgrel=3
pkgdesc="A Lua Lisp language"
arch=('x86_64')
url="https://github.com/bakpakin/Fennel"
license=('MIT')
groups=()
depends=('lua')
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("${pkgname%-git}::git+https://github.com/bakpakin/Fennel.git")
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
# TODO: once tagged releases exist, switch to this
# printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/${pkgname%-git}"
install -Dm644 "fennel.lua" "fennelview.fnl" \
-t "${pkgdir}/usr/lib/lua/${_lua_version}"
install -Dm755 "fennel" \
"${pkgdir}/usr/bin/fennel"
}
|