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

Felix Yan felixonmars at archlinux.org
Thu Jun 15 17:16:59 UTC 2017


    Date: Thursday, June 15, 2017 @ 17:16:58
  Author: felixonmars
Revision: 237291

upgpkg: haskell-cpphs 1.20.5-3

rebuild with ghc,8.0.2

Modified:
  haskell-cpphs/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-15 17:15:22 UTC (rev 237290)
+++ PKGBUILD	2017-06-15 17:16:58 UTC (rev 237291)
@@ -5,12 +5,12 @@
 _hkgname=cpphs
 pkgname=haskell-cpphs
 pkgver=1.20.5
-pkgrel=2
+pkgrel=3
 pkgdesc="A liberalised re-implementation of cpp, the C pre-processor."
 url="http://projects.haskell.org/cpphs/"
 license=("LGPL")
 arch=('i686' 'x86_64')
-depends=("ghc=8.0.1" "haskell-old-locale" "haskell-old-time" "haskell-polyparse")
+depends=("ghc" "haskell-old-locale" "haskell-old-time" "haskell-polyparse")
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha512sums=('e7fc62d1e5dea0ea7308d266f1a15502ba2aa185a9b42ead3140e775b2f8b3de3b5cec45c02c74d082fca4a8a4137f3f16cd1813def485acab4163559471d5a7')
 
@@ -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