[arch-commits] Commit in haskell-haddock-library/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Aug 26 15:35:32 UTC 2018
Date: Sunday, August 26, 2018 @ 15:35:32
Author: felixonmars
Revision: 374378
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 374377, haskell-haddock-library/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: haskell-haddock-library/repos/community-staging-x86_64/PKGBUILD (from rev 374377, haskell-haddock-library/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-08-26 15:35:32 UTC (rev 374378)
@@ -0,0 +1,50 @@
+# $Id: PKGBUILD 124882 2014-12-29 22:07:40Z spupykin $
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+
+_hkgname=haddock-library
+pkgname=haskell-haddock-library
+pkgver=1.6.0
+pkgrel=7
+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' 'haskell-base-compat' 'haskell-hspec' 'haskell-hspec-discover'
+ 'haskell-quickcheck' 'haskell-optparse-applicative' 'haskell-tree-diff')
+source=("https://hackage.haskell.org/packages/archive/haddock-library/${pkgver}/haddock-library-${pkgver}.tar.gz")
+sha512sums=('e24906db32b740da99b048127e166ce57c0fd7bb14d8d6f34f4b94d8583387aa11b5cb6a734eddc91602037612b0fd725c95d2d37aca539c1be8dfd70d6e8a73')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -i 's/\^>=/>=/' $_hkgname.cabal
+}
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
+ --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
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ # TODO: doesn't look like my fault :/
+ runhaskell Setup test || warning "Tests failed"
+}
+
+package() {
+ cd $_hkgname-$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