Date: Thursday, September 6, 2018 @ 08:51:46 Author: felixonmars Revision: 377418
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 377417, haskell-skylighting/trunk/PKGBUILD) ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Copied: haskell-skylighting/repos/community-staging-x86_64/PKGBUILD (from rev 377417, haskell-skylighting/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-09-06 08:51:46 UTC (rev 377418) @@ -0,0 +1,41 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=skylighting +pkgname=haskell-skylighting +pkgver=0.7.3 +pkgrel=2 +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=('4ba4cb1c78c1bd0477e46e4063717ea730fec33f5aa28376a81840628f48eeb9a412d4da615f1e74f4a9e0afa37828bdcbd71e1b2fe12236af53fb477df361de') + +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" +}