[arch-commits] Commit in haskell-websockets/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Feb 16 19:14:35 UTC 2018
Date: Friday, February 16, 2018 @ 19:14:34
Author: felixonmars
Revision: 295091
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-websockets/repos/community-staging-x86_64/
haskell-websockets/repos/community-staging-x86_64/PKGBUILD
(from rev 295090, haskell-websockets/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: haskell-websockets/repos/community-staging-x86_64/PKGBUILD (from rev 295090, haskell-websockets/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-02-16 19:14:34 UTC (rev 295091)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=websockets
+pkgname=haskell-websockets
+pkgver=0.12.3.1
+pkgrel=9
+pkgdesc="A sensible and clean way to write WebSocket-capable servers in Haskell."
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-attoparsec" "haskell-base64-bytestring" "haskell-blaze-builder"
+ "haskell-case-insensitive" "haskell-entropy" "haskell-network" "haskell-random"
+ "haskell-sha" "haskell-streaming-commons" "haskell-text")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('62a08ae9e257fad836be0bdfb0e652da807985416a9a298e9bbfe1750252016aaaf0d793e28b5ee4cf51ee9e2dac716a1ed773d5bf9433f9089d106d52fccb5d')
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-Example
+ 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
+}
+
+package() {
+ cd "${srcdir}/${_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 "LICENCE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENCE"
+}
More information about the arch-commits
mailing list