# Maintainer: Mikhail f. Shiryaev pkgname=clickhouse-lts-218 pkgver=21.8.11.4 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=( 2ef6caee04929924c3678610c368685fa203b2f66f72d6dd2c0b4de55fc689cc 2dff645ae7b8266a8c1fd80af9b7d17f62435b08db6fb7422e845edb4e78b032 00c0db12c24e90c342f294848aa2e182118b97f614361344c77b2f5903e8d083 ) 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: