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

Felix Yan felixonmars at archlinux.org
Mon Nov 27 16:05:53 UTC 2017


    Date: Monday, November 27, 2017 @ 16:05:53
  Author: felixonmars
Revision: 270350

upgpkg: haskell-either 5-1

Modified:
  haskell-either/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-27 16:03:36 UTC (rev 270349)
+++ PKGBUILD	2017-11-27 16:05:53 UTC (rev 270350)
@@ -4,25 +4,23 @@
 
 _hkgname=either
 pkgname=haskell-either
-pkgver=4.5
-pkgrel=2
+pkgver=5
+pkgrel=1
 pkgdesc="An either monad transformer"
 url="https://github.com/ekmett/either/"
 license=("custom:BSD3")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-bifunctors" "haskell-exceptions" "haskell-free"
-         "haskell-mmorph" "haskell-monad-control" "haskell-monadrandom"
-         "haskell-mtl" "haskell-profunctors" "haskell-semigroupoids"
-         "haskell-semigroups" "haskell-transformers-base")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-bifunctors' 'haskell-mtl' 'haskell-profunctors' 'haskell-semigroups'
+         'haskell-semigroupoids')
+makedepends=('ghc' 'haskell-hedgehog')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('0a55a31f8a4c11c48715494615db5c43f683d4bd56d4904f3872d706aabf792744cb58cef3de9804ce05ead223323947306aaeac7ab26a2f61ee9d337bf6f498')
+sha512sums=('30db0dcbb6631a7facdd6a01a5363a2d0845d9101791d70e42bc8dad77d0a5ec24baceb3be2d7ba68a03a3b9bf68e5d3cc8f132a43d7c5e66cc0b316c657c613')
 
 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
@@ -31,6 +29,11 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
 package() {
     cd "${srcdir}/${_hkgname}-${pkgver}"
 



More information about the arch-commits mailing list