[arch-commits] Commit in haskell-hasql-transaction/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Nov 27 17:26:16 UTC 2017


    Date: Monday, November 27, 2017 @ 17:26:16
  Author: felixonmars
Revision: 270394

upgpkg: haskell-hasql-transaction 0.5.2-1

rebuild with either,5 hasql,1.1.1 hasql-pool,0.4.3 hasql-transaction,0.5.2

Modified:
  haskell-hasql-transaction/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-27 17:25:16 UTC (rev 270393)
+++ PKGBUILD	2017-11-27 17:26:16 UTC (rev 270394)
@@ -3,8 +3,8 @@
 
 _hkgname=hasql-transaction
 pkgname=haskell-hasql-transaction
-pkgver=0.5
-pkgrel=60
+pkgver=0.5.2
+pkgrel=1
 pkgdesc="A composable abstraction over the retryable transactions for Hasql"
 url="https://github.com/nikita-volkov/hasql-transaction"
 license=('MIT')
@@ -11,15 +11,16 @@
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-base-prelude' 'haskell-bytestring-tree-builder'
          'haskell-contravariant' 'haskell-contravariant-extras' 'haskell-hasql' 'haskell-mtl')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-async' 'haskell-rebase')
+checkdepends=('postgresql' 'pifpaf')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-md5sums=('ed40b30813c53012e492e286744c9609')
+sha512sums=('be3478b6c62894b517d91b7cbd515ca4fdc750a0dde087bba73ca7e3426e733ca444937136765e526130ce74d112154d444a379f5e5771ec596c404ca19737e2')
 
 build() {
     cd "${srcdir}/${_hkgname}-${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
     runhaskell Setup build
     runhaskell Setup register --gen-script
@@ -28,6 +29,15 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd $_hkgname-$pkgver
+
+    eval $(pifpaf run postgresql --host 127.0.0.1 --port 5432)
+    createuser -s postgres
+    runhaskell Setup test
+    pifpaf_stop
+}
+
 package() {
     cd "${srcdir}/${_hkgname}-${pkgver}"
 



More information about the arch-commits mailing list