Date: Friday, June 10, 2022 @ 17:25:14 Author: felixonmars Revision: 1230919
archrelease: copy trunk to community-staging-x86_64 Added: haskell-text-icu/repos/community-staging-x86_64/ haskell-text-icu/repos/community-staging-x86_64/PKGBUILD (from rev 1230918, haskell-text-icu/trunk/PKGBUILD) ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Copied: haskell-text-icu/repos/community-staging-x86_64/PKGBUILD (from rev 1230918, haskell-text-icu/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-06-10 17:25:14 UTC (rev 1230919) @@ -0,0 +1,44 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=text-icu +pkgname=haskell-text-icu +pkgver=0.8.0.1 +pkgrel=19 +pkgdesc="Bindings to the ICU library" +url="https://github.com/haskell/text-icu" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'icu') +makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-random' 'haskell-test-framework' + 'haskell-test-framework-hunit' 'haskell-test-framework-quickcheck2') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('f1d9cb88e7899c2d91c86098249ef92b12778acdf361826dc66902c7c8aa5c6cd295683963a3af1244a93d5cfcae6e56b807e9d0f7c2b3eb3aced971680dee06') + +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 +}