[arch-commits] Commit in postgrest/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Nov 29 05:09:27 UTC 2017
Date: Wednesday, November 29, 2017 @ 05:09:26
Author: felixonmars
Revision: 270525
upgpkg: postgrest 0.4.3.0-6
rebuild with either,5 hasql,1.1.1 hasql-pool,0.4.3 hasql-transaction,0.5.2
Modified:
postgrest/trunk/PKGBUILD
----------+
PKGBUILD | 31 ++++++++++++++++++++++++++-----
1 file changed, 26 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-11-29 05:09:12 UTC (rev 270524)
+++ PKGBUILD 2017-11-29 05:09:26 UTC (rev 270525)
@@ -4,7 +4,7 @@
pkgname=postgrest
pkgver=0.4.3.0
-pkgrel=5
+pkgrel=6
pkgdesc="REST API for any Postgres database"
url="https://github.com/begriffs/postgrest"
license=("MIT")
@@ -20,15 +20,21 @@
'haskell-scientific' 'haskell-swagger2' 'haskell-unordered-containers' 'haskell-vector'
'haskell-wai' 'haskell-wai-cors' 'haskell-wai-extra' 'haskell-wai-middleware-static'
'haskell-cookie')
-makedepends=('ghc')
-source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('1c2ba12c087d08d3fe9b142fb73c199adcac0e744f43bc7f2d3b206113ba2ee4a38c33457944ba07151217bdbe4d4c75f3784b0d49e9c9721f6aebb151e52841')
+makedepends=('ghc' 'haskell-aeson-qq' 'haskell-async' 'haskell-hspec' 'haskell-hspec-wai'
+ 'haskell-hspec-wai-json' 'haskell-hjsonschema' 'haskell-hjsonpointer')
+checkdepends=('pifpaf' 'postgresql' 'procps-ng')
+source=("$pkgname-$pkgver.tar.bz2::https://github.com/begriffs/postgrest/archive/v$pkgver.tar.gz")
+sha512sums=('e07d7e3aa0a830c5e8be8c2ed31236e0b12b97b4a5eaa1a3034bffc395cf77221507001111b66e278faba24995435c85cb0eb846c40479ce8224ffe82c25d658')
+prepare() {
+ sed -i 's/==/>=/' $pkgname-$pkgver/$pkgname.cabal
+}
+
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
- --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
-f-CI
runhaskell Setup build
@@ -38,6 +44,21 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $pkgname-$pkgver
+
+ 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
+
+ # Disabled: uses stack
+ # test/io-tests.sh
+
+ pifpaf_stop
+}
+
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
More information about the arch-commits
mailing list