summarylogtreecommitdiffstats
path: root/git.PKGBUILD
blob: 2c24fe7ce2a86e3043f06663d40bbf1cbab22fe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
source PKGBUILD
url="https://github.com/cogentcore/core"
pkgver=0.3.5
pkgdesc="cogentcore's core tool built from main branch instead of latest release tag version"
makedepends=("${makedepends[@]}" "git")


pkgver() {
_version=$(git ls-remote --tags --refs --sort="version:refname" ${url}.git | tail -n1)
_version=${_version##*/}
_version=${_version%%-*}
_version=${_version//v/}
echo ${_version}
}

build() {
_build "main"
}