diff options
author | lmartinez-mirror | 2021-04-12 02:30:33 -0500 |
---|---|---|
committer | lmartinez-mirror | 2021-04-12 02:30:33 -0500 |
commit | e95fe0715ae9d8bfdd3dd9cc880ad30fa7447bc6 (patch) | |
tree | aac718da29c2d281fa170890b10c4a8c3c8d43c4 /PKGBUILD | |
parent | e6b2801aa0ed705af0ee594c24a162a8cf22332e (diff) | |
download | aur-vim-securemodelines-git.tar.gz |
rewrite, new upstream
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 51 |
1 files changed, 21 insertions, 30 deletions
@@ -1,41 +1,32 @@ -# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com> +# Maintainer: lmartinez-mirror +# Contributor: Timothy Redaelli <timothy.redaelli@gmail.com> pkgname=vim-securemodelines-git -pkgver=20111103 +pkgver=r21.0e1b902 pkgrel=1 -pkgdesc="A secure alternative to Vim modelines. Latest git version" +pkgdesc='Secure, user-configurable modeline support for (Neo)Vim' arch=('any') -url="http://github.com/ciaranm/securemodelines" +url="http://github.com/chriscroome/securemodelines" license=('custom:vim') groups=('vim-plugins') -conflicts=('vim-securemodelines') -depends=('vim') +depends=('vim-plugin-runtime') makedepends=('git') -source=(license.txt) -md5sums=('9cbc86548400621ea7ad55d4386d81e2') -_gitroot="git://github.com/ciaranm/securemodelines.git" -_gitname="securemodelines" +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("$pkgname::git+$url" + 'license.txt') +sha256sums=('SKIP' + '17b84c8f97d20ea5b8a7eff68f9b872e195137691d231aadc0e7fc4ca7a5b946') -package() { - cd "$srcdir" - msg "Connecting to GIT server...." - - if [[ -d "$_gitname" ]]; then - cd "$_gitname" && git pull origin - msg "The local files are updated." - else - git clone "$_gitroot" "$_gitname" - fi - - msg "GIT checkout done or server timeout" - - rm -rf "$srcdir/$_gitname-build" - git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" - cd "$srcdir/$_gitname-build" - - local _installpath="${pkgdir}/usr/share/vim/vimfiles" +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} - install -Dm644 plugin/securemodelines.vim "${_installpath}"/plugin/securemodelines.vim - install -Dm644 "${srcdir}"/license.txt "${pkgdir}/usr/share/licenses/${pkgname}/license.txt" +package() { + cd "$pkgname" + install -Dm 644 plugin/securemodelines.vim "$pkgdir/usr/share/vim/vimfiles/plugin/securemodelines.vim" + install -Dm 644 "$srcdir/license.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" } # vim:set ts=2 sw=2 et: |