mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-18 13:16:58 +02:00
49 lines
1.4 KiB
Text
49 lines
1.4 KiB
Text
maintainer="Leonardo Arena <rnalrd@alpinelinux.org>"
|
|
pkgname=pgcat
|
|
pkgver=1.2.0
|
|
pkgrel=1
|
|
_helm_chart_ver=0.2.5
|
|
pkgdesc="PostgreSQL pooler with sharding, load balancing and failover support"
|
|
url="https://github.com/postgresml/pgcat"
|
|
arch="aarch64 armhf armv7 x86 x86_64"
|
|
license="MIT"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
"
|
|
subpackages="$pkgname-openrc"
|
|
# cargo fetch
|
|
options="net"
|
|
case "$CARCH" in
|
|
armhf|armv7|x86)
|
|
options="$options !check" # 6 tests out of 27 failing. See commit log for details.
|
|
;;
|
|
esac
|
|
source="https://github.com/postgresml/pgcat/archive/refs/tags/pgcat-$_helm_chart_ver.tar.gz
|
|
$pkgname.initd"
|
|
builddir="$srcdir/$pkgname-$pkgname-$_helm_chart_ver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm0755 "$builddir/target/release/$pkgname" "$pkgdir/usr/sbin/$pkgname"
|
|
install -Dm0644 "$builddir/$pkgname.toml" "$pkgdir/etc/$pkgname/$pkgname.toml"
|
|
install -Dm0755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
sha512sums="
|
|
da4f8feda492273d074ae977d1f93ebb4f5028b4547086d24cf9f485a2096a15a25a151fa02959b7969dbf5b7218a030ebe13b20ba5691f342e469b457fb7e47 pgcat-0.2.5.tar.gz
|
|
2c137dd81c7d367a334426122ad8c8f5298c418fe0fcb21d24793d5aa91f76f9ce70864058cc665aeb56136ba2ed7ba0835bc244ae98e7b27fd96e3b47d6231a pgcat.initd
|
|
"
|