summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81d26e275a2f018c90ffff7639bcc214785c72fb (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
# Maintainer: Ben Morgan <neembi@gmail.com>
pkgname=fairsplit
pkgver=1.1
pkgrel=3
pkgdesc="A simple program to calculate how to split multiple expenses fairly."
arch=('i686' 'x86_64')
url="https://github.com/cassava/fairsplit"
license=('MIT')
makedepends=('git' 'go')
options=('!strip')
source=("git+https://github.com/cassava/fairsplit.git#tag=v${pkgver}")
md5sums=('SKIP')

build() {
    source /etc/profile.d/go.sh
    export GOPATH="$srcdir"
    cd "$srcdir/$pkgname"
    go build -o "$pkgname"
}

package() {
    cd "$srcdir/$pkgname"
    install -m755 -D "$pkgname" "$pkgdir/usr/bin/$pkgname"
    install -m644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}