blob: 8b9c9f42ba786834c5e71405b704a86bea7231c3 (
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
|
# $Id: PKGBUILD 160534 2016-02-07 18:26:19Z anatolik $
# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
pkgname=tarantool-git
pkgver=1.6.8.r593
pkgrel=1
pkgdesc='Lua application server integrated with a database management system'
arch=(i686 x86_64)
url='http://www.tarantool.org'
license=(BSD)
depends=(readline ncurses zlib libyaml)
makedepends=(git cmake systemd)
checkdepends=(python2-daemon python2-gevent python2-tarantool)
conflicts=(tarantool)
provides=(tarantool)
replaces=(tarantool)
install=tarantool.install
source=(git://github.com/tarantool/tarantool.git#branch=1.6
git://github.com/tarantool/luajit.git
git://github.com/tarantool/msgpuck.git
git://github.com/tarantool/libyaml.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'
'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.third_party/libyaml.url' "$srcdir/libyaml"
git config -f .gitmodules 'submodule.third_party/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_BINDIR=/usr/bin \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DENABLE_BUNDLED_LIBYAML:BOOL=OFF \
-DENABLE_BACKTRACE:BOOL=ON \
-DWITH_SYSTEMD:BOOL=ON \
-DENABLE_DIST:BOOL=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 -r "$pkgdir/var/run"
}
|