Date: Saturday, August 15, 2020 @ 21:11:12 Author: felixonmars Revision: 680043
archrelease: copy trunk to community-staging-x86_64 Added: haskell-megaparsec/repos/community-staging-x86_64/ haskell-megaparsec/repos/community-staging-x86_64/PKGBUILD (from rev 680042, haskell-megaparsec/trunk/PKGBUILD) ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Copied: haskell-megaparsec/repos/community-staging-x86_64/PKGBUILD (from rev 680042, haskell-megaparsec/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-08-15 21:11:12 UTC (rev 680043) @@ -0,0 +1,40 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=megaparsec +pkgname=haskell-megaparsec +pkgver=8.0.0 +pkgrel=13 +pkgdesc="Monadic parser combinators" +url="https://github.com/mrkkrp/megaparsec" +license=("custom:BSD2") +arch=('x86_64') +depends=('ghc-libs' 'haskell-case-insensitive' 'haskell-parser-combinators' + 'haskell-scientific') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('ab550a99548da2739a70cc4bdb3313085b3179c58d19a84d30744d89fe2d7556b9b552d4ad7b177b18f9f5821daa5417c2b9267eadd9eb537132666c151513c3') + +build() { + cd $_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 \ + -f-dev + 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" + install -D -m644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE.md +}