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

Felix Yan felixonmars at archlinux.org
Fri Dec 8 08:49:08 UTC 2017


    Date: Friday, December 8, 2017 @ 08:49:07
  Author: felixonmars
Revision: 273256

upgpkg: haskell-mono-traversable 1.0.5.0-1

rebuild with mono-traversable,1.0.5.0

Modified:
  haskell-mono-traversable/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-08 08:36:02 UTC (rev 273255)
+++ PKGBUILD	2017-12-08 08:49:07 UTC (rev 273256)
@@ -4,23 +4,24 @@
 
 _hkgname=mono-traversable
 pkgname=haskell-mono-traversable
-pkgver=1.0.4.0
-pkgrel=2
+pkgver=1.0.5.0
+pkgrel=1
 pkgdesc="Type classes for mapping, folding, and traversing monomorphic containers"
 url="https://github.com/snoyberg/mono-traversable"
 license=("MIT")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-hashable" "haskell-split" "haskell-text" "haskell-unordered-containers"
-         "haskell-vector" "haskell-vector-algorithms")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-hashable' 'haskell-split' 'haskell-text' 'haskell-unordered-containers'
+         'haskell-vector' 'haskell-vector-algorithms')
+makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-foldl' 'haskell-hspec'
+             'haskell-semigroups')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('25193b0dcf8401d7e822bd8ff80376712307683a88db8ee8e6014d8371069d1fd2e2378e9413a16dccc3d4c51e72305f4b69fd74b3855015baf77d5dac6aa0bb')
+sha512sums=('50039ae33d4ef4342cf18e2fcd4602e0d5c871d8b6106354877118ff2e7dbd1ea1270956ba081dd53d18c34919a1eaff1327a0a082a18a06e41528acba81e50d')
 
 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
@@ -29,9 +30,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