blob: c77f8e1ada36fac10aec3c468b58e2e880d0385f (
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
38
39
40
41
42
43
44
|
# Maintainer: <me@sfxr.de>
pkgname=stack-static
_pkgver=3.1.1
pkgver=${_pkgver}
pkgrel=1
_vpref=''
pkgdesc="The Haskell Tool Stack (linked statically)"
arch=('x86_64')
url="https://github.com/commercialhaskell/stack"
license=('custom:BSD3')
provides=( stack=$pkgver )
conflicts=( stack stack-bin haskell-stack )
replaces=( stack stack-bin haskell-stack )
depends=( gmp gcc-libs zlib ) # needed for working ghc downloaded by stack
optdepends=(
'bash-completion'
"ncurses5-compat-libs: using older ghc's linking against libtinfo.so.5"
)
source=(
"https://github.com/commercialhaskell/stack/releases/download/${_vpref}v${_pkgver}/stack-${_pkgver}-linux-x86_64.tar.gz"
"https://github.com/commercialhaskell/stack/releases/download/${_vpref}v${_pkgver}/stack-${_pkgver}-linux-x86_64.tar.gz.asc"
)
sha256sums=('d096125ea3d987a55d17f7d4f8599ee2fd96bd2d0f033566e28ddfe248f730f9'
'SKIP')
validpgpkeys=('C5705533DA4F78D8664B5DC0575159689BEFB442')
package() {
cd "${srcdir}"
local d="stack-${_pkgver}-linux-x86_64"
mkdir -p "${pkgdir}"/usr/{bin,share/{doc,licenses}/"${pkgname}"}
mkdir -p "${pkgdir}"/usr/share/{bash-completion/completions,fish/vendor_completions.d}
cp "${d}/stack" "${pkgdir}/usr/bin"
cp -R "${d}/doc/." "${pkgdir}/usr/share/doc/${pkgname}/"
cp "${d}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/"
local stack=${d}/stack
"$stack" --bash-completion-script stack >"$pkgdir"/usr/share/bash-completion/completions/stack
"$stack" --fish-completion-script stack > "$pkgdir"/usr/share/fish/vendor_completions.d/stack.fish
# conflicts with zsh-completion:
# "$stack" --zsh-completion-script stack > "$pkgdir"/usr/share/zsh/site-functions/_stack
}
# vim:set ts=2 sw=2 et:
|