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

Felix Yan felixonmars at archlinux.org
Sat Dec 30 06:41:52 UTC 2017


    Date: Saturday, December 30, 2017 @ 06:41:51
  Author: felixonmars
Revision: 276939

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 276938, haskell-skylighting/trunk/PKGBUILD)

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

Copied: haskell-skylighting/repos/community-staging-x86_64/PKGBUILD (from rev 276938, haskell-skylighting/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-12-30 06:41:51 UTC (rev 276939)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=skylighting
+pkgname=haskell-skylighting
+pkgver=0.5.0.1
+pkgrel=2
+pkgdesc="Syntax highlighting library"
+url="https://github.com/jgm/skylighting"
+license=('GPL2')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-base64-bytestring'
+         'haskell-blaze-html' 'haskell-case-insensitive' 'haskell-hxt' 'haskell-mtl'
+         'haskell-pretty-show' 'haskell-regex-pcre' 'haskell-safe' 'haskell-text'
+         'haskell-utf8-string')
+makedepends=('ghc' 'haskell-hunit' 'haskell-tasty' 'haskell-tasty-golden' 'haskell-tasty-hunit'
+             'haskell-random' 'haskell-diff')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('74873d26fc29417b7f932753cf845f5a99c4f315170dcfd4bd79ef0b379e58894aba81b4385a351c1a290b0d3ad38db1ede0f40dfa2d24221af8d585ac6cafee')
+
+build() {
+    cd "${srcdir}/${_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 \
+            -fsystem-pcre
+    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
+    runhaskell Setup test
+}
+
+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}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list