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

Felix Yan felixonmars at archlinux.org
Fri Jun 16 09:44:10 UTC 2017


    Date: Friday, June 16, 2017 @ 09:44:09
  Author: felixonmars
Revision: 237591

upgpkg: haskell-hackage-security 0.5.2.2-5

rebuild with ghc,8.0.2

Modified:
  haskell-hackage-security/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-16 09:39:24 UTC (rev 237590)
+++ PKGBUILD	2017-06-16 09:44:09 UTC (rev 237591)
@@ -5,21 +5,26 @@
 _hkgname=hackage-security
 pkgname=haskell-hackage-security
 pkgver=0.5.2.2
-pkgrel=4
+pkgrel=5
 pkgdesc="Hackage security library"
 url="https://github.com/well-typed/hackage-security"
 license=("custom:BSD3")
 arch=('i686' 'x86_64')
-depends=("ghc=8.0.1" "haskell-base16-bytestring" "haskell-base64-bytestring"
-         "haskell-cryptohash-sha256" "haskell-ed25519" "haskell-mtl" "haskell-network"
-         "haskell-network-uri" "haskell-parsec" "haskell-tar" "haskell-zlib")
+depends=("ghc" "haskell-base16-bytestring" "haskell-base64-bytestring" "haskell-cryptohash-sha256"
+         "haskell-ed25519" "haskell-mtl" "haskell-network" "haskell-network-uri" "haskell-parsec"
+         "haskell-tar" "haskell-zlib")
 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
+}
+
 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 \
             -fbase48 -fuse-network-uri -f-old-directory
@@ -41,4 +46,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