Date: Thursday, June 15, 2017 @ 19:32:18 Author: felixonmars Revision: 237386
archrelease: copy trunk to community-staging-x86_64, community-staging-i686 Added: haskell-regex-compat/repos/community-staging-i686/ haskell-regex-compat/repos/community-staging-i686/PKGBUILD (from rev 237385, haskell-regex-compat/trunk/PKGBUILD) haskell-regex-compat/repos/community-staging-x86_64/ haskell-regex-compat/repos/community-staging-x86_64/PKGBUILD (from rev 237385, haskell-regex-compat/trunk/PKGBUILD) -----------------------------------+ community-staging-i686/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++ community-staging-x86_64/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) Copied: haskell-regex-compat/repos/community-staging-i686/PKGBUILD (from rev 237385, haskell-regex-compat/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2017-06-15 19:32:18 UTC (rev 237386) @@ -0,0 +1,45 @@ +# $Id$ +# Maintainer: Alexander F Rødseth <xypr...@archlinux.org> +# Contributor: Vesa Kaihlavirta <v...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=regex-compat +pkgname=haskell-regex-compat +pkgver=0.95.1 +pkgrel=7 +pkgdesc='Replaces and enhances Text.Regex' +url="https://hackage.haskell.org/package/${_hkgname}" +license=('custom:BSD3') +arch=('x86_64' 'i686') +depends=('ghc' 'haskell-regex-base' 'haskell-regex-posix') +source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz") +sha256sums=('d57cb1a5a4d66753b18eaa37a1621246f660472243b001894f970037548d953b') + +build() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup haddock --hoogle --html + 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 "${srcdir}/${_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" + install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries" + ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}" + runhaskell Setup copy --destdir="${pkgdir}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" + + # Remove static libs + find "$pkgdir"/usr/lib -name "*.a" -delete +} Copied: haskell-regex-compat/repos/community-staging-x86_64/PKGBUILD (from rev 237385, haskell-regex-compat/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-06-15 19:32:18 UTC (rev 237386) @@ -0,0 +1,45 @@ +# $Id$ +# Maintainer: Alexander F Rødseth <xypr...@archlinux.org> +# Contributor: Vesa Kaihlavirta <v...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=regex-compat +pkgname=haskell-regex-compat +pkgver=0.95.1 +pkgrel=7 +pkgdesc='Replaces and enhances Text.Regex' +url="https://hackage.haskell.org/package/${_hkgname}" +license=('custom:BSD3') +arch=('x86_64' 'i686') +depends=('ghc' 'haskell-regex-base' 'haskell-regex-posix') +source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz") +sha256sums=('d57cb1a5a4d66753b18eaa37a1621246f660472243b001894f970037548d953b') + +build() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup haddock --hoogle --html + 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 "${srcdir}/${_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" + install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries" + ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}" + runhaskell Setup copy --destdir="${pkgdir}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" + + # Remove static libs + find "$pkgdir"/usr/lib -name "*.a" -delete +}