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

Felix Yan felixonmars at archlinux.org
Thu May 24 10:44:31 UTC 2018


    Date: Thursday, May 24, 2018 @ 10:44:30
  Author: felixonmars
Revision: 328530

upgpkg: haskell-postgresql-binary 0.12.1.1-1

rebuild with postgresql-binary,0.12.1.1

Modified:
  haskell-postgresql-binary/trunk/PKGBUILD

----------+
 PKGBUILD |   34 +++++++++++++++++++++++-----------
 1 file changed, 23 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-24 10:44:10 UTC (rev 328529)
+++ PKGBUILD	2018-05-24 10:44:30 UTC (rev 328530)
@@ -4,25 +4,28 @@
 
 _hkgname=postgresql-binary
 pkgname=haskell-postgresql-binary
-pkgver=0.12.1
-pkgrel=75
+pkgver=0.12.1.1
+pkgrel=1
 pkgdesc="Encoders and decoders for the PostgreSQL's binary format"
 url="https://github.com/nikita-volkov/postgresql-binary"
 license=("MIT")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-aeson" "haskell-base-prelude" "haskell-binary-parser"
-         "haskell-bytestring-strict-builder" "haskell-loch-th" "haskell-network-ip"
-         "haskell-placeholders" "haskell-scientific" "haskell-unordered-containers"
-         "haskell-uuid" "haskell-vector")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-base-prelude' 'haskell-binary-parser'
+         'haskell-bytestring-strict-builder' 'haskell-loch-th' 'haskell-network-ip'
+         'haskell-placeholders' 'haskell-scientific' 'haskell-unordered-containers'
+         'haskell-uuid' 'haskell-vector')
+makedepends=('ghc' 'haskell-postgresql-libpq' 'haskell-tasty' 'haskell-tasty-quickcheck'
+             'haskell-tasty-hunit' 'haskell-quickcheck' 'haskell-quickcheck-instances'
+             'haskell-json-ast' 'haskell-conversion' 'haskell-conversion-bytestring'
+             'haskell-conversion-text' 'haskell-rerebase' 'pifpaf' 'postgresql')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('b4af6c71593f130da0ff6c462682fb570a4bd8108809eeb7a8cca45e2e340fd815dd3a94d72293a60f2072ed16f68bcb25a33009e742eca1383b934c4700f306')
+sha512sums=('386079b1816861da9e6e57e6ff6e30d3e01865102418173fc0e69145d924114b69d1ca99134158168c354d4fdac74bbb54d591849f87ed24548ef31fe22e04d1')
 
 build() {
-    cd "${srcdir}/${_hkgname}-${pkgver}"
+    cd $_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
@@ -31,8 +34,17 @@
     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}"
+    cd $_hkgname-$pkgver
 
     install -D -m744 register.sh   "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
     install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"



More information about the arch-commits mailing list