# Maintainer: Sergey Mezentsev pkgbase='clickhouse-bin' pkgname=('clickhouse-server-bin' 'clickhouse-common-static-bin' 'clickhouse-client-bin') # 'stable' - for production environment # 'testing' - most recent version # 'prestable' and 'lts' are available _channel='stable' pkgver=20.5.4.40 pkgrel=1 provides=('clickhouse') pkgdesc="ClickHouse is a fast open-source OLAP database management system" arch=('x86_64') url="https://clickhouse.tech/" license=('Apache') source=( "https://repo.yandex.ru/clickhouse/tgz/$_channel/clickhouse-client-$pkgver.tgz" "https://repo.yandex.ru/clickhouse/tgz/$_channel/clickhouse-common-static-$pkgver.tgz" "https://repo.yandex.ru/clickhouse/tgz/$_channel/clickhouse-server-$pkgver.tgz" "clickhouse.sysusers" "clickhouse-server.service" ) sha512sums=('5e5005681bb11ea716801ad261d6565beb61578a200e8389a20196e7da87d24b50268cd8245b647de7890e2749fa32bab63d213d63a5382b3730b0af37cee526' 'fc1be7a92e0de5d214c14f6da0cf5b25bafe0f7e4ac9df0717fa4ea76f79fb8bf2b626de17b8cf58ca1622e032c39717255e04ba3e9d4f7f74468dceb9e79afe' 'cea7810a68c2d5379f21885b28a2e3a27e017f83c366d9c0e5bdb744c04e809c6527734f615c9a8fea2e822f3be9166536a9b4cfad0c8ccb8df29df37f16af91' '70af4456ded1a1bb5cf29d2d3b29086aedc7875ef673e8817f389243f0c79eb491c9ce715b94542cbe16eb7489d97411ff0ab4a1a7f6c9b9120c659b87ea25b7' 'f70fb1fc8d26e1d6c8b4f5c808b373d464cd20ace363cfd735703d1af0f6ec6196a0c7c905d804fad789eb51acab4896397e70b64a0b61cdcd7457a6694fc4b3') package_clickhouse-client-bin() { depends=('clickhouse-common-static-bin') backup=('etc/clickhouse-client/config.xml') pkgdesc="ClickHouse client and other client-related tools." cd "clickhouse-client-$pkgver" cp -a etc usr $pkgdir } package_clickhouse-common-static-bin() { # options and directives overrides pkgdesc="ClickHouse compiled binary files." backup=('etc/security/limits.d/clickhouse.conf') cd "clickhouse-common-static-$pkgver" cp -a etc usr $pkgdir } package_clickhouse-server-bin() { # options and directives overrides pkgdesc="ClickHouse server and default configuration." depends=('clickhouse-common-static-bin') backup=( 'etc/clickhouse-server/config.xml' 'etc/clickhouse-server/users.xml' ) cd "clickhouse-server-$pkgver" cp -a usr "$pkgdir/" cp -a lib "$pkgdir/usr" mkdir -p "$pkgdir/etc/clickhouse-server" cp -a etc/clickhouse-server "$pkgdir/etc" install -D "$srcdir/clickhouse.sysusers" "${pkgdir}/usr/lib/sysusers.d/clickhouse.conf" install -D "$srcdir/clickhouse-server.service" "${pkgdir}/usr/lib/systemd/system/clickhouse-server.service" }