Date: Sunday, May 3, 2020 @ 08:06:48 Author: felixonmars Revision: 624577
archrelease: copy trunk to community-staging-x86_64 Added: dhall-json/repos/community-staging-x86_64/ dhall-json/repos/community-staging-x86_64/PKGBUILD (from rev 624576, dhall-json/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: dhall-json/repos/community-staging-x86_64/PKGBUILD (from rev 624576, dhall-json/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-05-03 08:06:48 UTC (rev 624577) @@ -0,0 +1,42 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=dhall-json +pkgver=1.6.3 +pkgrel=23 +pkgdesc='Convert between Dhall and JSON or YAML' +url='https://dhall-lang.org' +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-aeson' 'haskell-aeson-pretty' 'haskell-aeson-yaml' 'dhall' + 'haskell-optparse-applicative' 'haskell-prettyprinter' + 'haskell-scientific' 'haskell-unordered-containers' 'haskell-prettyprinter-ansi-terminal') +makedepends=('ghc' 'haskell-tasty' 'haskell-tasty-hunit') +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('4aa9e7c1b214cad450fa2aa39553ec0e6e7a0f23d5e96f26fc639d41677643d4628106b15670452db1f2366a555f47663f703356017a9affd7e856f2684c69c4') + +build() { + cd $pkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --datasubdir="$pkgname" --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid + 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 +} + +check() { + cd $pkgname-$pkgver + runhaskell Setup test +} + +package() { + cd $pkgname-$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 "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +}