Date: Tuesday, September 6, 2022 @ 20:41:11 Author: felixonmars Revision: 1294993
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 1294992, cabal-install/trunk/PKGBUILD) ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Copied: cabal-install/repos/community-staging-x86_64/PKGBUILD (from rev 1294992, cabal-install/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-09-06 20:41:11 UTC (rev 1294993) @@ -0,0 +1,43 @@ +# 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=3.4.1.0 +pkgrel=30 +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-uri' 'haskell-random' 'haskell-regex-base' + 'haskell-regex-posix' 'haskell-resolv' 'haskell-tar' 'haskell-zlib' 'haskell-lukko') +makedepends=('ghc' 'uusi') +source=("https://hackage.haskell.org/package/cabal-install-${pkgver}/cabal-install-${pkgver}.tar.gz") +sha512sums=('e8a47dc15d65d0da2886c1d936a10648f58b0f29e36c5cc49936e7f5e9d77780956b79432b75717186c2374bdb7251a47801e0478edc481c154d5e5d0d1a70db') + +prepare() { + cd $pkgname-$pkgver + uusi -u base -u hashable -u HTTP $pkgname.cabal +} + +build() { + cd $pkgname-$pkgver + + runhaskell Setup configure -O --prefix=/usr --enable-executable-dynamic --disable-library-vanilla \ + --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname + runhaskell Setup build $MAKEFLAGS +} + +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" +}