mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-19 15:41:51 +01:00
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
# Contributor: G.J.R. Timmer <gjr.timmer@gmail.com>
|
|
# Maintainer: G.J.R. Timmer <gjr.timmer@gmail.com>
|
|
pkgname=pg_cron
|
|
pkgver=1.0.2
|
|
pkgrel=0
|
|
pkgdesc="Cron-based scheduler for PostgreSQL 9.5+"
|
|
url="https://github.com/citusdata/pg_cron"
|
|
arch="all"
|
|
license="custom"
|
|
depends="postgresql"
|
|
makedepends="postgresql-dev"
|
|
install="$pkgname.post-install"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/citusdata/$pkgname/archive/v${pkgver}.tar.gz"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
options="!check" # no tests provided
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cd "$builddir"
|
|
|
|
# Remove -Werror from Makefile
|
|
# Required to compile on alpine, to ignore compilation warnings
|
|
sed "s/-Werror //" -i Makefile
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
sha512sums="78e0f75c50e593b2430e3b96099cb92600f0bd0716c1bd89abc03d598daae8670db539dbdb0211bdb12ebd6cd044435bbb1862cb3162c06de448560c5bdfd474 pg_cron-1.0.2.tar.gz"
|