summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c04dfc141258d7efe747492aa520cda7a9680b2 (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
# Maintainer: scrouthtv <scrouthtv 0x40 gmail 0x2e com>
# Contributor: 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=r88.0a3ecf1
pkgrel=1
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")
sha256sums=(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/"
}