blob: 6af7a030047a90f2210b7bf04f6e5bd67ce3e2d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Contributor: Steeve Chailloux <steeve.chailloux@orus.io>
# Maintainer: Mitch Tishmack <mitch.tishmack@gmail.com>
pkgname=cabal
pkgver=2.4.1.0
pkgrel=0
pkgdesc="The Haskell Cabal"
url="http://haskell.org"
arch="x86_64"
license="BSD-3-Clause"
depends="gmp zlib"
makedepends="ghc gmp-dev libffi-dev zlib-dev binutils-gold chrpath"
source="
cabal-0001-force-ld.gold.patch
https://hackage.haskell.org/package/cabal-install-$pkgver/cabal-install-$pkgver.tar.gz
"
builddir="$srcdir/$pkgname-install-$pkgver"
build() {
cd "$builddir"
# Note: we don't want to build profiling or shared libraries, that is why
# EXTRA_CONFIGURE_OPTS is set
env HOME="$builddir" EXTRA_CONFIGURE_OPTS="" ./bootstrap.sh --jobs --no-doc
}
package() {
cd "$builddir"
install -m 755 -D dist/build/cabal/cabal "$pkgdir/usr/bin/cabal"
chrpath -d "$pkgdir/usr/bin/cabal"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha512sums="735a1aa9084d7eb7297076587cf2896af2951d4a2ecc20c5a6758a91c3751f5c212b65668befc25cfbc273633041543bda3da0fe9cee59795eeb3f40b3fb4922 cabal-0001-force-ld.gold.patch
4c493448724fd3c073dd61133f4c8ae757ae97fb4c3e2b4db23dcb99894a8e790ec71d0d1fb6f58702f347143261092c0fc556741b7d5fcb192edd308e8182f4 cabal-install-2.4.1.0.tar.gz"
|