[arch-commits] Commit in haskell-haddock-library/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu May 17 10:40:36 UTC 2018
Date: Thursday, May 17, 2018 @ 10:40:35
Author: felixonmars
Revision: 323641
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-haddock-library/repos/community-staging-x86_64/
haskell-haddock-library/repos/community-staging-x86_64/PKGBUILD
(from rev 323640, haskell-haddock-library/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: haskell-haddock-library/repos/community-staging-x86_64/PKGBUILD (from rev 323640, haskell-haddock-library/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-17 10:40:35 UTC (rev 323641)
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 124882 2014-12-29 22:07:40Z spupykin $
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+
+pkgname=haskell-haddock-library
+pkgver=1.4.5
+pkgrel=8
+pkgdesc="A documentation-generation tool for Haskell libraries"
+url="https://www.haskell.org/haddock/"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/haddock-library/${pkgver}/haddock-library-${pkgver}.tar.gz")
+sha512sums=('5ba3152996d64bf4a41e3c791e8a657b8a9353ddde7ebdee5e2c60a4a4498cba9e0105ecb98107769a68cdc55109bd6087acdf124577c5b3dab2d3e24c0f40c9')
+
+prepare() {
+ cd haddock-library-$pkgver
+ sed -i 's/<.*4.11/<5/' haddock-library.cabal
+}
+
+build() {
+ cd "${srcdir}/haddock-library-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+ runhaskell Setup build
+ 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}/haddock-library-${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"
+ 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