[arch-commits] Commit in haskell-skylighting/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Dec 25 13:13:45 UTC 2019
Date: Wednesday, December 25, 2019 @ 13:13:44
Author: felixonmars
Revision: 540986
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 540985, haskell-skylighting/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: haskell-skylighting/repos/community-staging-x86_64/PKGBUILD (from rev 540985, haskell-skylighting/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-12-25 13:13:44 UTC (rev 540986)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=skylighting
+pkgname=haskell-skylighting
+pkgver=0.8.3
+pkgrel=4
+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=('20d69de363f17270d7f31843eb10f80a20d23e33c26e82ffc25c597d73edd886d9f2a03acf7d354be932ef443dc4e6a828362996ec8ac2a4ec8590ff7d199397')
+
+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
+ 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