summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 20 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ddd7b77d2bb..6e6ac284798 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,16 @@
# Maintainer: Damien Flament <damien.flament at gmx dot com>
+# Maintainer: Reed Mullanix <reedmullanix at gmail dot com>
_pkgname=haskell-ide-engine
pkgname=${_pkgname}-git
-pkgver=r1108.5656f07
+pkgver=r1757.59d5d30
pkgrel=1
pkgdesc="The engine for Haskell ide-integration. Not an IDE."
arch=('i686' 'x86_64')
url="https://github.com/haskell/haskell-ide-engine"
license=('custom:BSD3')
depends=()
-makedepends=('git' 'stack' 'cabal-install')
+makedepends=('git' 'stack' 'cabal-install' 'happy')
provides=()
conflicts=()
replaces=()
@@ -31,13 +32,27 @@ pkgver() {
build() {
cd "${srcdir}/${_pkgname}"
- stack build
+ git submodule update --init
+
+ stack --stack-yaml=stack-8.2.1.yaml build
+ stack --stack-yaml=stack-8.2.2.yaml build
+ stack --stack-yaml=stack-8.4.2.yaml build
+ stack --stack-yaml=stack-8.4.3.yaml build
}
package() {
cd "${srcdir}/${_pkgname}"
install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
-
- stack install --local-bin-path "${pkgdir}/usr/bin"
+
+ stack --stack-yaml=stack-8.2.1.yaml --local-bin-path "${pkgdir}/usr/bin/" install \
+ && mv "${pkgdir}/usr/bin/hie" "${pkgdir}/usr/bin/hie-8.2.1"
+ stack --stack-yaml=stack-8.2.2.yaml --local-bin-path "${pkgdir}/usr/bin/" install \
+ && mv "${pkgdir}/usr/bin/hie" "${pkgdir}/usr/bin/hie-8.2.2"
+ stack --stack-yaml=stack-8.4.2.yaml --local-bin-path "${pkgdir}/usr/bin/" install \
+ && mv "${pkgdir}/usr/bin/hie" "${pkgdir}/usr/bin/hie-8.4.2"
+ stack --stack-yaml=stack-8.4.3.yaml --local-bin-path "${pkgdir}/usr/bin/" install \
+ && cp "${pkgdir}/usr/bin/hie" "${pkgdir}/usr/bin/hie-8.4.3"
}
+
+