diff options
Diffstat (limited to 'testing/pg_cron/APKBUILD')
-rw-r--r-- | testing/pg_cron/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/pg_cron/APKBUILD b/testing/pg_cron/APKBUILD new file mode 100644 index 0000000000..6875968e64 --- /dev/null +++ b/testing/pg_cron/APKBUILD @@ -0,0 +1,40 @@ +# 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_rc1 +_pkgver=${pkgver/_rc/-rc.} +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="7aad687b7105df0de8f69b697e3ce317 pg_cron-1.0.0_rc1.tar.gz" +sha256sums="0cd22063594c55f2b2042185b174a78b99bc70e3db6454c83eb92a9bdf6c8809 pg_cron-1.0.0_rc1.tar.gz" +sha512sums="26ee5ada043458593baa966eae7be1cd9b51dd751d5f468261510327c6a42406b55ec45f01558f0dc3f374955f78fe1216b0d5c7d6bc66f45f092401612a9b72 pg_cron-1.0.0_rc1.tar.gz" |