diff options
author | Christian Hesse | 2015-06-30 10:29:10 +0200 |
---|---|---|
committer | Christian Hesse | 2015-06-30 10:29:10 +0200 |
commit | e7e2de7c0cbf4090861c4545b4388da812f4b001 (patch) | |
tree | 122b32fb0c3719bba403be8409fbf92ce10af1b5 | |
download | aur-e7e2de7c0cbf4090861c4545b4388da812f4b001.tar.gz |
initial import of vim-trailing-whitespace 1.0.r5.g0c79bd5-1
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..704f3b4a921a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = vim-trailing-whitespace + pkgdesc = Vim plugin: Highlights trailing whitespace in red and provides :FixWhitespace to fix it + pkgver = 1.0.r5.g0c79bd5 + pkgrel = 1 + url = https://github.com/bronson/vim-trailing-whitespace + arch = any + license = GPL + makedepends = git + depends = vim + conflicts = vim-better-whitespace + source = git://github.com/bronson/vim-trailing-whitespace.git + sha256sums = SKIP + +pkgname = vim-trailing-whitespace + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0399f5b88c14 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Christian Hesse <mail@eworm.de> + +pkgname=vim-trailing-whitespace +pkgver=1.0.r5.g0c79bd5 +pkgrel=1 +pkgdesc='Vim plugin: Highlights trailing whitespace in red and provides :FixWhitespace to fix it' +arch=('any') +url='https://github.com/bronson/vim-trailing-whitespace' +license=('GPL') +depends=('vim') +conflicts=('vim-better-whitespace') +makedepends=('git') +source=('git://github.com/bronson/vim-trailing-whitespace.git') +sha256sums=('SKIP') + +pkgver() { + cd vim-trailing-whitespace/ + + if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then + echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")" + else + echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")" + fi +} + +package() { + install -D -m0644 ${srcdir}/vim-trailing-whitespace/plugin/trailing-whitespace.vim ${pkgdir}/usr/share/vim/vimfiles/plugin/trailing-whitespace.vim + install -D -m0644 ${srcdir}/vim-trailing-whitespace/doc/trailing-whitespace.txt ${pkgdir}/usr/share/doc/${pkgname}/trailing-whitespace.txt +} + |