[arch-commits] Commit in haskell-haddock-library/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Dec 29 00:00:22 UTC 2017
Date: Friday, December 29, 2017 @ 00:00:22
Author: felixonmars
Revision: 276656
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 276655, haskell-haddock-library/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: haskell-haddock-library/repos/community-staging-x86_64/PKGBUILD (from rev 276655, haskell-haddock-library/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-12-29 00:00:22 UTC (rev 276656)
@@ -0,0 +1,37 @@
+# $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=5
+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')
+
+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