Date: Sunday, June 18, 2017 @ 16:15:58 Author: felixonmars Revision: 238082
upgpkg: darcs 2.12.5-43 rebuild with ghc,8.0.2 Modified: darcs/trunk/PKGBUILD ----------+ PKGBUILD | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-06-18 15:46:01 UTC (rev 238081) +++ PKGBUILD 2017-06-18 16:15:58 UTC (rev 238082) @@ -4,20 +4,18 @@ pkgname=darcs pkgver=2.12.5 -pkgrel=42 +pkgrel=43 pkgdesc="A distributed, interactive, smart revision control system" url="http://darcs.net" license=("GPL") arch=('i686' 'x86_64') -depends=('curl') -makedepends=("ghc=8.0.1" "haskell-async" "haskell-attoparsec" "haskell-base16-bytestring" - "haskell-cryptohash" "haskell-data-ordlist" "haskell-fgl" "haskell-graphviz" - "haskell-hashable" "haskell-html" "haskell-http" "haskell-mmap" "haskell-mtl" - "haskell-network" "haskell-network-uri" "haskell-old-time" "haskell-parsec" - "haskell-sandi" "haskell-random" "haskell-regex-applicative" - "haskell-regex-compat-tdfa" "haskell-tar" "haskell-text" - "haskell-transformers-compat" "haskell-unix-compat" "haskell-utf8-string" - "haskell-vector" "haskell-zip-archive" "haskell-zlib") +depends=('curl' "ghc" "haskell-async" "haskell-attoparsec" "haskell-base16-bytestring" + "haskell-cryptohash" "haskell-data-ordlist" "haskell-fgl" "haskell-graphviz" + "haskell-hashable" "haskell-html" "haskell-http" "haskell-mmap" "haskell-mtl" + "haskell-network" "haskell-network-uri" "haskell-old-time" "haskell-parsec" "haskell-sandi" + "haskell-random" "haskell-regex-applicative" "haskell-regex-compat-tdfa" "haskell-tar" + "haskell-text" "haskell-transformers-compat" "haskell-unix-compat" "haskell-utf8-string" + "haskell-vector" "haskell-zip-archive" "haskell-zlib") source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") sha256sums=('355b04c85c27bca43c8c380212988d9c1e9a984b0b593ceb2884de4295063553') @@ -24,17 +22,28 @@ build() { cd "${srcdir}/${pkgname}-${pkgver}" - runhaskell Setup configure -O --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --libsubdir=\$compiler/site-local/\$pkgid \ -fcurl -fpkgconfig -f-static -fterminfo -fthreaded -fexecutable \ -f-rts -foptimize -f-warn-as-error -f-libiconv -fnetwork-uri 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/${_hkgname}" runhaskell Setup copy --destdir="${pkgdir}" - # Remove library and doc (license only) - rm -r "$pkgdir"/usr/{lib,share/doc} + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" chmod 644 "${pkgdir}/usr/share/man/man1/darcs.1" install -Dm644 contrib/darcs_completion "${pkgdir}/usr/share/bash-completion/completions/darcs"
