summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e5c7b7df9b7d5d9c3ba5f22376a943e24e4a1d3c (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
42
43
44
45
46
# Maintainer: taij33n <bwbuiz@gmail.com>
pkgname=picolisp      
pkgver=3.1.12.r0.g4535b0d
pkgrel=2
pkgdesc="Fast and tiny 64-bit Lisp interpreter: OO, dynamic and functional (database, prolog, coroutines)."
url="http://www.picolisp.com"
arch=('x86_64' 'i686')
license=('MIT')
depends=('bash' 'openssl')
optdepends=('jre: for picolisp ersatz.jar')
makedepends=('make' 'git')
source=("$pkgname::git+https://github.com/taij33n/picolisp.git")
md5sums=("SKIP")
install=$pkgname.install

pkgver() {
    cd "${pkgname}"
    # cutting off 'foo-' prefix that presents in the git tag
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  # build 32bit version and tools first
  cd "${srcdir}/${pkgname}/src"
  make all

  # build the 64bit version
  cd "${srcdir}/${pkgname}/src64"
  if [ $CARCH = "x86_64" ]
  then
    # real 64-bit env
    make 
  else
    # emulation of 64-bit env
    make emu
  fi
}

package() {
  install -d -m755 "${pkgdir}/usr/lib/picolisp"
  cp -a ${srcdir}/${pkgname}/* ${pkgdir}/usr/lib/picolisp/

}