summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 53efabcb90c2e2081b1efe6d68e82e8ed540b2d2 (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
# Maintainer: Isaac Freund <ifreund@ifreund.xyz>
# Contributor: N.E. Neal <contact at [part of name before neal without dots] dog com>

_pkgname='bonsai.sh'
pkgname="${_pkgname}-git"
pkgver=r84.6c3812b
pkgrel=2
pkgdesc='bonsai tree generator written in bash'
arch=('any')
url="https://gitlab.com/jallbrit/${_pkgname}"
license=('GPL3')
depends=('bash' 'bc')
makedepends=('git')
provides=('bonsai.sh')
conflicts=('bonsai.sh')
source=("${_pkgname}::git+${url}.git")
md5sums=(SKIP)

pkgver() {
    cd "${_pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "${srcdir}/${_pkgname}"
    install -vDm 755 bonsai.sh -t "${pkgdir}/usr/bin/"
}