[arch-commits] Commit in purescript/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Jun 18 17:11:26 UTC 2017
Date: Sunday, June 18, 2017 @ 17:11:26
Author: felixonmars
Revision: 238086
upgpkg: purescript 0.11.5-9
rebuild with ghc,8.0.2
Modified:
purescript/trunk/PKGBUILD
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++------------------
1 file changed, 31 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-06-18 16:36:15 UTC (rev 238085)
+++ PKGBUILD 2017-06-18 17:11:26 UTC (rev 238086)
@@ -4,26 +4,25 @@
pkgname=purescript
pkgver=0.11.5
-pkgrel=8
+pkgrel=9
pkgdesc="PureScript Programming Language Compiler"
url="http://www.purescript.org/"
license=("custom:BSD3")
arch=('i686' 'x86_64')
-depends=('gmp' 'libffi' 'zlib')
-makedepends=("ghc=8.0.1" "haskell-aeson" "haskell-aeson-better-errors" "haskell-aeson-pretty"
- "haskell-ansi-terminal" "haskell-ansi-wl-pprint" "haskell-base-compat"
- "haskell-blaze-html" "haskell-bower-json" "haskell-boxes" "haskell-cheapskate"
- "haskell-clock" "haskell-data-ordlist" "haskell-dlist" "haskell-edit-distance"
- "haskell-file-embed" "haskell-fsnotify" "haskell-glob" "haskell-http-client"
- "haskell-http-types" "haskell-language-javascript" "haskell-lens" "haskell-lifted-base"
- "haskell-monad-control" "haskell-monad-logger" "haskell-mtl" "haskell-network"
- "haskell-optparse-applicative" "haskell-parallel" "haskell-parsec"
- "haskell-pattern-arrows" "haskell-pipes" "haskell-pipes-http" "haskell-protolude"
- "haskell-regex-tdfa" "haskell-safe" "haskell-semigroups" "haskell-sourcemap"
- "haskell-spdx" "haskell-split" "haskell-stm" "haskell-stringsearch" "haskell-syb"
- "haskell-text" "haskell-transformers-base" "haskell-transformers-compat"
- "haskell-unordered-containers" "haskell-utf8-string" "haskell-vector" "haskell-wai"
- "haskell-wai-websockets" "haskell-warp" "haskell-websockets")
+depends=("ghc" "haskell-aeson" "haskell-aeson-better-errors" "haskell-aeson-pretty"
+ "haskell-ansi-terminal" "haskell-ansi-wl-pprint" "haskell-base-compat" "haskell-blaze-html"
+ "haskell-bower-json" "haskell-boxes" "haskell-cheapskate" "haskell-clock"
+ "haskell-data-ordlist" "haskell-dlist" "haskell-edit-distance" "haskell-file-embed"
+ "haskell-fsnotify" "haskell-glob" "haskell-http-client" "haskell-http-types"
+ "haskell-language-javascript" "haskell-lens" "haskell-lifted-base" "haskell-monad-control"
+ "haskell-monad-logger" "haskell-mtl" "haskell-network" "haskell-optparse-applicative"
+ "haskell-parallel" "haskell-parsec" "haskell-pattern-arrows" "haskell-pipes"
+ "haskell-pipes-http" "haskell-protolude" "haskell-regex-tdfa" "haskell-safe"
+ "haskell-semigroups" "haskell-sourcemap" "haskell-spdx" "haskell-split" "haskell-stm"
+ "haskell-stringsearch" "haskell-syb" "haskell-text" "haskell-transformers-base"
+ "haskell-transformers-compat" "haskell-unordered-containers" "haskell-utf8-string"
+ "haskell-vector" "haskell-wai" "haskell-wai-websockets" "haskell-warp"
+ "haskell-websockets")
optdepends=('pulp: for development environment')
source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('179b8ce5ac4b3839189f9eeb6244b86635dd20986654b7d1d0912c429bfabb77439097b43d73ec52f52bf24148781a0059c1afe6ccfb44b83533f4a670a3476c')
@@ -35,15 +34,29 @@
build() {
cd "${srcdir}/${pkgname}-${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/${pkgbase}" --datasubdir="$pkgbase" \
--libsubdir=\$compiler/site-local/\$pkgid \
-frelease
LC_CTYPE=en_US.UTF-8 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
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
package() {
cd "${srcdir}/${pkgname}-${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/${pkgname}"
runhaskell Setup copy --destdir="${pkgdir}"
- rm -r "$pkgdir"/usr/{lib,share}
+ 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