summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d860d4ae772de2c88c9cdb8c50cf2137dfe4e55 (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
33
# Maintainer: Xavier Gongora <ixbalanque@protonmail.ch>
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Wolfgang Popp <mail@wolfgang-popp.de>
# Contributor: Tharre <tharre3@gmail.com>
# Contributor: Damien Flament <damien.flament at gmx dot com>

pkgname=brittany
pkgver=0.13.1.2
pkgrel=1
pkgdesc='Haskell source code formatter (static)'
arch=(x86_64)
url='https://github.com/lspitzner/brittany'
license=(AGPL3)
makedepends=(git stack)
_tag=434f9f8e49b847ef3e648672c5564b6dd0d3be67 # git rev-parse $pkgver
source=("git+$url.git?signed#tag=$_tag")
b2sums=('SKIP')

pkgver() { # prevents accidentally bumping pkgver without updating _tag as well
    cd "$pkgname"
    git describe --tags | sed 's/^v//' # get version tag and remove the first 'v' in the head if present
}


build() {
  cd $pkgname
  stack build
}

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