mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
Imported cabal-install
This commit is contained in:
parent
77419b2cba
commit
dd03fdb85f
39
cabal-install/PKGBUILD
Normal file
39
cabal-install/PKGBUILD
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
|
||||||
|
|
||||||
|
pkgname=cabal-install
|
||||||
|
pkgver=1.22.4.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="The command-line interface for Cabal and Hackage."
|
||||||
|
url="http://hackage.haskell.org/package/cabal-install"
|
||||||
|
license=('custom:BSD3')
|
||||||
|
arch=('x86_64')
|
||||||
|
makedepends=('ghc' 'haskell-random' 'haskell-stm')
|
||||||
|
depends=('gmp' 'zlib')
|
||||||
|
source=("https://hackage.haskell.org/package/cabal-install-${pkgver}/cabal-install-${pkgver}.tar.gz")
|
||||||
|
sha512sums=('f07d89a4121df673a284930ea21f0277061d99bca21e4a46bb037b1b4ab27dc4a1d4e165caad5cf1894653640cadc60618f5694e9b32438151b7f876fd12ee75')
|
||||||
|
|
||||||
|
# the bootstrap script was broken on several releases
|
||||||
|
# build with a cabal sandbox to avoid unnecessary patching & headaches
|
||||||
|
build() {
|
||||||
|
cd cabal-install-${pkgver}
|
||||||
|
|
||||||
|
./bootstrap.sh
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd cabal-install-${pkgver}
|
||||||
|
|
||||||
|
install -d ${pkgdir}/usr/bin
|
||||||
|
install -m755 dist/build/cabal/cabal \
|
||||||
|
${pkgdir}/usr/bin
|
||||||
|
|
||||||
|
|
||||||
|
install -d ${pkgdir}/usr/share/licenses/${pkgname}
|
||||||
|
install -m644 LICENSE \
|
||||||
|
${pkgdir}/usr/share/licenses/${pkgname}
|
||||||
|
|
||||||
|
# add bash completion
|
||||||
|
install -d ${pkgdir}/usr/share/bash-completion/completions
|
||||||
|
install -m644 bash-completion/cabal \
|
||||||
|
${pkgdir}/usr/share/bash-completion/completions
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user