summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Hürlimann2019-01-29 15:23:48 +0100
committerPhilippe Hürlimann2019-01-29 20:44:35 +0100
commit600370a243e072a6d840e785e9e9f843b93b6db7 (patch)
tree8391927ce06a4fc73a8c8f92ff0f8b6bd0572d9f
parent80349d811872d5145c49b1e6e07f42d42a277297 (diff)
downloadaur-600370a243e072a6d840e785e9e9f843b93b6db7.tar.gz
hie 0.5.0.0
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD50
2 files changed, 27 insertions, 32 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 67f0b327efd..eb6e323114a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,15 @@
pkgbase = haskell-ide-engine
- pkgdesc = The engine for haskell ide-integration. Not an IDE.
- pkgver = 0.1.0.0
+ pkgdesc = The engine for haskell ide-integration. Not an IDE
+ pkgver = 0.5.0.0
pkgrel = 1
url = https://github.com/haskell/haskell-ide-engine
- arch = i686
arch = x86_64
license = custom:BSD3
makedepends = git
makedepends = stack
- source = git://github.com/haskell/haskell-ide-engine.git
+ makedepends = cabal-install
+ makedepends = happy
+ source = haskell-ide-engine-0.5.0.0::git://github.com/haskell/haskell-ide-engine.git#tag=0.5.0.0
md5sums = SKIP
pkgname = haskell-ide-engine
diff --git a/PKGBUILD b/PKGBUILD
index 6da63d77158..f8e242f7611 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,45 +1,39 @@
-# Maintainer: Damien Flament <damien.flament at gmx dot com>
-
+# Maintainer: Philippe Hürlimann <p@hurlimann.org>
pkgname=haskell-ide-engine
-pkgver=0.1.0.0
+pkgver=0.5.0.0
pkgrel=1
-pkgdesc="The engine for haskell ide-integration. Not an IDE."
-arch=('i686' 'x86_64')
+pkgdesc="The engine for haskell ide-integration. Not an IDE"
+arch=('x86_64')
url="https://github.com/haskell/haskell-ide-engine"
license=('custom:BSD3')
-depends=()
-makedepends=('git' 'stack')
-provides=()
-conflicts=()
-replaces=()
-backup=()
-options=()
-install=
-changelog=
-source=("git://github.com/haskell/${pkgname}.git")
+makedepends=('git' 'stack' 'cabal-install' 'happy')
+source=("${pkgname}-${pkgver}::git://github.com/haskell/${pkgname}.git#tag=${pkgver}")
noextract=()
md5sums=('SKIP')
-validpgpkeys=()
-_STACK_FLAGS="--system-ghc --jobs $(nproc)"
-_STACK="stack $_STACK_FLAGS"
+# supported are '8.2.1' '8.2.2' '8.4.2' '8.4.3' '8.4.4' '8.6.1' '8.6.2' '8.6.3'
+# activated by default are the ones also used in a stackage snapshot
+# removing versions you do not use will greatly reduce the compilation time of this package
+enabled_ghc_versions=('8.2.2' '8.4.3' '8.4.4' '8.6.3')
prepare() {
- cd "${srcdir}/${pkgname}"
-
- $_STACK build --dry-run
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ git submodule update --init
}
build() {
- cd "${srcdir}/${pkgname}"
-
- $_STACK build
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ for ver in "${enabled_ghc_versions[@]}"; do
+ stack --stack-yaml=stack-${ver}.yaml build
+ done
}
package() {
- cd "${srcdir}/${pkgname}"
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-
- $_STACK install --local-bin-path "${pkgdir}/usr/bin"
+ for ver in "${enabled_ghc_versions[@]}"; do
+ stack --stack-yaml=stack-${ver}.yaml --local-bin-path "${pkgdir}/usr/bin/" install \
+ && mv "${pkgdir}/usr/bin/hie" "${pkgdir}/usr/bin/hie-${ver}"
+ done
}