[arch-commits] Commit in postgrest/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Aug 3 16:27:57 UTC 2019
Date: Saturday, August 3, 2019 @ 16:27:57
Author: felixonmars
Revision: 497177
upgpkg: postgrest 6.0.0-1
rebuild with hasql 1.4, hasql-transaction 0.7.2, postgrest 6.0.0
Modified:
postgrest/trunk/PKGBUILD
----------+
PKGBUILD | 39 +++++++++++++++++----------------------
1 file changed, 17 insertions(+), 22 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-08-03 16:23:05 UTC (rev 497176)
+++ PKGBUILD 2019-08-03 16:27:57 UTC (rev 497177)
@@ -2,34 +2,29 @@
# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
pkgname=postgrest
-pkgver=5.2.0
-pkgrel=128
+pkgver=6.0.0
+pkgrel=1
pkgdesc="REST API for any Postgres database"
url="https://github.com/begriffs/postgrest"
license=("MIT")
arch=('x86_64')
-depends=('ghc-libs' 'haskell-auto-update' 'haskell-hasql' 'haskell-hasql-pool' 'haskell-protolude'
- 'haskell-warp' 'haskell-base64-bytestring' 'haskell-retry' 'haskell-aeson'
- 'haskell-ansi-wl-pprint' 'haskell-case-insensitive' 'haskell-cassava'
- 'haskell-configurator-ng' 'haskell-contravariant' 'haskell-contravariant-extras'
- 'haskell-either' 'haskell-gitrev' 'haskell-hasql-transaction' 'haskell-heredoc'
- 'haskell-http' 'haskell-http-types' 'haskell-insert-ordered-containers'
- 'haskell-interpolatedstring-perl6' 'haskell-jose' 'haskell-lens' 'haskell-lens-aeson'
- 'haskell-network-uri' 'haskell-optparse-applicative' 'haskell-ranged-sets'
- 'haskell-regex-tdfa' 'haskell-scientific' 'haskell-swagger2' 'haskell-unordered-containers'
- 'haskell-vector' 'haskell-wai' 'haskell-wai-cors' 'haskell-wai-extra'
- 'haskell-wai-middleware-static' 'haskell-cookie')
+depends=('ghc-libs' 'haskell-http' 'haskell-ranged-sets' 'haskell-aeson' 'haskell-ansi-wl-pprint'
+ 'haskell-base64-bytestring' 'haskell-case-insensitive' 'haskell-cassava'
+ 'haskell-configurator-pg' 'haskell-contravariant' 'haskell-contravariant-extras'
+ 'haskell-cookie' 'haskell-either' 'haskell-gitrev' 'haskell-hasql' 'haskell-hasql-pool'
+ 'haskell-hasql-transaction' 'haskell-heredoc' 'haskell-http-types'
+ 'haskell-insert-ordered-containers' 'haskell-interpolatedstring-perl6' 'haskell-jose'
+ 'haskell-lens' 'haskell-lens-aeson' 'haskell-network-uri' 'haskell-optparse-applicative'
+ 'haskell-parsec' 'haskell-protolude' 'haskell-regex-tdfa' 'haskell-scientific'
+ 'haskell-swagger2' 'haskell-unordered-containers' 'haskell-vector' 'haskell-wai'
+ 'haskell-wai-cors' 'haskell-wai-extra' 'haskell-wai-middleware-static'
+ 'haskell-auto-update' 'haskell-retry' 'haskell-warp')
makedepends=('ghc' 'haskell-aeson-qq' 'haskell-async' 'haskell-hspec' 'haskell-hspec-wai'
- 'haskell-hspec-wai-json' 'haskell-hjsonschema')
+ 'haskell-hspec-wai-json' 'haskell-monad-control' 'haskell-transformers-base')
checkdepends=('pifpaf' 'postgresql' 'procps-ng')
source=("$pkgname-$pkgver.tar.bz2::https://github.com/begriffs/postgrest/archive/v$pkgver.tar.gz")
-sha512sums=('7c2bba89457dd8b3d681ccc032482055144b5ee17336b2e90dda6bbed6c229f36cf521cf66aafd7923ca6c147a1f2bb26567a3109079dae65d726e85f85b32ed')
+sha512sums=('e1aa4f8b2baac57898f6c4d0984af0096813f41e233bc2d13d9416653d490ca513a480bbffc642da85437809cab339678e595239a7d9e52e86dae11077e20d0a')
-prepare() {
- cd $pkgname-$pkgver
- sed -i -e 's/==/>=/' -e 's/< *4.10/<5/' -e 's/== 0.3.0/>= 0.3.0/' $pkgname.cabal
-}
-
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
@@ -50,8 +45,8 @@
eval $(pifpaf run postgresql --host 127.0.0.1 --port 5432)
createdb postgrest_test
- # TODO: it shouldn't take this long to finish
- # POSTGREST_TEST_CONNECTION=$(test/create_test_db "postgres://$USER@localhost" postgrest_test) runhaskell Setup test
+ # TODO: user authentication issue?
+ POSTGREST_TEST_CONNECTION=$(test/create_test_db "postgres://$USER@localhost" postgrest_test) runhaskell Setup test || warning "Tests failed"
# Disabled: uses stack
# test/io-tests.sh
More information about the arch-commits
mailing list