summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bdd402a0f31a430894f23bbb253efad14b162e46 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Fabien Dubosson <fabien.dubosson@gmail.com>

pkgname="budgetwarrior-git"
_pkgname="budgetwarrior"
pkgver=1.0.r1.gcf1b0dd
pkgrel=2
pkgdesc="Simple command line utility to helps keeping track of your expenses and the state of your budget."
url="https://github.com/wichtounet/budgetwarrior"
license=('MIT')
arch=('i686' 'x86_64')
makedepends=('git' 'cmake' 'clang')
depends=('util-linux' 'openssl')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
changelog="ChangeLog"
source=("${_pkgname}::git+https://github.com/wichtounet/${_pkgname}#branch=master")
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_pkgname}/"

    git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

prepare() {
    cd "${srcdir}/${_pkgname}/"
    git submodule init
    git submodule update
}

build() {
    cd "${srcdir}/${_pkgname}/"

    make
}

package() {
    cd "${srcdir}/${_pkgname}/"

    install -d "${pkgdir}/usr/bin"
    install -d "${pkgdir}/usr/share/man/man3"
    install -d "${pkgdir}/usr/share/zsh/site-functions/"
    install -d "${pkgdir}/etc/bash_completion.d"
    make prefix="${pkgdir}/usr" install
}

# vim:set ts=4 sw=4 et: