[arch-commits] Commit in haskell-servant-server/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Jul 13 07:41:59 UTC 2018
Date: Friday, July 13, 2018 @ 07:41:59
Author: felixonmars
Revision: 358432
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-servant-server/repos/community-staging-x86_64/
haskell-servant-server/repos/community-staging-x86_64/PKGBUILD
(from rev 358431, haskell-servant-server/trunk/PKGBUILD)
----------+
PKGBUILD | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
Copied: haskell-servant-server/repos/community-staging-x86_64/PKGBUILD (from rev 358431, haskell-servant-server/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-07-13 07:41:59 UTC (rev 358432)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=servant-server
+pkgname=haskell-servant-server
+pkgver=0.13.0.1
+pkgrel=46
+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-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=('45e6b8eb9b60efc1bfe046d3e7c93eac4a7c8f9a9f199dd13bcde16a4ba11ad63e3a31c05f056ed1e8266e45307f37982ab9723bb2721978881312521f264d1d')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -i 's/<.*2.7/<3/' $_hkgname.cabal
+}
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --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
+ runhaskell Setup unregister --gen-script
+ sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
+package() {
+ 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}"
+ install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list