summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 17a14aa546757cb5622270da4e3f104ef5017074 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Alex J. Malozemoff <amaloz@galois.com>
pkgname=matterhorn-git
_pkgname=matterhorn
pkgver=50200.11.0
pkgver() {
  cd ${_pkgname}
  git describe --long --tags | cut -d- -f1
}
pkgrel=1
pkgdesc='A terminal-based chat client for MatterMost'
arch=('x86_64')
url="https://github.com/matterhorn-chat/matterhorn"
license=('BSD')
depends=('gmp' 'zlib')
makedepends=('git' 'cabal-install' 'ghc')
source=("git+https://github.com/matterhorn-chat/matterhorn.git")
sha1sums=('SKIP')
provides=('matterhorn')
conflicts=('matterhorn')

build() {
  cd ${srcdir}/${_pkgname}
  git submodule update --init
  cabal new-update
  cabal new-build
}

package() {
  cd ${srcdir}/${_pkgname}
  install -m755 -D $(find . -name ${_pkgname} -type f | head -1) ${pkgdir}/usr/bin/matterhorn
  install -m644 -D LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}