blob: bd9f121c8c4603ab5593902e4787174cf36cf0ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# 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"
|