Date: Saturday, January 9, 2021 @ 11:15:41 Author: felixonmars Revision: 815423
archrelease: copy trunk to community-staging-x86_64 Added: dhall-bash/repos/community-staging-x86_64/ dhall-bash/repos/community-staging-x86_64/PKGBUILD (from rev 815422, dhall-bash/trunk/PKGBUILD) ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Copied: dhall-bash/repos/community-staging-x86_64/PKGBUILD (from rev 815422, dhall-bash/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-01-09 11:15:41 UTC (rev 815423) @@ -0,0 +1,41 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=dhall-bash +pkgver=1.0.35 +pkgrel=33 +pkgdesc='Compile Dhall to Bash' +url='https://dhall-lang.org' +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'dhall' 'haskell-neat-interpolation' 'haskell-shell-escape' + 'haskell-optparse-generic') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('7d118b1051c209a5e838b8b3af5f0f1c0fe2982c829592a7be881d919b6cffb6ca361fbef7a0384499e03569cdd36ade7ee6749fa8ce120100d106cb1ad61650') + +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 $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 +} + +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 +}