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

Felix Yan felixonmars at archlinux.org
Fri Feb 16 20:01:10 UTC 2018


    Date: Friday, February 16, 2018 @ 20:01:09
  Author: felixonmars
Revision: 295159

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-configurator-ng/repos/community-staging-x86_64/
  haskell-configurator-ng/repos/community-staging-x86_64/PKGBUILD
    (from rev 295158, haskell-configurator-ng/trunk/PKGBUILD)

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

Copied: haskell-configurator-ng/repos/community-staging-x86_64/PKGBUILD (from rev 295158, haskell-configurator-ng/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-02-16 20:01:09 UTC (rev 295159)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=configurator-ng
+pkgname=haskell-configurator-ng
+pkgver=0.0.0.1
+pkgrel=14
+pkgdesc="The next generation of configuration management"
+url="https://github.com/lpsmith/configurator-ng"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-attoparsec" "haskell-critbit" "haskell-dlist" "haskell-data-ordlist"
+         "haskell-hashable" "haskell-scientific" "haskell-text" "haskell-unix-compat"
+         "haskell-unordered-containers")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('7995be233ab367e807a66c6f0f412826dc6c916a895c5e145d5b21af2f867a0c69c6bd228e7d5425a69ea9b500ed51fb00025ca9090417aaee4ac1a027f2f77a')
+
+prepare() {
+    sed -i '/fail/d' ${_hkgname}-$pkgver/$_hkgname.cabal
+}
+
+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
+    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