[arch-commits] Commit in haskell-graphviz/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Feb 5 16:30:25 UTC 2018
Date: Monday, February 5, 2018 @ 16:30:24
Author: felixonmars
Revision: 289243
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-graphviz/repos/community-staging-x86_64/
haskell-graphviz/repos/community-staging-x86_64/PKGBUILD
(from rev 289242, haskell-graphviz/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: haskell-graphviz/repos/community-staging-x86_64/PKGBUILD (from rev 289242, haskell-graphviz/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-02-05 16:30:24 UTC (rev 289243)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=graphviz
+pkgname=haskell-graphviz
+pkgver=2999.19.0.0
+pkgrel=8
+pkgdesc="Bindings to Graphviz for graph visualisation."
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-colour" "haskell-dlist" "haskell-fgl" "haskell-polyparse"
+ "haskell-temporary" "haskell-text" "haskell-wl-pprint-text")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('0b49c197ce048f49e7db780168cda6026fec52bde1edd81f8fa41b15a1c89e9b2af2a99cf7892f8b81718d31bd21d207c4b3826cd9e24d29363beb97db99229c')
+
+build() {
+ cd "${srcdir}/${_hkgname}-${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 \
+ -f-test-parsing
+ 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}/${_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.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}
More information about the arch-commits
mailing list