clickhouse-lts-223/PKGBUILD

54 lines
1.7 KiB
Bash
Raw Normal View History

2020-08-20 17:21:08 +09:00
# Maintainer: Mikhail f. Shiryaev <mr dot felixoid at gmail dot com>
pkgname=clickhouse-lts
2021-05-14 02:55:59 +09:00
pkgver=21.3.9.83
2020-08-20 17:21:08 +09:00
pkgrel=1
pkgdesc='An open-source column-oriented database management system that allows generating analytical data reports in real time. LTS version'
arch=('x86_64')
url='https://clickhouse.tech/'
license=('Apache')
depends=('tzdata' 'libcap')
provides=(clickhouse)
conflicts=(clickhouse)
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
2021-04-26 23:35:53 +09:00
https://repo.clickhouse.tech/deb/lts/main/clickhouse-common-static_${pkgver}_amd64.deb
2020-08-20 17:21:08 +09:00
https://repo.clickhouse.tech/deb/lts/main/clickhouse-server_${pkgver}_all.deb
)
sha256sums=(
2021-05-14 02:55:59 +09:00
9a44566e8238028c5bad71190796667a09de6aac38d58eced095c6762afd7cc3
5b1afd18fcddd681255797e46dd17520d137d77d21d0543ef9bc588487a3fc0e
63137b9c6e094f7548dc3221b739d06df11d9c7ae3da59773c61cfb7063cdecb
2020-08-20 17:21:08 +09:00
)
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: