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

Felix Yan felixonmars at archlinux.org
Wed Jan 10 16:25:28 UTC 2018


    Date: Wednesday, January 10, 2018 @ 16:25:27
  Author: felixonmars
Revision: 281047

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-foundation/repos/community-staging-x86_64/PKGBUILD (from rev 281046, haskell-foundation/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-01-10 16:25:27 UTC (rev 281047)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas Dziedzic <gostrc at gmail.com>
+
+_hkgname=foundation
+pkgname=haskell-foundation
+pkgver=0.0.18
+pkgrel=1
+pkgdesc="Alternative prelude with batteries and no dependencies"
+url="https://github.com/haskell-foundation/foundation"
+license=('custom:BSD3')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-basement')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('4d887c0ec425d4cd59f2fde325bd6fa6b7f4b2a6eb5cd35f6d88481e7f4823294c3a9d836310458d8ff7ce9057b064a51b4331da5f74ea2d2b750160d5329756')
+
+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-experimental -f-minimal-deps -f-doctest -f-bounds-check
+    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