Date: Friday, February 17, 2023 @ 11:20:47 Author: felixonmars Revision: 1401810
archrelease: copy trunk to community-staging-x86_64 Added: haskell-pcre-heavy/repos/community-staging-x86_64/ haskell-pcre-heavy/repos/community-staging-x86_64/PKGBUILD (from rev 1401809, haskell-pcre-heavy/trunk/PKGBUILD) ----------+ PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) Copied: haskell-pcre-heavy/repos/community-staging-x86_64/PKGBUILD (from rev 1401809, haskell-pcre-heavy/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2023-02-17 11:20:47 UTC (rev 1401810) @@ -0,0 +1,48 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=pcre-heavy +pkgname=haskell-pcre-heavy +pkgver=1.0.0.3 +pkgrel=13 +pkgdesc="A regexp (regex) library on top of pcre-light you can actually use" +url="https://codeberg.org/valpackett/pcre-heavy" +license=("custom:PublicDomain") +arch=('x86_64') +depends=('ghc-libs' 'haskell-base-compat' 'haskell-pcre-light' 'haskell-string-conversions') +makedepends=('ghc' 'uusi' 'haskell-glob' 'haskell-doctest') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('5fc2f1b6e634e501927551edccbaf3fa2b3f76e4c1d491f0912d8371e5a13cd964317383d5cd274d3b64ca5976f5e2783968caadb67f3a9da3910398cd80f5a6') + +prepare() { + cd $_hkgname-$pkgver + uusi -d semigroups $_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 --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 "UNLICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/UNLICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/UNLICENSE" +}