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

Felix Yan felixonmars at archlinux.org
Mon Nov 27 17:21:42 UTC 2017


    Date: Monday, November 27, 2017 @ 17:21:41
  Author: felixonmars
Revision: 270388

upgpkg: haskell-hasql 1.1.1-1

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

Modified:
  haskell-hasql/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-27 17:21:06 UTC (rev 270387)
+++ PKGBUILD	2017-11-27 17:21:41 UTC (rev 270388)
@@ -4,8 +4,8 @@
 
 _hkgname=hasql
 pkgname=haskell-hasql
-pkgver=0.19.18.2
-pkgrel=5
+pkgver=1.1.1
+pkgrel=1
 pkgdesc="An efficient PostgreSQL driver and a flexible mapping API"
 url="https://github.com/nikita-volkov/hasql"
 license=('MIT')
@@ -12,18 +12,20 @@
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-attoparsec' 'haskell-base-prelude' 'haskell-bytestring-strict-builder'
          'haskell-contravariant' 'haskell-contravariant-extras' 'haskell-data-default-class'
-         'haskell-dlist' 'haskell-either' 'haskell-hashable' 'haskell-hashtables' 'haskell-loch-th'
+         'haskell-dlist' 'haskell-hashable' 'haskell-hashtables' 'haskell-loch-th'
          'haskell-mtl' 'haskell-placeholders' 'haskell-postgresql-binary' 'haskell-postgresql-libpq'
          'haskell-profunctors' 'haskell-semigroups' 'haskell-text' 'haskell-vector')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-bug' 'haskell-tasty' 'haskell-tasty-quickcheck' 'haskell-tasty-hunit'
+             'haskell-quickcheck-instances' 'haskell-quickcheck' 'haskell-rerebase' 'postgresql'
+             'python-pifpaf')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('75657843bfb8902fda0043ec65959445cf24a0b1b8e19a1d163747ddba9b3564b363040af358565618ca7031e248d898be2ac8e41ea053c1c8b41b0c88eec58d')
+sha512sums=('f72097118dbecd87c31394be882aa81a591d5e6d429bbee974cc4d6acaf1a86b9cb1c623666f3ffcc4f258992a3522d1780fbcc5a2edaded18c106bbe1fd28be')
 
 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
@@ -32,6 +34,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