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

Felix Yan felixonmars at archlinux.org
Thu Jun 15 16:50:49 UTC 2017


    Date: Thursday, June 15, 2017 @ 16:50:49
  Author: felixonmars
Revision: 237267

upgpkg: haskell-monadrandom 0.5.1-3

rebuild with ghc,8.0.2

Modified:
  haskell-monadrandom/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-15 16:49:21 UTC (rev 237266)
+++ PKGBUILD	2017-06-15 16:50:49 UTC (rev 237267)
@@ -5,13 +5,12 @@
 _hkgname=MonadRandom
 pkgname=haskell-monadrandom
 pkgver=0.5.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Random-number generation monad."
 url="https://hackage.haskell.org/package/${_hkgname}"
 license=("custom")
 arch=('i686' 'x86_64')
-depends=("ghc=8.0.1" "haskell-mtl" "haskell-primitive" "haskell-random"
-         "haskell-transformers-compat")
+depends=("ghc" "haskell-mtl" "haskell-primitive" "haskell-random" "haskell-transformers-compat")
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha256sums=('9e3f0f92807285302036dc504066ae6d968c8b0b4c25d9360888f31fe1730d87')
 
@@ -22,7 +21,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
@@ -43,4 +42,7 @@
     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
 }



More information about the arch-commits mailing list