summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorReed Mullanix2018-08-10 14:21:34 -0700
committerReed Mullanix2018-08-10 14:21:34 -0700
commit47419bea7c83a2de5151a04aea35e72f670a4faa (patch)
tree421508133f5c80a7b8520e1a866758f74b478bb7
parentd95007fb65bce1960030c176655badfeb6e42310 (diff)
downloadaur-47419bea7c83a2de5151a04aea35e72f670a4faa.tar.gz
Update PKBUILD to mirror the makefile
-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"
}
+
+