diff options
author | Jason Raymond Bell | 2017-05-16 04:02:41 +0100 |
---|---|---|
committer | Jason Raymond Bell | 2017-05-16 04:02:41 +0100 |
commit | 2d7effa02817cb43b689f7a546ecbefe35bdfdd4 (patch) | |
tree | 313c41172d2b0b71706300df3f0f1cc979259ccc /PKGBUILD | |
download | aur-2d7effa02817cb43b689f7a546ecbefe35bdfdd4.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4b596108f7aa --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer : Jason Raymond Bell <jason@epixxware.com> + +_pkgname="vim-clang-format" +pkgname="vim-clang-format-git" +pkgver=1 +pkgrel=1 +pkgdesc='Plugin which uses clang for formatting C and C++ code. Git version.' +arch=(any) +url='https://github.com/rhysd/vim-clang-format' +license=('MIT') +depends=(vim clang) +makedepends=(git) +conflicts=(vim-clang-format) +source=(git://github.com/rhysd/vim-clang-format) +md5sums=(SKIP) +install=${pkgname}.install + +package() { + cd ${srcdir}/${_pkgname} + + # creating directories + install -d -m 755 ${pkgdir}/usr/share/vim/vimfiles/autoload/operator + install -d -m 755 ${pkgdir}/usr/share/vim/vimfiles/doc + install -d -m 755 ${pkgdir}/usr/share/vim/vimfiles/plugin + + # copying files + install -D -m 644 autoload/clang_format.vim ${pkgdir}/usr/share/vim/vimfiles/autoload/clang_format.vim + install -D -m 644 autoload/operator/clang_format.vim ${pkgdir}/usr/share/vim/vimfiles/autoload/operator/clang_format.vim + install -D -m 644 doc/clang-format.txt ${pkgdir}/usr/share/vim/vimfiles/doc/clang-format.txt + install -D -m 644 plugin/clang_format.vim ${pkgdir}/usr/share/vim/vimfiles/plugin/clang_format.vim + tail -21 README.md > LICENSE + install -D -m 644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} |