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

Felix Yan felixonmars at archlinux.org
Thu Jun 15 03:33:30 UTC 2017


    Date: Thursday, June 15, 2017 @ 03:33:29
  Author: felixonmars
Revision: 236940

upgpkg: haskell-entropy 0.3.7-3

rebuild with ghc,8.0.2

Modified:
  haskell-entropy/trunk/PKGBUILD

----------+
 PKGBUILD |   29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-15 03:30:50 UTC (rev 236939)
+++ PKGBUILD	2017-06-15 03:33:29 UTC (rev 236940)
@@ -4,9 +4,9 @@
 
 pkgname=haskell-entropy
 pkgver=0.3.7
-pkgrel=2
+pkgrel=3
 pkgdesc="A platform independent method to obtain cryptographically strong entropy"
-url="http://hackage.haskell.org/package/entropy"
+url="https://hackage.haskell.org/package/entropy"
 license=('custom:BSD3')
 arch=('i686' 'x86_64')
 depends=('ghc')
@@ -14,12 +14,14 @@
 sha256sums=('1ff020eba2edbb93c4b23297470f8c11d69d0ff1e1642d17cbab9d54a24befef')
 
 build() {
-    cd "$srcdir"/entropy-${pkgver}
-    runhaskell Setup configure -O --enable-library-profiling --enable-split-objs --enable-shared \
-       --prefix=/usr --docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid
+    cd "${srcdir}/entropy-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --libsubdir=\$compiler/site-local/\$pkgid
     runhaskell Setup build
-    runhaskell Setup haddock
-    runhaskell Setup register   --gen-script
+    runhaskell Setup haddock --hoogle --html
+    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
@@ -30,9 +32,12 @@
     
     install -D -m744 register.sh   "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
     install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"
-    install -d -m755 "$pkgdir"/usr/share/doc/ghc/html/libraries
-    ln -s /usr/share/doc/${pkgname}/html "$pkgdir"/usr/share/doc/ghc/html/libraries/entropy
-    runhaskell Setup copy --destdir="$pkgdir"
-    install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
-    rm -f "$pkgdir"/usr/share/doc/${pkgname}/LICENSE
+    install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+    ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/entropy"
+    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