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

Felix Yan felixonmars at archlinux.org
Mon Aug 20 06:41:42 UTC 2018


    Date: Monday, August 20, 2018 @ 06:41:41
  Author: felixonmars
Revision: 372818

try to enable tests

Modified:
  haskell-cmark-gfm/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-20 06:25:04 UTC (rev 372817)
+++ PKGBUILD	2018-08-20 06:41:41 UTC (rev 372818)
@@ -11,12 +11,13 @@
 license=("custom:BSD3")
 arch=('x86_64')
 depends=('ghc-libs' 'cmark-gfm')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-hunit')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha512sums=('34e914039b385b66859b9438330619c9d0895ed8a71b4de38c66a3bbcc8bf1fafb663afb5e3c8d2ae897351c5fba204ddf44017644860578721946f1a184ecd3')
 
 prepare() {
-    sed -i 's/pkgconfig-depends: libcmark-gfm/Extra-Libraries: cmark-gfm/' $_hkgname-$pkgver/$_hkgname.cabal
+    # https://github.com/kivikakk/cmark-gfm-hs/issues/8
+    sed -i 's/pkgconfig-depends: libcmark-gfm/Extra-Libraries: cmark-gfm cmark-gfmextensions/' $_hkgname-$pkgver/$_hkgname.cabal
 }
 
 build() {
@@ -23,7 +24,7 @@
     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 \
             -fpkgconfig
     runhaskell Setup build
@@ -33,6 +34,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