Added Matterhorn template
Getty Ritter
8 years ago
1 | # Template file for 'matterhorn' | |
2 | pkgname=matterhorn | |
3 | version=0.0.1 | |
4 | revision=20160826 | |
5 | hostmakedepends="ghc cabal-install git" | |
6 | makedepends="ncurses-devel zlib-devel" | |
7 | depends="" | |
8 | short_desc="A small terminal-based MatterMost client" | |
9 | maintainer="Getty Ritter <gdritter@galois.com>" | |
10 | license="BSD" | |
11 | homepage="https://github.com/aisamanra/matterhorn" | |
12 | nopie="yes" | |
13 | ||
14 | do_fetch() { | |
15 | mkdir -p ${wrksrc} | |
16 | git clone https://github.com/dagit/mattermost-api.git ${wrksrc}/mattermost-api | |
17 | git clone https://github.com/aisamanra/matterhorn.git ${wrksrc}/matterhorn | |
18 | } | |
19 | ||
20 | do_build() { | |
21 | cd ${wrksrc}/matterhorn | |
22 | cabal sandbox init | |
23 | cabal update | |
24 | cabal sandbox add-source ${wrksrc}/mattermost-api | |
25 | cabal install happy | |
26 | cabal install alex | |
27 | cabal install ${makejobs} --only-dependencies | |
28 | cabal configure -v --prefix=/usr | |
29 | cabal build ${makejobs} | |
30 | } | |
31 | ||
32 | do_install() { | |
33 | vbin ${wrksrc}/matterhorn/dist/build/matterhorn/matterhorn | |
34 | vlicense ${wrksrc}/matterhorn/LICENSE | |
35 | } |