diff options
author | Maor Kadosh | 2020-10-12 11:26:42 +0300 |
---|---|---|
committer | Maor Kadosh | 2020-10-12 11:26:42 +0300 |
commit | ac0e1929e8c26b1a27f7262ed3fe5d1f39ecf614 (patch) | |
tree | b50346f21be73b9160e930e75e714d2a61e31678 | |
download | aur-ac0e1929e8c26b1a27f7262ed3fe5d1f39ecf614.tar.gz |
init
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3c4cbee5b610 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = gitless-git + pkgdesc = A scientifically proven easier-to-use git interface (git upstream) + pkgver = 619.g1ffeab0 + pkgrel = 1 + url = https://gitless.com/ + arch = x86_64 + license = MIT + makedepends = git + depends = python-pygit2 + provides = gitless + conflicts = gitless + source = gitless-git::git://github.com/gitless-vcs/gitless.git + md5sums = SKIP + +pkgname = gitless-git + 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 +} |