summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e598513aa752242b244f622637ae5bbbb22a02d5 (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=femtolisp-git
pkgver=r291.643c304
pkgrel=1
pkgdesc="lightweight, robust, scheme-like lisp implementation"
arch=('i686' 'x86_64')
url="https://github.com/JeffBezanson/femtolisp"
depends=('glibc')
license=('custom:BSD')
provides=('femtolisp')
conflicts=('femtolisp')
makedepends=('git')
source=("git+https://github.com/JeffBezanson/femtolisp")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}

build() {
  cd "${pkgname%-git}"
  make -j1 -l release
}

check() {
  cd "${pkgname%-git}"
  make -j1 -l test
}

package() {
  cd "${pkgname%-git}"
  install -Dm755 flisp "$pkgdir"/usr/bin/flisp
  install -Dm644 flisp.boot "$pkgdir"/usr/bin/flisp.boot
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/femtolisp-git/LICENSE
}