[arch-commits] Commit in haskell-stm/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Feb 4 19:15:36 UTC 2018


    Date: Sunday, February 4, 2018 @ 19:15:36
  Author: felixonmars
Revision: 289042

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-stm/repos/community-staging-x86_64/
  haskell-stm/repos/community-staging-x86_64/PKGBUILD
    (from rev 289041, haskell-stm/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: haskell-stm/repos/community-staging-x86_64/PKGBUILD (from rev 289041, haskell-stm/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-02-04 19:15:36 UTC (rev 289042)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Vesa Kaihlavirta <vesa at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+# Package generated by cabal2arch 0.7.5
+
+_hkgname=stm
+pkgname=haskell-stm
+pkgver=2.4.5.0
+pkgrel=1
+pkgdesc="A modular composable concurrency abstraction."
+url="https://hackage.haskell.org/package/stm"
+license=('custom:BSD3')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/$pkgver/${_hkgname}-$pkgver.tar.gz")
+sha512sums=('3d8bd8b178fbb8c0297d441a0054c73395c2e5db493f35a35a69f764179e2da78ec749689138eda8b2fa3232133721cc10913d5e5ad5aa84ca3113367cc8a14a')
+
+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-developer -f-integer-simple
+    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 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list