Date: Tuesday, August 9, 2022 @ 17:20:45 Author: felixonmars Revision: 1264139
archrelease: copy trunk to community-staging-x86_64 Added: haskell-lens-action/repos/community-staging-x86_64/ haskell-lens-action/repos/community-staging-x86_64/PKGBUILD (from rev 1264138, haskell-lens-action/trunk/PKGBUILD) ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Copied: haskell-lens-action/repos/community-staging-x86_64/PKGBUILD (from rev 1264138, haskell-lens-action/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-08-09 17:20:45 UTC (rev 1264139) @@ -0,0 +1,43 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=lens-action +pkgname=haskell-lens-action +pkgver=0.2.6 +pkgrel=70 +pkgdesc="Monadic Getters and Folds" +url="https://github.com/ekmett/lens-action" +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-comonad' 'haskell-contravariant' 'haskell-lens' + 'haskell-profunctors' 'haskell-semigroupoids') +makedepends=('ghc') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('44f0639063db6ec80dd2cee274b0fe9135330ee12a007329d419cfe1522738169e0915b32250a340621d4084b4dd2c54a84465e24f4ebd943d6bda59b5d380da') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm + 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 --show-details=direct +} + +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 +}