diff options
author | Eli Schwartz | 2015-06-22 20:16:19 -0500 |
---|---|---|
committer | Eli Schwartz | 2015-06-22 20:48:50 -0500 |
commit | f6f4d19e2ab039b11236f201d1300ce1aa7ac5f6 (patch) | |
tree | e36dc829bd574cc0ce6d83d518c29eadffbf70ae | |
parent | 70bb7e2ea5718aa1f48a3360494ff673cc0f6342 (diff) | |
download | aur-f6f4d19e2ab039b11236f201d1300ce1aa7ac5f6.tar.gz |
upgpkg: vim-sensible-git 1.1.r4.gd0beb8a-1
Adopt package, fix pkgver
-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" '{}' \+ } - |