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

Felix Yan felixonmars at archlinux.org
Thu Aug 17 06:25:21 UTC 2017


    Date: Thursday, August 17, 2017 @ 06:25:20
  Author: felixonmars
Revision: 251563

upgpkg: haskell-hackage-security 0.5.2.2-6

GHC 8.2.1 rebuild

Modified:
  haskell-hackage-security/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-17 06:11:13 UTC (rev 251562)
+++ PKGBUILD	2017-08-17 06:25:20 UTC (rev 251563)
@@ -5,31 +5,33 @@
 _hkgname=hackage-security
 pkgname=haskell-hackage-security
 pkgver=0.5.2.2
-pkgrel=5
+pkgrel=6
 pkgdesc="Hackage security library"
 url="https://github.com/well-typed/hackage-security"
 license=("custom:BSD3")
 arch=('i686' 'x86_64')
-depends=("ghc" "haskell-base16-bytestring" "haskell-base64-bytestring" "haskell-cryptohash-sha256"
+depends=('ghc-libs' "haskell-base16-bytestring" "haskell-base64-bytestring" "haskell-cryptohash-sha256"
          "haskell-ed25519" "haskell-mtl" "haskell-network" "haskell-network-uri" "haskell-parsec"
          "haskell-tar" "haskell-zlib")
+makedepends=('ghc')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha256sums=('507a837851264a774c8f4d400f798c3dac5be11dc428fe72d33ef594ca533c41')
 
 prepare() {
-    sed -i 's/directory         >= 1.1.0.2 && < 1.3,/directory         >= 1.1.0.2 \&\& < 1.4,/' \
-        ${_hkgname}-${pkgver}/${_hkgname}.cabal
+    sed -e 's/directory         >= 1.1.0.2 && < 1.3,/directory         >= 1.1.0.2,/' \
+        -e 's/time              >= 1.2     && < 1.7,/time              >= 1.2,/' \
+        -e 's/Cabal             >= 1.14    && < 1.26,/Cabal             >= 1.14,/' \
+        -i ${_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 \
             -fbase48 -fuse-network-uri -f-old-directory
     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
@@ -38,11 +40,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