[arch-commits] Commit in haskell-websockets/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Wed Aug 16 18:49:19 UTC 2017
Date: Wednesday, August 16, 2017 @ 18:49:19
Author: felixonmars
Revision: 251466
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
haskell-websockets/repos/community-staging-i686/
haskell-websockets/repos/community-staging-i686/PKGBUILD
(from rev 251465, haskell-websockets/trunk/PKGBUILD)
haskell-websockets/repos/community-staging-x86_64/
haskell-websockets/repos/community-staging-x86_64/PKGBUILD
(from rev 251465, haskell-websockets/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++
2 files changed, 90 insertions(+)
Copied: haskell-websockets/repos/community-staging-i686/PKGBUILD (from rev 251465, haskell-websockets/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-08-16 18:49:19 UTC (rev 251466)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=websockets
+pkgname=haskell-websockets
+pkgver=0.10.0.0
+pkgrel=23
+pkgdesc="A sensible and clean way to write WebSocket-capable servers in Haskell."
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("custom:BSD3")
+arch=('i686' '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-text")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha256sums=('3ee56fa6683912928a7d336d591c43e4948886037b5aa72cbab2f33fb43fa2eb')
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --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"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
Copied: haskell-websockets/repos/community-staging-x86_64/PKGBUILD (from rev 251465, haskell-websockets/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-08-16 18:49:19 UTC (rev 251466)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=websockets
+pkgname=haskell-websockets
+pkgver=0.10.0.0
+pkgrel=23
+pkgdesc="A sensible and clean way to write WebSocket-capable servers in Haskell."
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("custom:BSD3")
+arch=('i686' '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-text")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha256sums=('3ee56fa6683912928a7d336d591c43e4948886037b5aa72cbab2f33fb43fa2eb')
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --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"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
More information about the arch-commits
mailing list