[arch-commits] Commit in haskell-th-reify-many/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Nov 26 09:27:52 UTC 2017


    Date: Sunday, November 26, 2017 @ 09:27:51
  Author: felixonmars
Revision: 268873

upgpkg: haskell-th-reify-many 0.1.8-5

rebuild with ghc 8.2.2

Modified:
  haskell-th-reify-many/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-26 09:27:18 UTC (rev 268872)
+++ PKGBUILD	2017-11-26 09:27:51 UTC (rev 268873)
@@ -4,7 +4,7 @@
 _hkgname=th-reify-many
 pkgname=haskell-th-reify-many
 pkgver=0.1.8
-pkgrel=4
+pkgrel=5
 pkgdesc="Recurseively reify template haskell datatype info"
 url="https://github.com/mgsloan/th-reify-many"
 license=('custom:BSD3')
@@ -16,9 +16,9 @@
 
 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
@@ -27,9 +27,14 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
 package() {
     cd "${srcdir}/${_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"
     runhaskell Setup copy --destdir="${pkgdir}"


More information about the arch-commits mailing list