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

Felix Yan felixonmars at archlinux.org
Tue Jun 12 12:59:32 UTC 2018


    Date: Tuesday, June 12, 2018 @ 12:59:31
  Author: felixonmars
Revision: 342481

upgpkg: haskell-aeson-compat 0.3.8-1

rebuild with aeson-compat 0.3.8

Modified:
  haskell-aeson-compat/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++++++++++++++------------------
 1 file changed, 19 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-12 12:48:30 UTC (rev 342480)
+++ PKGBUILD	2018-06-12 12:59:31 UTC (rev 342481)
@@ -4,30 +4,26 @@
 
 _hkgname=aeson-compat
 pkgname=haskell-aeson-compat
-pkgver=0.3.7.1
-pkgrel=41
+pkgver=0.3.8
+pkgrel=1
 pkgdesc="Compatibility layer for aeson"
 url="https://hackage.haskell.org/package/${_hkgname}"
 license=("custom:BSD3")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-aeson" "haskell-attoparsec" "haskell-attoparsec-iso8601"
-         "haskell-base-compat" "haskell-exceptions" "haskell-hashable" "haskell-scientific"
-         "haskell-tagged" "haskell-time-locale-compat"
-         "haskell-unordered-containers" "haskell-vector")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-attoparsec-iso8601'
+         'haskell-base-compat' 'haskell-exceptions' 'haskell-hashable' 'haskell-scientific'
+         'haskell-tagged' 'haskell-time-locale-compat' 'haskell-unordered-containers'
+         'haskell-vector')
+makedepends=('ghc' 'haskell-base-orphans' 'haskell-quickcheck' 'haskell-quickcheck-instances'
+             'haskell-tasty' 'haskell-tasty-hunit' 'haskell-tasty-quickcheck')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('47a9c1148cad6ac14455306579ff658192479eb6bc2132bb2204b94b3c89d8ad99b3d7600354d6a49922867f8d9226acf35107f225ab2b46d3e4c298a3ca7369')
+sha512sums=('36687acb148fd7c71a0cc99f77116518ef539754f151707cc5f6c1b4dfb7b3245338b32d83d68a3e0663d92644fb6d4eadff2d2ba88cad1a22b98aa3c35cc215')
 
-prepare() {
+build() {
     cd $_hkgname-$pkgver
-    sed -e 's/<.*4.11/<5/' -e 's/<.*1.3/<2/' -e 's/<.*0.10/<1/' -e 's/<.*0.9/<1/' -i $_hkgname.cabal
-}
-
-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
@@ -36,9 +32,14 @@
     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"
     runhaskell Setup copy --destdir="${pkgdir}"



More information about the arch-commits mailing list