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

Felix Yan felixonmars at archlinux.org
Mon Jun 18 06:41:24 UTC 2018


    Date: Monday, June 18, 2018 @ 06:41:23
  Author: felixonmars
Revision: 343603

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-skylighting/repos/community-staging-x86_64/PKGBUILD (from rev 343602, haskell-skylighting/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-18 06:41:23 UTC (rev 343603)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=skylighting
+pkgname=haskell-skylighting
+pkgver=0.7.2
+pkgrel=4
+pkgdesc="Syntax highlighting library"
+url="https://github.com/jgm/skylighting"
+license=('GPL2')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-ansi-terminal' 'haskell-attoparsec'
+         'haskell-base64-bytestring' 'haskell-blaze-html' 'haskell-case-insensitive'
+         'haskell-colour' 'haskell-hxt' 'haskell-pretty-show' 'haskell-regex-pcre'
+         'haskell-safe' 'haskell-skylighting-core' 'haskell-utf8-string')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('cf4898dc52a0156a780b114d2d9a12665cb5e5b052ceb0e0316a6dadb501502c483b82ef3a3d718d7fd6e628ae003b551b6ded583fc7c5bedc11472710a5d7c4')
+
+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 \
+            -fsystem-pcre -fexecutable
+    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}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list