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

Felix Yan felixonmars at archlinux.org
Sun Nov 19 03:15:16 UTC 2017


    Date: Sunday, November 19, 2017 @ 03:15:15
  Author: felixonmars
Revision: 267395

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-hscolour/repos/community-staging-x86_64/
  haskell-hscolour/repos/community-staging-x86_64/PKGBUILD
    (from rev 267394, haskell-hscolour/trunk/PKGBUILD)

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

Copied: haskell-hscolour/repos/community-staging-x86_64/PKGBUILD (from rev 267394, haskell-hscolour/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-11-19 03:15:15 UTC (rev 267395)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=hscolour
+pkgname=haskell-hscolour
+pkgver=1.24.2
+pkgrel=1
+pkgdesc="Colourise Haskell code."
+url="http://code.haskell.org/~malcolm/hscolour/"
+license=("LGPL")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('7dcc8e679ea8729fa8bc6bccb8d4a9e137f38a47ceac884c7173b088e1e52cf72d072fb9d7be54cca1e366212e86d7133875ef7b76af3ae1db812755280642b6')
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$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}/${_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}"
+}


More information about the arch-commits mailing list