blob: 48802755e90c8f733b595c678e6e035ca8b7483b (
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
|
# Maintainer: allddd <allddd (at) proton (dot) me>
pkgname=vim-plug-git
pkgver=r720.d863d07
pkgrel=2
pkgdesc='A vim plugin manager'
arch=('any')
url='https://github.com/junegunn/vim-plug'
license=('MIT')
depends=('vim')
makedepends=('git')
provides=('vim-plug')
conflicts=('vim-plug')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${srcdir}/${pkgname}"
install -Dm644 plug.vim -t "${pkgdir}/usr/share/vim/vimfiles/autoload/"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
install -Dm644 doc/plug.txt -t "${pkgdir}/usr/share/doc/${pkgname}/"
}
# vim: ts=4 sw=4 et:
|