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

Felix Yan felixonmars at archlinux.org
Sat May 19 07:02:38 UTC 2018


    Date: Saturday, May 19, 2018 @ 07:02:38
  Author: felixonmars
Revision: 324401

upgpkg: haskell-aeson 1.3.1.1-1

rebuild with base-compat,0.10.1 aeson,1.3.1.1

Modified:
  haskell-aeson/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-19 06:56:36 UTC (rev 324400)
+++ PKGBUILD	2018-05-19 07:02:38 UTC (rev 324401)
@@ -5,8 +5,8 @@
 
 pkgname=haskell-aeson
 _hkgname=aeson
-pkgver=1.2.4.0
-pkgrel=15
+pkgver=1.3.1.1
+pkgrel=1
 pkgdesc="A JSON parsing and encoding library optimized for ease of use and high performance."
 url="https://github.com/bos/aeson"
 license=("GPL")
@@ -14,14 +14,22 @@
 depends=('ghc-libs' 'haskell-attoparsec' 'haskell-base-compat' 'haskell-dlist' 'haskell-hashable'
          'haskell-scientific' 'haskell-tagged' 'haskell-th-abstraction' 'haskell-time-locale-compat'
          'haskell-unordered-containers' 'haskell-uuid-types' 'haskell-vector')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-integer-logarithms'
+             'haskell-base-orphans' 'haskell-base16-bytestring' 'haskell-generic-deriving'
+             'haskell-hashable-time' 'haskell-tasty' 'haskell-tasty-hunit'
+             'haskell-tasty-quickcheck' 'haskell-quickcheck-instances')
 source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-${pkgver}.tar.gz")
-sha512sums=('ece91b97de5c0a46818122fbc4e22e69ab79b4e0fe5ef55c1ab9e716be86c100b4c0f9270c1086adfe9d5fbc124fb68c025d13f1f2e2a765fb6cab88168f7155')
+sha512sums=('ab506e0aa453542c1b609e65d36ed56758c43b772c1eaa13274bf4f9e72366bdf02ba31de0a7a8673c7a0d200837dd0192e1269fbe51d3b7d0149dce6d0f6968')
 
+prepare() {
+  cd $_hkgname-$pkgver
+  sed -i 's/<.*2.11/<3/' $_hkgname.cabal
+}
+
 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 \
             -f-developer -f-fast -f-bytestring-builder -f-cffi
   runhaskell Setup build
@@ -31,8 +39,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