Date: Sunday, March 1, 2020 @ 09:58:36 Author: felixonmars Revision: 587404
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 587403, haskell-megaparsec/trunk/PKGBUILD) ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Copied: haskell-megaparsec/repos/community-staging-x86_64/PKGBUILD (from rev 587403, haskell-megaparsec/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-03-01 09:58:36 UTC (rev 587404) @@ -0,0 +1,40 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=megaparsec +pkgname=haskell-megaparsec +pkgver=7.0.5 +pkgrel=9 +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=('a804025b0f069f56856c4cbcf8f3c2b9852087e9c93875fb93fd0fb131a2a7ffe381f0b6d1a8743a8993331c29fb8e0168e178bf9ef688ee0e18a370183cd388') + +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 + 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 +}