summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a2e8d7831bce9068488f042c214b7a13430517f (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: Peter <peter@nexoid.at>
# Previous Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=femtolisp-git
pkgver=r308.0bf4243
pkgrel=2
#_contributor=JeffBezanson
_contributor=lambdaconservatory
pkgdesc="lightweight, robust, scheme-like lisp implementation"
arch=('i686' 'x86_64')
url="https://github.com/${_contributor}/femtolisp"
depends=('glibc')
license=('custom:BSD')
provides=('femtolisp')
conflicts=('femtolisp')
makedepends=('git')
source=("git+$url.git")
md5sums=('SKIP')

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

build() {
  cd "${pkgname%-git}"
  # see man wcwidth
  sed -i '1i #define _XOPEN_SOURCE' string.c
  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
}