[arch-commits] Commit in haskell-erf/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Jun 15 20:29:12 UTC 2017


    Date: Thursday, June 15, 2017 @ 20:29:11
  Author: felixonmars
Revision: 237435

upgpkg: haskell-erf 2.0.0.0-3

rebuild with ghc,8.0.2

Modified:
  haskell-erf/trunk/PKGBUILD

----------+
 PKGBUILD |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-15 20:27:48 UTC (rev 237434)
+++ PKGBUILD	2017-06-15 20:29:11 UTC (rev 237435)
@@ -5,12 +5,12 @@
 _hkgname=erf
 pkgname=haskell-erf
 pkgver=2.0.0.0
-pkgrel=2
+pkgrel=3
 pkgdesc="The error function, erf, and related functions."
 url="https://hackage.haskell.org/package/${_hkgname}"
 license=("custom:BSD3")
 arch=('i686' 'x86_64')
-depends=("ghc=8.0.1")
+depends=("ghc")
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha256sums=("24f0b79c7e1d25cb2cd44c2258d7a464bf6db8079775b50b60b54a254616b337")
 
@@ -17,7 +17,7 @@
 build() {
     cd "${srcdir}/${_hkgname}-${pkgver}"
     
-    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
         --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
         --libsubdir=\$compiler/site-local/\$pkgid
     runhaskell Setup build
@@ -36,4 +36,7 @@
     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}"
+
+    # Remove static libs
+    find "$pkgdir"/usr/lib -name "*.a" -delete
 }



More information about the arch-commits mailing list