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

Felix Yan felixonmars at archlinux.org
Tue Aug 15 17:10:54 UTC 2017


    Date: Tuesday, August 15, 2017 @ 17:10:53
  Author: felixonmars
Revision: 251098

upgpkg: haskell-tagged 0.8.5-3

GHC 8.2.1 rebuild

Modified:
  haskell-tagged/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-15 17:07:37 UTC (rev 251097)
+++ PKGBUILD	2017-08-15 17:10:53 UTC (rev 251098)
@@ -5,24 +5,28 @@
 _hkgname=tagged
 pkgname=haskell-tagged
 pkgver=0.8.5
-pkgrel=2
+pkgrel=3
 pkgdesc="Haskell 98 phantom types to avoid unsafely passing dummy arguments"
 url="http://github.com/ekmett/tagged"
 license=("custom:BSD3")
 arch=('i686' 'x86_64')
-depends=("ghc" "haskell-transformers-compat")
+depends=('ghc-libs' "haskell-transformers-compat")
+makedepends=('ghc')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha256sums=('e47c51c955ed77b0fa36897f652df990aa0a8c4eb278efaddcd604be00fc8d99')
 
+prepare() {
+    sed -i 's/template-haskell >= 2.8 && < 2.12/template-haskell >= 2.8/' $_hkgname-$pkgver/$_hkgname.cabal
+}
+
 build() {
     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 \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
             -fdeepseq -ftransformers
     runhaskell Setup build
-    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
@@ -31,11 +35,9 @@
 
 package() {
     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}"
     runhaskell Setup copy --destdir="${pkgdir}"
     install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
     rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"



More information about the arch-commits mailing list