Date: Sunday, May 20, 2018 @ 07:23:57 Author: felixonmars Revision: 325155
upgpkg: haskell-servant-server 0.13.0.1-1 rebuild with servant,0.13.0.1 servant-server,0.13.0.1 servant-swagger,1.1.5 http-types,0.12.1 Modified: haskell-servant-server/trunk/PKGBUILD ----------+ PKGBUILD | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-05-20 07:13:53 UTC (rev 325154) +++ PKGBUILD 2018-05-20 07:23:57 UTC (rev 325155) @@ -4,33 +4,34 @@ _hkgname=servant-server pkgname=haskell-servant-server -pkgver=0.12 -pkgrel=106 +pkgver=0.13.0.1 +pkgrel=1 pkgdesc="A family of combinators for defining webservices APIs and serving them" url="http://haskell-servant.readthedocs.org/" license=("custom:BSD3") arch=('x86_64') -depends=('ghc-libs' "haskell-base-compat" "haskell-aeson" "haskell-attoparsec" - "haskell-base64-bytestring" "haskell-exceptions" "haskell-http-api-data" - "haskell-http-types" "haskell-network-uri" "haskell-monad-control" - "haskell-network" "haskell-safe" "haskell-servant" "haskell-split" - "haskell-string-conversions" "haskell-system-filepath" "haskell-resourcet" "haskell-tagged" - "haskell-transformers-base" "haskell-transformers-compat" "haskell-wai" - "haskell-wai-app-static" "haskell-warp" "haskell-word8") -makedepends=('ghc') +depends=('ghc-libs' 'haskell-base-compat' 'haskell-aeson' 'haskell-attoparsec' + 'haskell-base64-bytestring' 'haskell-exceptions' 'haskell-http-api-data' + 'haskell-http-media' 'haskell-http-types' 'haskell-network-uri' 'haskell-monad-control' + 'haskell-network' 'haskell-safe' 'haskell-servant' 'haskell-split' + 'haskell-string-conversions' 'haskell-system-filepath' 'haskell-resourcet' 'haskell-tagged' + 'haskell-transformers-base' 'haskell-transformers-compat' 'haskell-wai' + 'haskell-wai-app-static' 'haskell-warp' 'haskell-word8') +makedepends=('ghc' 'haskell-cabal-doctest' 'haskell-doctest' 'haskell-hspec' 'haskell-hspec-wai' + 'haskell-should-not-typecheck' 'haskell-quickcheck' 'haskell-wai-extra' + 'haskell-temporary') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('322fa0ebec88870d5d6e254ef27031b26d2c96dbcd6ec29e99dd2449abf95174471b1719034fb22077e4ba3f6a5bf7b2b50c535ba87e9f371f446399145f02cc') +sha512sums=('45e6b8eb9b60efc1bfe046d3e7c93eac4a7c8f9a9f199dd13bcde16a4ba11ad63e3a31c05f056ed1e8266e45307f37982ab9723bb2721978881312521f264d1d') prepare() { cd $_hkgname-$pkgver - sed -e 's/<.*4.11/<5/' -e 's/<.*1.3/<2/' -e 's/<.*0.10/<1/' -i $_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 runhaskell Setup build runhaskell Setup register --gen-script @@ -39,8 +40,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"
