blob: 043e5985cc6a9d12e9a280f28e906642ca7e8fba (
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
|
# Maintainer: Olivia Mackintosh <livvy@base.nu>
_name="matrix-bot-haskell"
pkgname=matrix-bot-haskell-git
pkgver=0.0.1.0.r4.gb2b3812
pkgrel=1
pkgdesc="A [matrix] bot written in Haskell"
arch=('x86_64')
url="https://github.com/livmackintosh/matrix-bot-haskell"
license=('AGPL3')
depends=('libolm-git')
makedepends=('ghc' 'stack')
optdepends=('bash-completion: for bash completions')
source=("git+https://github.com/livmackintosh/${_name}")
provides=('matrix-bot')
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${_name}"
stack clean ${_name}
stack build --system-ghc --ghc-options -lolm ${_name}
}
package() {
cd "${_name}"
stack install --local-bin-path="$pkgdir/usr/bin" ${_name}
}
|