Date: Thursday, March 28, 2019 @ 06:52:39 Author: felixonmars Revision: 445193
archrelease: copy trunk to community-staging-x86_64 Added: haskell-rebase/repos/community-staging-x86_64/ haskell-rebase/repos/community-staging-x86_64/PKGBUILD (from rev 445192, haskell-rebase/trunk/PKGBUILD) ----------+ PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) Copied: haskell-rebase/repos/community-staging-x86_64/PKGBUILD (from rev 445192, haskell-rebase/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-03-28 06:52:39 UTC (rev 445193) @@ -0,0 +1,47 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=rebase +pkgname=haskell-rebase +pkgver=1.3 +pkgrel=20 +pkgdesc='A more progressive alternative to the "base" package' +url="https://github.com/nikita-volkov/rebase" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' 'haskell-hashable' 'haskell-vector' 'haskell-unordered-containers' + 'haskell-scientific' 'haskell-uuid' 'haskell-dlist' 'haskell-void' + 'haskell-bifunctors' 'haskell-profunctors' 'haskell-contravariant' + 'haskell-contravariant-extras' 'haskell-semigroupoids' 'haskell-either' + 'haskell-base-prelude') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('c9d09bd5620667a50e1ae5187583e06820d08d995f4d3f6b510637aec5faf025ae1e7fd6c9d3377a3b2b6ac09ab1f34fc21f9e8ef3457bec993fa9399b281435') + +prepare() { + cd $_hkgname-$pkgver + sed -e '/fail/d' -e '/semigroups/d' -e 's/< *0.6/<1/' -i $_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 \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + 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" +}