Date: Saturday, January 9, 2021 @ 04:50:02 Author: felixonmars Revision: 814786
archrelease: copy trunk to community-staging-x86_64 Added: haskell-wl-pprint-annotated/repos/community-staging-x86_64/ haskell-wl-pprint-annotated/repos/community-staging-x86_64/PKGBUILD (from rev 814785, haskell-wl-pprint-annotated/trunk/PKGBUILD) ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Copied: haskell-wl-pprint-annotated/repos/community-staging-x86_64/PKGBUILD (from rev 814785, haskell-wl-pprint-annotated/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-01-09 04:50:02 UTC (rev 814786) @@ -0,0 +1,43 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=wl-pprint-annotated +pkgname=haskell-wl-pprint-annotated +pkgver=0.1.0.1 +pkgrel=92 +pkgdesc="Pretty printer with annotation support" +url="https://github.com/minad/wl-pprint-annotated" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs') +makedepends=('ghc' 'haskell-tasty' 'haskell-tasty-hunit') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('45f1881254f8b20d9992a477a36a7408d2df8d94f99c71d72d75cd04aee3831966886c94b6e6a68791acda24aec8c4a339d052b9a188af8c2ca24e74da1e9596') + +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 + 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 $_hkgname-$pkgver + runhaskell Setup test +} + +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 "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +}