Date: Tuesday, July 11, 2017 @ 14:13:01
  Author: felixonmars
Revision: 244253

addpkg: haskell-configurator-ng 0.0.0.1-1

Added:
  haskell-configurator-ng/
  haskell-configurator-ng/repos/
  haskell-configurator-ng/trunk/
  haskell-configurator-ng/trunk/PKGBUILD

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

Added: haskell-configurator-ng/trunk/PKGBUILD
===================================================================
--- haskell-configurator-ng/trunk/PKGBUILD                              (rev 0)
+++ haskell-configurator-ng/trunk/PKGBUILD      2017-07-11 14:13:01 UTC (rev 
244253)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Arch Haskell Team <[email protected]>
+
+_hkgname=configurator-ng
+pkgname=haskell-configurator-ng
+pkgver=0.0.0.1
+pkgrel=1
+pkgdesc="The next generation of configuration management"
+url="http://github.com/lpsmith/configurator-ng";
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc' "haskell-attoparsec" "haskell-critbit" "haskell-dlist" 
"haskell-data-ordlist"
+         "haskell-hashable" "haskell-scientific" "haskell-text" 
"haskell-unix-compat"
+         "haskell-unordered-containers")
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha256sums=('3a367ad5dd04bddb891600899b99cbefa4bb53e44c83ebab114dacd1b68f012b')
+
+prepare() {
+    sed -i '/fail/d' ${_hkgname}-$pkgver/$_hkgname.cabal
+}
+
+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-developer
+    runhaskell Setup build
+    runhaskell Setup haddock --hoogle --html
+    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"
+    install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+    ln -s "/usr/share/doc/${pkgname}/html" 
"${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    install -D -m644 "LICENSE" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+    # Remove static libs
+    find "$pkgdir"/usr/lib -name "*.a" -delete
+}


Property changes on: haskell-configurator-ng/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property

Reply via email to