blob: 9d61e9125beafceca9adb092cf1c11bb8481b78f (
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
29
30
31
32
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 python-setuptools)
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
}
|