# Maintainer: Ning Sun pkgname=greptimedb-bin pkgver=0.4.0.20230626 _pkgvergh=v0.4.0-nightly-20230626 pkgrel=1 pkgdesc='Open-source time-series database.' arch=('x86_64') url='https://github.com/GreptimeTeam/greptimedb' license=('Apache-2.0') provides=('greptimedb') conflicts=() source=("greptime-linux-amd64-${pkgver}.tgz::https://github.com/GreptimeTeam/greptimedb/releases/download/${_pkgvergh}/greptime-linux-amd64.tgz" "greptimedb.sysusers" "greptimedb.service" "greptimedb-tmpfile.conf" "greptimedb.toml") sha256sums=("3e442efbca2ba6cd5ce789311bf8f54c485e48d85a5439ab75e16ad2e462bfee" "SKIP" "SKIP" "SKIP" "SKIP") package() { mkdir -p "${pkgdir}/etc/greptimedb/" install -Dm755 "${srcdir}/greptime" "${pkgdir}/usr/bin/greptime" install -Dm644 "${srcdir}/greptimedb.service" "${pkgdir}/usr/lib/systemd/system/greptimedb.service" install -Dm644 "${srcdir}/greptimedb.sysusers" "${pkgdir}/usr/lib/sysusers.d/greptimedb.conf" install -Dm644 "${srcdir}/greptimedb-tmpfile.conf" "${pkgdir}/usr/lib/tmpfiles.d/greptimedb.conf" install -Dm644 "${srcdir}/greptimedb.toml" "${pkgdir}/etc/greptimedb/greptimedb.toml" }