Date: Tuesday, March 23, 2021 @ 10:20:44 Author: felixonmars Revision: 900246
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 900245, haskell-skylighting/trunk/PKGBUILD) ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Copied: haskell-skylighting/repos/community-staging-x86_64/PKGBUILD (from rev 900245, haskell-skylighting/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-03-23 10:20:44 UTC (rev 900246) @@ -0,0 +1,37 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=skylighting +pkgname=haskell-skylighting +pkgver=0.10.4.1 +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=('197761af114278780b8c8e577038c985e8989478143dcbc968f9558163c37f25e63a8b6907b017cbfb80c62a62699e1fab9b7c78d60e9b9c051f006330dd2a79') + +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 +}