cockroachdb-bin/PKGBUILD

68 lines
3.1 KiB
Text
Raw Normal View History

# Maintainer: Knut Ahlers
# Contributor: Riccardo Berto <riccardo at rcrdbrt dot-symbol com>
2021-12-12 09:26:38 +00:00
# Contributor: Moses Narrow <moe-narrow@use.startmail.com>
2021-03-29 21:15:30 +00:00
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
2020-03-31 20:47:50 +00:00
# Contributor: Konrad Tegtmeier <konrad.tegtmeier+aur@gmail.com>
# Contributor: Marcel O'Neil <marcel@marceloneil.com>
2017-02-16 14:00:25 +00:00
pkgname=cockroachdb-bin
2024-11-19 13:48:14 +00:00
pkgver=24.2.5
2021-12-23 13:11:36 +00:00
pkgrel=1
2020-05-10 20:42:17 +00:00
pkgdesc='An open source, survivable, strongly consistent, scale-out SQL database'
2017-02-16 14:00:25 +00:00
arch=('x86_64')
2020-05-10 20:42:17 +00:00
url='https://www.cockroachlabs.com'
license=('Apache' 'custom:BSL' 'custom:CCL')
2020-06-12 16:33:40 +00:00
conflicts=('cockroachdb')
provides=('cockroachdb')
depends=('glibc')
2020-05-10 20:42:17 +00:00
source=("${pkgname}-${pkgver}.tgz::https://binaries.cockroachdb.com/cockroach-v${pkgver}.linux-amd64.tgz"
"LICENSE::https://raw.githubusercontent.com/cockroachdb/cockroach/v${pkgver}/LICENSE"
2020-03-31 20:47:50 +00:00
'cockroach.service'
'cockroach.default'
'cockroach.sysusers'
'cockroach.tmpfiles')
2021-12-23 13:11:36 +00:00
2024-11-19 13:48:14 +00:00
sha256sums=('720a334954be6f98917f88802a3b485f40c2b454da0dd91d383cfdab6908afb7'
'cb4f34a516b09ec1815bd8376a34de7ea5e6da06c70bed756110943ad1b340e4'
2021-03-29 21:15:30 +00:00
'6c336d30983d6295995823a134e3cc85a06ef9418339b53cf6f375df816bea51'
'55f380f5cb201c6afeafbf1a6fb5a6400dbffa0edc134d30960d1d04e3d19ef2'
'8be2f52529135d8d173bba130e000a187bbadc869ac2c603a4714af435840821'
'c74cf876197312b91970bdd7832081750d2ab4d47e553bb46f38d57cba52641e')
2017-02-16 14:00:25 +00:00
package() {
2020-03-31 20:47:50 +00:00
# generate shell completion
"${srcdir}/cockroach-v${pkgver}.linux-amd64/cockroach" \
gen autocomplete bash --out "${srcdir}/cockroach.bash"
"${srcdir}/cockroach-v${pkgver}.linux-amd64/cockroach" \
gen autocomplete zsh --out "${srcdir}/cockroach.zsh"
# generate man pages
"${srcdir}/cockroach-v${pkgver}.linux-amd64/cockroach" \
gen man --path "${srcdir}/man"
# binary
install -Dm755 "${srcdir}/cockroach-v${pkgver}.linux-amd64/cockroach" "${pkgdir}/usr/bin/cockroach"
# user/group & owned directories
install -Dm644 "${srcdir}/cockroach.sysusers" "${pkgdir}/usr/lib/sysusers.d/cockroach.conf"
install -Dm644 "${srcdir}/cockroach.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/cockroach.conf"
# services & runtime
install -Dm644 "${srcdir}/cockroach.service" "${pkgdir}/usr/lib/systemd/system/cockroach.service"
install -Dm644 "${srcdir}/cockroach.default" "${pkgdir}/etc/default/cockroach"
# man pages
install -d "${pkgdir}/usr/share/man/man1/"
install -m644 "${srcdir}"/man/*.1 "${pkgdir}/usr/share/man/man1/"
2019-05-01 15:21:27 +00:00
# shell completion
install -Dm644 cockroach.bash "${pkgdir}/usr/share/bash-completion/completions/cockroach"
2019-05-01 15:21:27 +00:00
install -Dm644 cockroach.zsh "${pkgdir}/usr/share/zsh/site-functions/_cockroach"
# licenses
2020-05-10 20:42:17 +00:00
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# GEOS libraries (see: https://www.cockroachlabs.com/docs/stable/install-cockroachdb-linux.html)
install -Dm644 "${srcdir}/cockroach-v${pkgver}.linux-amd64/lib/libgeos.so" "${pkgdir}/usr/local/lib/cockroach/libgeos.so"
install -Dm644 "${srcdir}/cockroach-v${pkgver}.linux-amd64/lib/libgeos_c.so" "${pkgdir}/usr/local/lib/cockroach/libgeos_c.so"
2021-03-29 21:15:30 +00:00
}