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

Felix Yan felixonmars at archlinux.org
Fri Dec 18 01:00:11 UTC 2020


    Date: Friday, December 18, 2020 @ 01:00:10
  Author: felixonmars
Revision: 778368

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

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

Copied: haskell-skylighting/repos/community-staging-x86_64/PKGBUILD (from rev 778367, haskell-skylighting/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-12-18 01:00:10 UTC (rev 778368)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=skylighting
+pkgname=haskell-skylighting
+pkgver=0.10.0.1
+pkgrel=9
+pkgdesc="Syntax highlighting library"
+url="https://github.com/jgm/skylighting"
+license=('GPL2')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-skylighting-core')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('45168294009a3f62c57fd4bc20c6cd6020b46c79863cd7fa5de9f6d5229edf0a2f85ebbdcc256add94cf78154f16c9bad18f1dd5ff4306861926a90e850e2859')
+
+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-executable
+    runhaskell Setup build $MAKEFLAGS
+    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