aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pg_cron/APKBUILD
blob: 9633a4963dbb9c53393f6296706cdb632b500381 (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
# Contributor: G.J.R. Timmer <gjr.timmer@gmail.com>
# Maintainer: G.J.R. Timmer <gjr.timmer@gmail.com>
pkgname=pg_cron
pkgver=1.1.4
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"
install="$pkgname.post-install"
source="$pkgname-$pkgver.tar.gz::https://github.com/citusdata/$pkgname/archive/v${pkgver}.tar.gz"
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="1b63f5f3aa690fce1c35143078dbcdd8708a09bf97c8c2065cea01f6388918f6e7c9821d08fbfd91dff30f65c5edb8487fa0a4038fe42326b5c73de438252846  pg_cron-1.1.4.tar.gz"