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

Felix Yan felixonmars at archlinux.org
Fri Jun 16 15:17:21 UTC 2017


    Date: Friday, June 16, 2017 @ 15:17:20
  Author: felixonmars
Revision: 237691

upgpkg: haskell-setlocale 1.0.0.4-2

rebuild with ghc,8.0.2

Modified:
  haskell-setlocale/trunk/PKGBUILD

----------+
 PKGBUILD |   28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-16 15:15:45 UTC (rev 237690)
+++ PKGBUILD	2017-06-16 15:17:20 UTC (rev 237691)
@@ -4,7 +4,7 @@
 pkgname=haskell-setlocale
 _hkgname=setlocale
 pkgver=1.0.0.4
-pkgrel=1
+pkgrel=2
 pkgdesc="Haskell bindings to setlocale"
 url="https://hackage.haskell.org/package/setlocale"
 license=('custom:BSD3')
@@ -18,12 +18,14 @@
 }
 
 build() {
-    cd ${srcdir}/setlocale-${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}/${_hkgname}-${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,14 +32,16 @@
 }
 
 package() {
-    cd "${srcdir}/setlocale-${pkgver}"
+    cd "${srcdir}/${_hkgname}-${pkgver}"
     
     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/$_hkgname"
+    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}"
+    install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
 
-    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