Date: Monday, February 8, 2021 @ 02:11:10 Author: felixonmars Revision: 848728
archrelease: copy trunk to community-staging-x86_64 Added: haskell-regex-applicative/repos/community-staging-x86_64/ haskell-regex-applicative/repos/community-staging-x86_64/PKGBUILD (from rev 848727, haskell-regex-applicative/trunk/PKGBUILD) ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Copied: haskell-regex-applicative/repos/community-staging-x86_64/PKGBUILD (from rev 848727, haskell-regex-applicative/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-02-08 02:11:10 UTC (rev 848728) @@ -0,0 +1,38 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=regex-applicative +pkgname=haskell-regex-applicative +pkgver=0.3.4 +pkgrel=56 +pkgdesc="Regex-based parsing with applicative interface" +url="https://github.com/feuerbach/regex-applicative" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' 'haskell-filtrable') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('84f32da62b336c7e8bd67ebfffdf0f13f98a39434efa5dd32d389a5db1fdaaeece462ecec7bc5d3c5b49e82acd7c4c4b0d8a5c552bb275c16c254bd3f5336470') + +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 + 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 +}