File tree 3 files changed +48
-0
lines changed
archlinuxcn/haskell-ide-engine 3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments