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

Felix Yan felixonmars at archlinux.org
Fri Jun 16 16:27:08 UTC 2017


    Date: Friday, June 16, 2017 @ 16:27:07
  Author: felixonmars
Revision: 237737

upgpkg: haskell-text-metrics 0.2.0-3

rebuild with ghc,8.0.2

Modified:
  haskell-text-metrics/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-16 16:25:10 UTC (rev 237736)
+++ PKGBUILD	2017-06-16 16:27:07 UTC (rev 237737)
@@ -4,12 +4,12 @@
 _hkgname=text-metrics
 pkgname=haskell-text-metrics
 pkgver=0.2.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Calculate various string metrics efficiently"
 url="https://github.com/mrkkrp/text-metrics"
 license=('custom:BSD3')
 arch=('i686' 'x86_64')
-depends=('ghc=8.0.1' 'haskell-text')
+depends=('ghc' 'haskell-text')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 md5sums=('777a3db6e5d92d91f92d9d8eeaca400d')
 
@@ -16,7 +16,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
@@ -37,4 +37,7 @@
     runhaskell Setup copy --destdir="${pkgdir}"
     install -D -m644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
     rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+
+    # Remove static libs
+    find "$pkgdir"/usr/lib -name "*.a" -delete
 }



More information about the arch-commits mailing list