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

Felix Yan felixonmars at archlinux.org
Thu Jan 25 21:08:47 UTC 2018


    Date: Thursday, January 25, 2018 @ 21:08:46
  Author: felixonmars
Revision: 286960

upgpkg: haskell-safe-exceptions 0.1.7.0-1

rebuild with safe-exceptions,0.1.7.0

Modified:
  haskell-safe-exceptions/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-25 21:06:49 UTC (rev 286959)
+++ PKGBUILD	2018-01-25 21:08:46 UTC (rev 286960)
@@ -3,22 +3,22 @@
 
 _hkgname=safe-exceptions
 pkgname=haskell-safe-exceptions
-pkgver=0.1.6.0
-pkgrel=4
+pkgver=0.1.7.0
+pkgrel=1
 pkgdesc="Safe, consistent, and easy exception handling"
 url="https://github.com/fpco/safe-exceptions"
 license=('MIT')
 arch=('x86_64')
 depends=('ghc-libs' 'haskell-exceptions')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-hspec' 'haskell-void')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('a87139b1e506bb197e34e83713e29490f20f9140ecb47d979b87db4d6f7570690e2a1ea81901df28675d0b23747ddf743752d5ef26b81f90165ee010e609658f')
+sha512sums=('05fc32ea80ce1f733a6ea09655fecccf813ea9b7736dbd1d8ef84f54e3fb58f1017756cc9eb507d381cb73f22f100e9166bef1b7198a1d9edbda21e38626e351')
 
 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
@@ -27,8 +27,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