summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e981bcd4edb6b8b1fb2b34ab1f6ae3db282cc9f7 (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
# Maintainer:  edward-p <edward AT edward-p DOT xyz>

pkgname=vimrc-git
pkgver=r376.901655ef
pkgrel=1
pkgdesc="The ultimate Vim configuration: vimrc"
arch=('any')
url='https://github.com/amix/vimrc'
license=('MIT')
depends=('vim')
makedepends=('git')
install=${pkgname}.install
source=("${pkgname}::git+https://github.com/amix/vimrc.git")
sha256sums=('SKIP')

pkgver() {
  cd ${pkgname}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}


package() {
  cd "${srcdir}/${pkgname}"

  mkdir -p "${pkgdir}/usr/share/vimrc"
  install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  cp -r * "${pkgdir}/usr/share/vimrc/"

}