[arch-commits] Commit in haskell-graphviz/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Nov 6 23:35:10 UTC 2018


    Date: Tuesday, November 6, 2018 @ 23:35:09
  Author: felixonmars
Revision: 402474

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 402473, haskell-graphviz/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: haskell-graphviz/repos/community-staging-x86_64/PKGBUILD (from rev 402473, haskell-graphviz/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-06 23:35:09 UTC (rev 402474)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=graphviz
+pkgname=haskell-graphviz
+pkgver=2999.20.0.2
+pkgrel=19
+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-wl-pprint-text')
+makedepends=('ghc')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ivan-m/graphviz/archive/$pkgver.tar.gz")
+sha512sums=('97430a8f19f5c56886520db0bb865b0d45a4dc99b8db61b3262f1fb22ec7635548ab8987eddcf629a07541160b19a3f8a3b299aa6649d9b3a9b0c60f21a45909')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i '1i{-# language NoMonadFailDesugaring #-}' Data/GraphViz/Attributes/Colors.hs
+}
+
+build() {
+    cd $_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 $_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