blob: 1f48366fe9a801114ebf4aa1c048b3dc4eaea6d4 (
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
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Tristan Webb <tristan@fpcomplete.com>
pkgname=haskell-stack-git
_pkgname=stack
pkgver=0.1.3.1.r0.g908b042
pkgrel=1
pkgdesc="The Haskell Tool Stack"
arch=('i686' 'x86_64')
url="https://www.github.com/commercialhaskell/stack"
license=('BSD3')
depends=('libtinfo')
makedepends=('ghc' 'haskell-stack')
optdepends=('docker: Use Docker images to build your project in a temporary container')
provides=('haskell-stack')
conflicts=('haskell-stack')
# install=
source=("${_pkgname}::git+https://github.com/commercialhaskell/stack.git")
md5sums=('SKIP')
prepare() {
STACK_ROOT=$srcdir
cd "$srcdir/${_pkgname}"
stack setup
}
build() {
STACK_ROOT=$srcdir
cd "$srcdir/${_pkgname}"
pwd
stack build stack:stack --no-system-ghc
}
check() {
STACK_ROOT=$srcdir
cd "$srcdir/${_pkgname}"
stack test stack:test:stack-test
}
package() {
cd "$srcdir/${_pkgname}"
BIN_DIR=`stack path | grep "local-install-root" | cut -d ' ' -f2`/bin
STACK_BIN=$BIN_DIR/stack
install -Dm755 $STACK_BIN "$pkgdir/usr/bin/stack"
STACK_MAN_DIR=./man/man1
gzip -k $STACK_MAN_DIR/stack.1
install -Dm755 $STACK_MAN_DIR/stack.1.gz "$pkgdir/$STACK_MAN_DIR/stack.1.gz"
}
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
# vim:set ts=2 sw=2 et:
|