blob: 59a08ec8dce43b8aaf64c1e440d5f289748dd54f (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Maintainer: Johannes Wienke <languitar@semipol.de>
pkgname='rsbag-tools-cl-stable-git'
pkgver=0.16.0.94cc8a9
_branch=0.16
pkgrel=2
pkgdesc='RSBag common lisp tools'
arch=('i686' 'x86_64')
url='https://projects.cor-lab.org/projects/rsbag'
license=('LGPL3')
makedepends=('git' 'cmake' 'rsb-proto-stable-git' 'sbcl')
options=("!strip")
source=("rsbag-tools-cl::git+https://code.cor-lab.org/git/rsbag.git.tools-cl#branch=${_branch}"
"rsbag-cl::git+https://code.cor-lab.org/git/rsbag.git.cl#branch=${_branch}"
"rsb-tools-cl::git+https://code.cor-lab.org/git/rsb.git.tools-cl#branch=${_branch}"
"rsb-cl::git+https://code.cor-lab.org/git/rsb.git.cl#branch=${_branch}"
"cl-protobuf.tar.gz::https://github.com/scymtym/cl-protobuf/archive/release-0.1.1.tar.gz"
"network.spread.tar.gz::https://github.com/scymtym/network.spread/archive/release-0.3.tar.gz"
"iterate-sequence::git+https://github.com/scymtym/iterate-sequence"
"log4cl::git+https://github.com/sharplispers/log4cl") # can probably be removed with the next RSB release
md5sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'701a2e598687ee881709dad4c8402967'
'ac0928126553de74e8b42b512b33eacc'
'SKIP'
'SKIP')
conflicts=('rsbag-tools-cl')
provides=('rsbag-tools-cl')
_qlver='2017-04-03'
pkgver() {
cd "${srcdir}/rsbag-tools-cl"
printf "%s" "$(git describe --long | sed 's/release-//;s/\([^-]*-\)g/\1/;s/-/./g')"
}
prepare() {
cd "${srcdir}"
if ! [ -f quicklisp/setup.lisp ]
then
mkdir -p quicklisp
curl -O http://beta.quicklisp.org/quicklisp.lisp
sbcl \
--noinform --no-userinit --disable-debugger \
--load quicklisp.lisp \
--eval '(quicklisp-quickstart:install
:dist-version "quicklisp/'"${_qlver}"'"
:path "'"$(pwd)"'/quicklisp")' \
--quit
fi
echo "\"/usr/share/rsbprotocol${_branch}/\"" > "${srcdir}/rsb-cl/protocol-directory.sexp"
cp -R "/usr/share/rsbprotocol${_branch}/" "${srcdir}/rsbag-cl/data/"
sbcl \
--noinform --no-userinit --disable-debugger \
--load "$(pwd)/quicklisp/setup.lisp" \
--eval '(ql:quickload (list :esrap :net.didierverna.clon))' \
--quit
}
build() {
cd "${srcdir}/rsbag-tools-cl"
rm -rf build
mkdir -p build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLISP_INIT_CODE="(load \\\"${srcdir}/quicklisp/setup.lisp\\\")" \
-DLISP_SOURCE_REGISTRY_ENTRIES="(:tree \\\"${srcdir}\\\")" \
-DLISP_FASL_CACHE_DIR="${srcdir}/cache" \
-DWITH_YARP_TRANSPORT=OFF \
-DWITH_ROS_TRANSPORT=OFF ..
make
}
package() {
cd "${srcdir}/rsbag-tools-cl/build"
make DESTDIR="${pkgdir}/" install
}
|