diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2e4b478a853a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# -*- mode: sh; -*- +# Maintainer: Maor Kadosh <qoev@protonmail.com> + +pkgname=gitless-git +pkgver=619.g1ffeab0 +pkgrel=1 +pkgdesc="A scientifically proven easier-to-use git interface (git upstream)" +arch=(x86_64) +url="https://gitless.com/" +license=('MIT') +depends=(python-pygit2) +makedepends=(git) +provides=("${pkgname%-*}") +conflicts=("${pkgname%-*}") +source=($pkgname::git://github.com/gitless-vcs/gitless.git) +md5sums=('SKIP') # since the sources aren't static + +pkgver() { + cd "$srcdir/${pkgname%}" + +# The examples below are not absolute and need to be adapted to each repo. The +# primary goal is to generate version numbers that will increase according to +# pacman's version comparisons with later commits to the repo. The format +# VERSION='VER_NUM.rREV_NUM.HASH', or a relevant subset in case VER_NUM or HASH +# are not available, is recommended. + + printf "%s" "$(git describe --long | cut -d'-' -f2,3 | sed 's/-/./')" +} + +package() { + cd "$srcdir/${pkgname%}" + python setup.py install --root=${pkgdir} --optimize=2 +} |