1 # Contributor: Andrej Nandaromovszij <sorosj@gmail.com>
6 pkgdesc="A new DHT implementation from the author of the in-kernel distributed filesystem POHELMFS"
8 url="http://ioremap.net/projects/elliptics"
10 makedepends=('make' 'gcc' 'git' 'autoconf' 'automake')
11 optdepends=('fcgi' 'tokyotyrant' 'libatomic' 'db')
14 _gitroot=http://www.ioremap.net/git/elliptics.git
15 _gitrepo=elliptics.ġit
18 export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
19 export LDFLAGS="${LDFLAGS//,--as-needed}"
20 export LDFLAGS="${LDFLAGS//--as-needed}"
21 msg "this package can use 'fcgi', 'tokyotyrant', 'libatomic' and 'db'"
22 msg "If your build fails with
23 '../library/.libs/libdnet.so: undefined reference to __sync_sub_and_fetch_4'
24 you should install libatomic, as your architecture doesn't support atomic operations out of the box"
25 msg "Cloning the repo..."
27 if [ ! -d $_gitrepo ]; then
28 git clone $_gitroot $_gitrepo
35 msg "Done, now exporting a pristine version of the repo to work in..."
37 git archive --format=tar --prefix=$pkgname/ HEAD | (cd $startdir/src/ && tar xf -)
40 msg "Done, building elliptics..."
42 ./configure --prefix=/usr
43 make DESTDIR="$startdir/pkg/"
44 make DESTDIR="$startdir/pkg/" install