clickhouse-lts-223/PKGBUILD

54 lines
1.7 KiB
Bash

# Maintainer: Mikhail f. Shiryaev <mr dot felixoid at gmail dot com>
pkgname=clickhouse-lts-218
pkgver=21.8.13.6
pkgrel=1
pkgdesc='An open-source column-oriented database management system that allows generating analytical data reports in real time. LTS version 21.8'
arch=('x86_64')
url='https://clickhouse.com/'
license=('Apache')
depends=('tzdata' 'libcap')
provides=(clickhouse clickhouse-lts)
conflicts=(clickhouse clickhouse-lts)
noextract=(
clickhouse-common-static_${pkgver}_amd64.deb
clickhouse-client_${pkgver}_all.deb
clickhouse-server_${pkgver}_all.deb
)
source=(
https://repo.clickhouse.tech/deb/lts/main/clickhouse-client_${pkgver}_all.deb
https://repo.clickhouse.tech/deb/lts/main/clickhouse-common-static_${pkgver}_amd64.deb
https://repo.clickhouse.tech/deb/lts/main/clickhouse-server_${pkgver}_all.deb
)
sha256sums=(
1791da0283a1dd6821a113be6cf5cdb3d1c328441a9a81a3afb4effe87b79b91
9e2065cd9a1c08d216213e77872bcbd7a0c57111589140a9ed0dbe056745b75e
5686577fb282e9817b98f7212b0f28a0fb23a0d6f4e8448600ae6d4934e0cb18
)
install=$pkgname.install
backup=(
'etc/clickhouse-client/config.xml'
'etc/clickhouse-server/config.xml'
'etc/clickhouse-server/users.xml'
)
package() {
for deb in "${noextract[@]}"; do
bsdtar -xf $deb
tar xf data.tar.gz -C "${pkgdir}"
done
gzip -d "${pkgdir}/usr/share/doc/clickhouse-server/LICENSE.gz"
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
mv "${pkgdir}/lib" "${pkgdir}/usr/lib"
mv "${pkgdir}/usr/share/doc/clickhouse-server/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/"
rm -rf "${pkgdir}/etc/cron.d" \
"${pkgdir}/etc/init.d" \
"${pkgdir}/etc/security" \
"${pkgdir}/etc/systemd" \
"${pkgdir}/usr/share/doc"
}
# vim:set ts=2 sw=2 et: