blob: ac3d8be369fdf2ac30ad2168a2159876e37adb7c (
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
47
48
49
50
51
52
53
|
# Maintainer: taij33n <bwbuiz@gmail.com>
pkgname=picolisp
pkgver=16.6.r0.g03016a6
pkgrel=1
pkgdesc="Fast and tiny 64-bit Lisp interpreter: OO, dynamic and functional (database, prolog, coroutines)."
url="http://www.picolisp.com"
arch=('any')
license=('MIT')
depends=('bash' 'openssl' 'gcc-multilib')
optdepends=('jre: for picolisp ersatz.jar')
makedepends=('make' 'git' 'gcc')
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'
}
prepare() {
cd "${srcdir}/${pkgname}/src64"
cp -f ../../../mkAsm ./
}
build() {
# build 32bit version and tools first
cd "${srcdir}/${pkgname}/src"
make all
make clean
# build the 64bit version
cd "${srcdir}/${pkgname}/src64"
if [ $CARCH = "x86_64" ]
then
# real 64-bit env
make
make clean
else
# emulation of 64-bit env
make emu
make clean
fi
}
package() {
install -d -m755 "${pkgdir}/usr/lib/picolisp"
cp -a ${srcdir}/${pkgname}/* ${pkgdir}/usr/lib/picolisp/
}
|