mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-02 02:52:46 +02:00
40 lines
1.2 KiB
Plaintext
40 lines
1.2 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.0
|
|
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"
|
|
|
|
prepare() {
|
|
default_prepare || return 1
|
|
cd "$builddir"
|
|
|
|
# Remove -Werror from Makefile
|
|
# Required to compile on alpine, to ignore compilation warnings
|
|
sed "s/-Werror //" -i Makefile || return 1
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
|
|
make DESTDIR="$pkgdir" install || return 1
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1
|
|
}
|
|
|
|
md5sums="baa6519e78cc8d5d38d7090a2511d860 pg_cron-1.0.0.tar.gz"
|
|
sha256sums="ed8e4554bd8bf7e5f41823dde8f04599d89bcddffdc0cec8119a40c12014df66 pg_cron-1.0.0.tar.gz"
|
|
sha512sums="09546f3c81163449df4c256b3329e858941314041b413e1f37a74d30295e9eab6693c8b60ec9792fd616c9b2d4b9c6529a3586b66486145c9b8d91e4dc20c3cf pg_cron-1.0.0.tar.gz"
|