blob: deb0d39ebfc978ec4e3cf7cb2757dea2149efc90 (
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
|
# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
pkgname=tarantool-git
pkgver=1.6.7.r562.g3dbc9ff
pkgrel=1
pkgdesc='an in-memory database designed to store the most volatile and highly accessible web content'
arch=(i686 x86_64)
url='http://www.tarantool.org'
license=(BSD)
depends=(readline ncurses zlib)
makedepends=(git cmake)
checkdepends=(python2-daemon python2-yaml python2-msgpack python2-tarantool python2-gevent)
source=(git://github.com/tarantool/tarantool.git
git://github.com/tarantool/luajit.git
git://github.com/tarantool/msgpuck.git
git://github.com/rtsisyk/luafun.git
git://github.com/tarantool/sophia.git
git://github.com/tarantool/test-run.git
git://github.com/tarantool/small.git)
sha1sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
pkgver() {
cd tarantool
git describe | sed 's/^v//; s/-/.r/; s/-/./'
}
build() {
cd tarantool
# tarantool uses git submodule, handle this
git submodule init
git config -f .gitmodules 'submodule.third_party/luajit.url' "$srcdir/luajit"
git config -f .gitmodules 'submodule.src/lib/msgpuck.url' "$srcdir/msgpuck"
git config -f .gitmodules 'submodule.third_party/luafun.url' "$srcdir/luafun"
git config -f .gitmodules 'submodule.sophia.url' "$srcdir/sophia"
git config -f .gitmodules 'submodule.test-run.url' "$srcdir/test-run"
git config -f .gitmodules 'submodule.src/lib/small.url' "$srcdir/small"
git submodule sync
git submodule update
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc/tarantool \
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
.
make
}
check() {
cd tarantool/test
./test-run.py --suite box
}
package() {
cd tarantool
make install DESTDIR="$pkgdir"
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
rm "$pkgdir/usr/share/doc/tarantool/LICENSE"
}
|