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

Felix Yan felixonmars at archlinux.org
Tue Dec 19 03:59:17 UTC 2017


    Date: Tuesday, December 19, 2017 @ 03:59:14
  Author: felixonmars
Revision: 274835

upgpkg: haskell-servant 0.12.1-1

rebuild with servant,0.12.1

Modified:
  haskell-servant/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++++++++++++++++---------
 1 file changed, 21 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-19 03:57:00 UTC (rev 274834)
+++ PKGBUILD	2017-12-19 03:59:14 UTC (rev 274835)
@@ -4,25 +4,32 @@
 
 _hkgname=servant
 pkgname=haskell-servant
-pkgver=0.12
-pkgrel=3
+pkgver=0.12.1
+pkgrel=1
 pkgdesc="A family of combinators for defining webservices APIs"
 url="http://haskell-servant.readthedocs.org/"
 license=("custom:BSD3")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-base-compat" "haskell-aeson" "haskell-attoparsec" "haskell-case-insensitive"
-         "haskell-http-api-data" "haskell-http-media" "haskell-http-types"
-         "haskell-natural-transformation" "haskell-mtl" "haskell-mmorph" "haskell-tagged"
-         "haskell-text" "haskell-string-conversions" "haskell-network-uri" "haskell-vault")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-base-compat' 'haskell-aeson' 'haskell-attoparsec'
+         'haskell-case-insensitive' 'haskell-http-api-data' 'haskell-http-media'
+         'haskell-http-types' 'haskell-natural-transformation' 'haskell-mtl' 'haskell-mmorph'
+         'haskell-tagged' 'haskell-text' 'haskell-string-conversions' 'haskell-network-uri'
+         'haskell-vault')
+makedepends=('ghc' 'haskell-cabal-doctest' 'haskell-aeson-compat' 'haskell-hspec'
+             'haskell-quickcheck' 'haskell-quickcheck-instances' 'haskell-url' 'haskell-doctest'
+             'haskell-filemanip')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('a01ac22342823e2d032e3ba84c8e403288e8ac14d65496ef26f183a7c6f143b02d4d4029936590b0bd91caee30a6eda9de45c97af3b511883fae0716eb731473')
+sha512sums=('f7c4a7faa666e579f681db6fc9bd78ed93b09015561c8d390fb877b08502e85d1aeb182051e1ee3ea4513ed2328fea1fe752c37fdb619d602c98d791db235a55')
 
+prepare() {
+    sed -i '/test-suite doctests/a \ x-doctest-options: -dynamic' $_hkgname-$pkgver/$_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
@@ -31,6 +38,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