Date: Wednesday, January 23, 2019 @ 19:46:52 Author: felixonmars Revision: 427336
archrelease: copy trunk to community-staging-x86_64 Added: cabal-install/repos/community-staging-x86_64/ cabal-install/repos/community-staging-x86_64/PKGBUILD (from rev 427335, cabal-install/trunk/PKGBUILD) ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Copied: cabal-install/repos/community-staging-x86_64/PKGBUILD (from rev 427335, cabal-install/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-01-23 19:46:52 UTC (rev 427336) @@ -0,0 +1,38 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Thomas Dziedzic <gos...@gmail.com> +# Contributor: Vesa Kaihlavirta <v...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=cabal-install +pkgver=2.4.0.0 +pkgrel=36 +pkgdesc="The command-line interface for Cabal and Hackage." +url="https://hackage.haskell.org/package/cabal-install" +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-async' 'haskell-base16-bytestring' 'haskell-cryptohash-sha256' + 'haskell-echo' 'haskell-edit-distance' 'haskell-hackage-security' 'haskell-hashable' + 'haskell-http' 'haskell-network' 'haskell-network-uri' 'haskell-random' 'haskell-resolv' + 'haskell-tar' 'haskell-zlib' 'haskell-zip-archive') +makedepends=('ghc') +source=("https://hackage.haskell.org/package/cabal-install-${pkgver}/cabal-install-${pkgver}.tar.gz") +sha512sums=('caf49ec35d5665164b76db3a6219c0409243fb80fd7a740a91933732fbb26fc3efef88ddc3d769a76d0f76811ea83a6a7effdab5ad8264da808d4469c9faf125') + +build() { + cd $pkgname-$pkgver + + runhaskell Setup configure -O --prefix=/usr --enable-executable-dynamic --disable-library-vanilla \ + --docdir="/usr/share/doc/${pkgname}" + runhaskell Setup build +} + +package() { + cd $pkgname-$pkgver + runhaskell Setup copy --destdir="${pkgdir}" + + install -Dm644 LICENSE \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + install -Dm644 bash-completion/cabal \ + "${pkgdir}/usr/share/bash-completion/completions/cabal" +}