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

Felix Yan felixonmars at archlinux.org
Fri Jan 19 06:51:39 UTC 2018


    Date: Friday, January 19, 2018 @ 06:51:36
  Author: felixonmars
Revision: 284078

upgpkg: haskell-semigroupoids 5.2.2-1

rebuild with semigroupoids,5.2.2

Modified:
  haskell-semigroupoids/trunk/PKGBUILD

----------+
 PKGBUILD |   29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-19 04:36:04 UTC (rev 284077)
+++ PKGBUILD	2018-01-19 06:51:36 UTC (rev 284078)
@@ -4,24 +4,28 @@
 
 _hkgname=semigroupoids
 pkgname=haskell-semigroupoids
-pkgver=5.2.1
-pkgrel=8
+pkgver=5.2.2
+pkgrel=1
 pkgdesc="Semigroupoids: Category sans id"
 url="https://github.com/ekmett/semigroupoids"
 license=("custom:BSD3")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-base-orphans" "haskell-bifunctors" "haskell-comonad" "haskell-contravariant"
-         "haskell-distributive" "haskell-hashable" "haskell-semigroups" "haskell-tagged"
-         "haskell-transformers-compat" "haskell-unordered-containers")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-base-orphans' 'haskell-bifunctors' 'haskell-comonad' 'haskell-contravariant'
+         'haskell-distributive' 'haskell-hashable' 'haskell-semigroups' 'haskell-tagged'
+         'haskell-transformers-compat' 'haskell-unordered-containers')
+makedepends=('ghc' 'haskell-cabal-doctest' 'haskell-doctest')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('735b90545a7f73eee921d94d661cd76fe22d4dbd949f5c976ef1a98c8d0ef50f40481816ee805aed9c5de12bef1d832de7be2adf651407782ccc073eec41c5a7')
+sha512sums=('8a972716a0d74bf9e539864614cd7b0ccede283efdb7a4f84ca691ec89fbe1aa9e2322e79c608adce9904a06457294a071007ba1eb84475896e41d629c60b90c')
 
+prepare() {
+    sed -i '/test-suite doctests/a \  x-doctest-options: -dynamic' $_hkgname-$pkgver/$_hkgname.cabal
+}
+
 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 \
             -ftagged -fcomonad -fdoctests -fdistributive -fcontravariant -fcontainers -funordered-containers
     runhaskell Setup build
@@ -31,8 +35,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