summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 656e28fd12c42bce043f073d4c83144de4185306 (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: libele <libele@disroot.org>
# Contributor: Nicholas Boyd Isacsson <nicholas@isacsson.se>

pkgname=cbonsai-git
_gitpkg=cbonsai
pkgver=1.3.1.10.g50fe627
pkgrel=2
pkgdesc='A bonsai tree generator, written in C using ncurses (git version)'
arch=('aarch64' 'arm' 'armv6h' 'armv7h' 'i686' 'pentium4' 'x86_64')
url="https://gitlab.com/jallbrit/cbonsai"
license=('GPL3')
depends=('ncurses')
makedepends=('git' 'scdoc')
provides=('cbonsai')
conflicts=('cbonsai')
source=('git+https://gitlab.com/jallbrit/cbonsai.git')
md5sums=(SKIP)

pkgver() {
  cd "${_gitpkg}"
  printf "%s" "$(git describe --long --tags | sed 's/v//; s/-/./g')"
}

package() {
  cd "${srcdir}"/"${_gitpkg}"
  make DESTDIR="${pkgdir}" PREFIX="/usr" install
}