summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0714038b4c607fee595ad9e3ceae3ad566127222 (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: bobpaul <aurpackage [at] bobpaul 'period' org>
pkgname="simplex-chat-git"
pkgver=v1.3.1.r34.g22ff17ae
pkgrel=1
pkgdesc='a 100% private-by-design chat platform'
arch=("x86_64")
url="https://github.com/simplex-chat/simplex-chat"
license=('AGPL3')
groups=()
makedepends=('stack' 'git')
provides=('simplex-chat')
conflicts=('simplex-chat')
source=('git+https://github.com/simplex-chat/simplex-chat.git#branch=stable')
md5sums=('SKIP')

builddir="${pkgname/-git/}"
build() {
    cd "$builddir"
    rm -rf .stack-work
    stack build
}

pkgver(){
    cd "$builddir"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    cd "$builddir"
    stack install --local-bin-path "$pkgdir"/usr/bin
}