diff options
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 15 insertions, 14 deletions
@@ -1,9 +1,10 @@ pkgbase = vim-sensible-git pkgdesc = vim defaults everyone can agree on - pkgver = 1404706506 + pkgver = 1.1.r4.gd0beb8a pkgrel = 1 url = https://github.com/tpope/vim-sensible arch = any + groups = vim-plugins license = custom:vim makedepends = git depends = vim @@ -1,27 +1,27 @@ -_pkgname=vim-sensible +# Maintainer: Eli Schwartz <eschwartz93@gmail.com> + pkgname=vim-sensible-git -pkgver=1404706506 +pkgver=1.1.r4.gd0beb8a pkgrel=1 pkgdesc="vim defaults everyone can agree on" arch=('any') -url='https://github.com/tpope/vim-sensible' +url="https://github.com/tpope/${pkgname%-git}" license=('custom:vim') +groups=('vim-plugins') depends=('vim') makedepends=('git') -provides=('vim-sensible') -conflicts=('vim-sensible') - -source=('git://github.com/tpope/vim-sensible.git') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("git://github.com/tpope/${pkgname%-git}.git") sha512sums=('SKIP') pkgver() { - cd -- "$srcdir/$_pkgname" - git log -n1 --pretty=format:%ct + cd "${srcdir}/${pkgname%-git}" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | cut -c2- } package() { - cd "$srcdir/$_pkgname" - install -dm755 "$pkgdir/usr/share/vim/vimfiles" - find * -maxdepth 0 -type d -exec cp -R -t "$pkgdir/usr/share/vim/vimfiles" '{}' \+ + cd "${srcdir}/${pkgname%-git}" + install -dm755 "${pkgdir}/usr/share/vim/vimfiles" + find * -maxdepth 0 -type d -exec cp -rt "${pkgdir}/usr/share/vim/vimfiles" '{}' \+ } - |