Date: Sunday, March 20, 2022 @ 18:44:32 Author: felixonmars Revision: 1164842
archrelease: copy trunk to community-staging-x86_64 Added: haskell-pointed/repos/community-staging-x86_64/ haskell-pointed/repos/community-staging-x86_64/PKGBUILD (from rev 1164841, haskell-pointed/trunk/PKGBUILD) ----------+ PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) Copied: haskell-pointed/repos/community-staging-x86_64/PKGBUILD (from rev 1164841, haskell-pointed/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-03-20 18:44:32 UTC (rev 1164842) @@ -0,0 +1,47 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=pointed +pkgname=haskell-pointed +pkgver=5.0.3 +pkgrel=36 +pkgdesc="Pointed and copointed data" +url="https://github.com/ekmett/pointed/" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-comonad' 'haskell-data-default-class' 'haskell-hashable' + 'haskell-kan-extensions' 'haskell-semigroupoids' 'haskell-tagged' + 'haskell-transformers-compat' 'haskell-unordered-containers') +makedepends=('ghc' 'uusi') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('e68375506d08002c5f0a76c24a40bdc7b28fea0e447f213c441bc22571846c3685a4833f19e224406f975236fd0bbaacecf6ea0ec1ec056254863f2b65aecbaa') + +prepare() { + cd $_hkgname-$pkgver + uusi -d semigroups -u hashable $_hkgname.cabal +} + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \ + -fcomonad -fcontainers -fkan-extensions -fsemigroupoids -fsemigroups \ + -fstm -ftagged -ftransformers -funordered-containers + 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 +} + +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 +}