1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/community/postgresql-pg_cron/APKBUILD
2021-05-31 02:06:15 +02:00

37 lines
1 KiB
Text

# Contributor: G.J.R. Timmer <gjr.timmer@gmail.com>
# Maintainer: G.J.R. Timmer <gjr.timmer@gmail.com>
pkgname=postgresql-pg_cron
_projname=pg_cron
pkgver=1.3.1
pkgrel=0
pkgdesc="Cron-based scheduler for PostgreSQL 9.5+"
url="https://github.com/citusdata/pg_cron"
arch="all"
license="PostgreSQL"
depends="postgresql"
makedepends="postgresql-dev"
provides="pg_cron=$pkgver-r$pkgrel"
install="$pkgname.post-install"
source="https://github.com/citusdata/pg_cron/archive/v$pkgver/$_projname-$pkgver.tar.gz"
builddir="$srcdir/$_projname-$pkgver"
options="!check" # no tests provided
prepare() {
default_prepare
# Remove -Werror from Makefile
# Required to compile on alpine, to ignore compilation warnings
sed "s/-Werror //" -i Makefile
}
build() {
make
}
package() {
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
sha512sums="
e9758e1c3dfa12be05a9a24060d46a90299a821e0067690f07ea3356faade5fb3c157259aa553bbdb0fdb5582baedc8e51fb119ea0e78a5c88fb8bd3e6d047a6 pg_cron-1.3.1.tar.gz
"