[arch-commits] Commit in haskell-servant/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Mar 4 18:41:56 UTC 2020
Date: Wednesday, March 4, 2020 @ 18:41:55
Author: felixonmars
Revision: 590414
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-servant/repos/community-staging-x86_64/
haskell-servant/repos/community-staging-x86_64/PKGBUILD
(from rev 590413, haskell-servant/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: haskell-servant/repos/community-staging-x86_64/PKGBUILD (from rev 590413, haskell-servant/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-03-04 18:41:55 UTC (rev 590414)
@@ -0,0 +1,53 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=servant
+pkgname=haskell-servant
+pkgver=0.16.2
+pkgrel=55
+pkgdesc="A family of combinators for defining webservices APIs"
+url="http://haskell-servant.readthedocs.org/"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-base-compat' 'haskell-aeson' 'haskell-attoparsec'
+ 'haskell-bifunctors' 'haskell-case-insensitive' 'haskell-http-api-data'
+ 'haskell-http-media' 'haskell-http-types' 'haskell-mmorph' 'haskell-network-uri'
+ 'haskell-quickcheck' 'haskell-tagged' 'haskell-singleton-bool'
+ 'haskell-string-conversions' 'haskell-vault')
+makedepends=('ghc' 'haskell-cabal-doctest' 'haskell-hspec' 'haskell-quickcheck-instances'
+ 'haskell-doctest')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('81e99308fb5740354f57600e7294f636e6cf988c6dbce6c4e0dd38bd7a2fad1dfe16e718ba74bcd59e8fb8a07c678c5da293a672160a01eee7b646a52c70a1bd')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -i -e 's/< *0.11/<1/' -e 's/< *4.13/<5/' $_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