blob: 96d6d061b286e63005cbf9a9d36535c2c682db7a (
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
45
|
# Maintainer: Yakov Till <yakov.till@gmail.com>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
pkgname=vim-airline-themes
pkgver=r1457.77aab8c
_gitcommit=77aab8c6cf7179ddb8a05741da7e358a86b2c3ab
pkgrel=1
pkgdesc='Themes for vim-airline'
url='https://github.com/vim-airline/vim-airline-themes'
arch=('any')
license=('MIT')
depends=('vim-plugin-runtime')
makedepends=('git')
groups=('vim-plugins')
source=("git+${url}#commit=${_gitcommit}")
sha512sums=('e52ef13c9a0fd63c8893ac722698bcd46d9e15612e03083f0660b9bf669b8d4fafef18fa5703f8435bf19bfc27cf93d78b91f1f3c8f2f45c9de6fc03ad485d8d')
latestver() {
local tmp
tmp=$(mktemp -d)
git clone --filter=blob:none --quiet "${url}.git" "${tmp}/${pkgname}"
printf 'r%s.%s\n' \
"$(git -C "${tmp}/${pkgname}" rev-list --count HEAD)" \
"$(git -C "${tmp}/${pkgname}" rev-parse --short HEAD)"
rm -rf "${tmp}"
}
pkgver() {
cd ${pkgname}
printf "r%s.%s" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
package() {
cd ${pkgname}
_installpath="${pkgdir}/usr/share/vim/vimfiles"
install -d "${_installpath}"
cp -r autoload doc plugin "${_installpath}"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}
# vim: ts=2 sw=2 et:
|