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

Felix Yan felixonmars at archlinux.org
Thu Jan 18 18:35:07 UTC 2018


    Date: Thursday, January 18, 2018 @ 18:35:05
  Author: felixonmars
Revision: 283940

upgpkg: haskell-psqueues 0.2.5.0-1

rebuild with psqueues,0.2.5.0

Modified:
  haskell-psqueues/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-18 18:31:32 UTC (rev 283939)
+++ PKGBUILD	2018-01-18 18:35:05 UTC (rev 283940)
@@ -4,22 +4,23 @@
 
 _hkgname=psqueues
 pkgname=haskell-psqueues
-pkgver=0.2.4.0
-pkgrel=3
+pkgver=0.2.5.0
+pkgrel=1
 pkgdesc="Pure priority search queues"
 url="https://hackage.haskell.org/package/${_hkgname}"
 license=("custom:BSD3")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-hashable")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-hashable')
+makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-tagged' 'haskell-test-framework'
+             'haskell-test-framework-hunit' 'haskell-test-framework-quickcheck2')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('d9a65547d6ebfc0e861cf0f88d19ce2c1ace97cc9a82ac430e8fb814a35a1b75e66b9f56945a2c797078835dde73d4145c97b275e0012a10b9e9836c288efcff')
+sha512sums=('e2d23dde1fa2fd89881bfe194f042ea57f572fe2a67a3ae4d512c438ce4ad28bace03831cb0d194e95b39251a7364b0b1b3e5c0d4c568d55eb7b08908249b3cf')
 
 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
@@ -28,8 +29,13 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
 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