blob: e6156e7506078f3d31043d592fb721a051e02dc6 (
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
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>
# Contributor: Christian Hesse <mail@eworm.de>
# Contributor: Florian Pritz <bluewind@xinu.at>
# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=vimpager-git
pkgver=2.06.r367.g92242cf
pkgrel=1
pkgdesc='A vim-based script to use as a PAGER - git checkout'
arch=('any')
url='https://github.com/rkitover/vimpager'
license=('custom:vim')
depends=('vim')
makedepends=('git' 'pandoc')
conflicts=('vimpager')
provides=('vimpager')
backup=('etc/vimpagerrc')
source=('git+https://github.com/rkitover/vimpager.git')
sha256sums=('SKIP')
pkgver() {
cd vimpager/
if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
printf '%s.r%s.g%s' \
"$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \
"$(git rev-list --count ${GITTAG}..)" \
"$(git log -1 --format='%h')"
else
printf '0.r%s.g%s' \
"$(git rev-list --count master)" \
"$(git log -1 --format='%h')"
fi
}
package() {
cd vimpager/
make PREFIX="/usr" SYSCONFDIR="/etc" DESTDIR="${pkgdir}" install
install -Dm644 debian/copyright "${pkgdir}/usr/share/licenses/${pkgname}/copyright"
}
|