Date: Friday, March 3, 2023 @ 02:10:28 Author: felixonmars Revision: 1409137
archrelease: copy trunk to community-staging-x86_64 Added: haskell-config-ini/repos/community-staging-x86_64/ haskell-config-ini/repos/community-staging-x86_64/PKGBUILD (from rev 1409136, haskell-config-ini/trunk/PKGBUILD) ----------+ PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) Copied: haskell-config-ini/repos/community-staging-x86_64/PKGBUILD (from rev 1409136, haskell-config-ini/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2023-03-03 02:10:28 UTC (rev 1409137) @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=config-ini +pkgname=haskell-config-ini +pkgver=0.2.5.0 +pkgrel=27 +pkgdesc="A library for simple INI-based configuration files." +url="https://github.com/aisamanra/config-ini" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-unordered-containers' 'haskell-megaparsec') +makedepends=('ghc' 'uusi' 'haskell-ini' 'haskell-hedgehog' 'haskell-doctest' 'haskell-microlens') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('3b090084c1e851ab926259646881caf6b89353bac212741195863c570d0be68e7482d2b467c9e4ce28b138da466eee435a916913d449bf442cbd67f33614c713') + +prepare() { + cd $_hkgname-$pkgver + gen-setup +} + +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 \ + +# https://github.com/aisamanra/config-ini/issues/38 +# -fenable-doctests + 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 +}