blob: 6a3b7d68537eea3776d64a39571b812681881ea4 (
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
|
# 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"
|