2020-03-31 20:47:50 +00:00
|
|
|
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
|
|
|
|
# Contributor: Konrad Tegtmeier <konrad.tegtmeier+aur@gmail.com>
|
2018-04-15 03:25:01 +00:00
|
|
|
# Contributor: Marcel O'Neil <marcel@marceloneil.com>
|
2017-02-16 14:00:25 +00:00
|
|
|
|
|
|
|
pkgname=cockroachdb-bin
|
2020-09-01 14:08:17 +00:00
|
|
|
pkgver=20.1.5
|
2019-11-25 22:30:37 +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')
|
2018-12-27 14:09:12 +00:00
|
|
|
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')
|
2020-09-01 14:08:17 +00:00
|
|
|
sha256sums=('e4c20ae1ab92420bea9a2c6c51daa660b2fa3661dca9ba919d34651e7627b504'
|
2020-06-12 16:33:40 +00:00
|
|
|
'8a2fba9d26592ff3538f44c96d1b894ef44649058b4d04f3fda49518a9c4ae11'
|
2020-05-10 20:42:17 +00:00
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP')
|
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"
|
2018-04-15 03:25:01 +00:00
|
|
|
|
|
|
|
# binary
|
2018-05-27 16:41:47 +00:00
|
|
|
install -Dm755 "${srcdir}/cockroach-v${pkgver}.linux-amd64/cockroach" "${pkgdir}/usr/bin/cockroach"
|
2018-04-15 03:25:01 +00:00
|
|
|
|
2018-05-27 16:41:47 +00:00
|
|
|
# user/group & owned directories
|
2018-04-15 03:25:01 +00:00
|
|
|
install -Dm644 "${srcdir}/cockroach.sysusers" "${pkgdir}/usr/lib/sysusers.d/cockroach.conf"
|
2018-05-27 16:41:47 +00:00
|
|
|
install -Dm644 "${srcdir}/cockroach.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/cockroach.conf"
|
2018-04-15 03:25:01 +00:00
|
|
|
|
|
|
|
# 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
|
2018-04-15 03:25:01 +00:00
|
|
|
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"
|
2018-04-15 03:25:01 +00:00
|
|
|
|
|
|
|
# licenses
|
2020-05-10 20:42:17 +00:00
|
|
|
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
2020-03-31 20:47:50 +00:00
|
|
|
}
|