Skip to content

Commit 95ced3b

Browse files
committed
add for package haskell-ide-engine
1 parent 9b5678b commit 95ced3b

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Maintainer: Philippe Hürlimann <[email protected]>
2+
pkgname=haskell-ide-engine
3+
pkgver=0.6.0.0
4+
pkgrel=1
5+
pkgdesc="The engine for haskell ide-integration. Not an IDE"
6+
arch=('x86_64')
7+
url="https://github.com/haskell/haskell-ide-engine"
8+
license=('custom:BSD3')
9+
makedepends=('git' 'stack' 'cabal-install' 'happy')
10+
source=("${pkgname}-${pkgver}::git://github.com/haskell/${pkgname}.git#tag=${pkgver}")
11+
noextract=()
12+
md5sums=('SKIP')
13+
14+
# 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'
15+
# activated by default are the ones also used in a stackage snapshot
16+
# removing versions you do not use will greatly reduce the compilation time of this package
17+
_enabled_ghc_versions=('8.2.2' '8.4.3' '8.4.4' '8.6.3')
18+
19+
prepare() {
20+
cd "${srcdir}/${pkgname}-${pkgver}"
21+
git submodule update --init
22+
}
23+
24+
build() {
25+
cd "${srcdir}/${pkgname}-${pkgver}"
26+
for ver in "${_enabled_ghc_versions[@]}"; do
27+
stack --stack-yaml=stack-${ver}.yaml build
28+
done
29+
}
30+
31+
package() {
32+
cd "${srcdir}/${pkgname}-${pkgver}"
33+
install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
34+
35+
for ver in "${_enabled_ghc_versions[@]}"; do
36+
stack --stack-yaml=stack-${ver}.yaml --local-bin-path "${pkgdir}/usr/bin/" install \
37+
&& mv "${pkgdir}/usr/bin/hie" "${pkgdir}/usr/bin/hie-${ver}"
38+
done
39+
}

archlinuxcn/haskell-ide-engine/lilac.py

Whitespace-only changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
pre_build: aur_pre_build
2+
3+
post_build: aur_post_build
4+
5+
update_on:
6+
- aur: haskell-ide-engine
7+
8+
maintainers:
9+
- github: dctxmei

0 commit comments

Comments
 (0)