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

Felix Yan felixonmars at archlinux.org
Fri Nov 2 17:36:32 UTC 2018


    Date: Friday, November 2, 2018 @ 17:36:31
  Author: felixonmars
Revision: 401246

upgpkg: haskell-sandi 0.4.3-1

rebuild with sandi 0.4.3

Modified:
  haskell-sandi/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-02 17:34:32 UTC (rev 401245)
+++ PKGBUILD	2018-11-02 17:36:31 UTC (rev 401246)
@@ -3,20 +3,21 @@
 
 _hkgname=sandi
 pkgname=haskell-sandi
-pkgver=0.4.2
-pkgrel=63
+pkgver=0.4.3
+pkgrel=1
 pkgdesc="Data encoding library"
 url="https://hackage.haskell.org/package/sandi"
 license=("custom:BSD3")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-conduit" "haskell-exceptions" "haskell-stringsearch")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-conduit' 'haskell-exceptions')
+makedepends=('ghc' 'haskell-tasty' 'haskell-tasty-hunit' 'haskell-tasty-quickcheck'
+             'haskell-tasty-th')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('1fb255ca358c83a46121f930cbcbe4892f3c6d7b2830f4ba497faceeb9f1f5bb6046f1043c2c65b552e4afc0be1f413852db5b8e2054a476cacbe0d3fb4ee4a0')
+sha512sums=('76d9288d7dce824d320e545b0540b40b148b8c848c7785fc79514cdfa6815a946229fd70c341443f52a9cf8cdb4f425980a14b33d0c3b02cf6645854e5048269')
 
 prepare() {
     cd $_hkgname-$pkgver
-    sed -i 's/< *4.12/<5/' $_hkgname.cabal
+    echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs
 }
 
 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 \
             -fwith-conduit
     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