diff options
author | kmeaw | 2017-01-13 18:38:54 +0300 |
---|---|---|
committer | kmeaw | 2017-01-13 18:38:54 +0300 |
commit | 1e803773ed5c1d99f077268cbb94e4bc7c8dd8c1 (patch) | |
tree | 570e33487fad60b6ca6f887a8c4efdb866ba879f /PKGBUILD | |
download | aur-1e803773ed5c1d99f077268cbb94e4bc7c8dd8c1.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ccefebc41ffe --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: $ +# Maintainer: Dmitry Bilunov <kmeaw@yandex-team.ru> + +pkgname=clickhouse +pkgver=1.1.54127 +pkgrel=1 +pkgdesc='An open-source column-oriented database management system that allows generating analytical data reports in real time' +arch=('i686' 'x86_64') +url='https://clickhouse.yandex/' +license=('Apache') +depends=('ncurses' 'readline' 'unixodbc' 'termcap') +makedepends=('poco' 'cmake' 'gcc>=6.2') +source=(https://github.com/yandex/ClickHouse/archive/v$pkgver-stable.tar.gz clickhouse-server.service) +md5sums=('541a803c9a856390dd207e320eafc7fe' + 'f9f5663b0a9a58e99f481efe9d193e85') +backup=('etc/clickhouse-client/config.xml' 'etc/clickhouse-server/config.xml' 'etc/clickhouse-server/users.xml') +install=$pkgname.install + +build() { + cd ClickHouse-$pkgver-stable + sed -e 's/mysqlxx common\(.*\) \(\${Z_LIB}\)/mysqlxx \2 common\1/' -i libs/libmysqlxx/CMakeLists.txt + cmake -D CMAKE_BUILD_TYPE:STRING=Release -D USE_STATIC_LIBRARIES:BOOL=False -D ENABLE_TESTS:BOOL=False . + make clickhouse +} + +package() { + cd ClickHouse-$pkgver-stable + mkdir -p $pkgdir/etc/clickhouse-server/ $pkgdir/etc/clickhouse-client/ + mkdir -p $pkgdir/usr/bin/ + mkdir -p $pkgdir/usr/lib/systemd/system + ln -s clickhouse-client $pkgdir/usr/bin/clickhouse-server + cp dbms/src/Server/config.xml dbms/src/Server/users.xml $pkgdir/etc/clickhouse-server/ + cp dbms/src/Server/clickhouse $pkgdir/usr/bin/clickhouse-client + cp dbms/src/Client/config.xml $pkgdir/etc/clickhouse-client/ + sed -e 's:/opt/clickhouse:/var/lib/clickhouse:g' -i $pkgdir/etc/clickhouse-server/config.xml + sed -e '/listen_host/s%::%::1%' -i $pkgdir/etc/clickhouse-server/config.xml + cp $startdir/clickhouse-server.service $pkgdir/usr/lib/systemd/system +} + +# vim:set ts=2 sw=2 et: |