diff options
author | lmartinez-mirror | 2021-04-16 01:33:46 -0500 |
---|---|---|
committer | lmartinez-mirror | 2021-04-16 01:33:46 -0500 |
commit | 7f1ac4568100c65e2c303cc69b4d1fe2d0d1e16c (patch) | |
tree | 7617024e89a295b327d10279e7e156beea08c092 | |
download | aur-7f1ac4568100c65e2c303cc69b4d1fe2d0d1e16c.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 40 |
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d22c8dc99b64 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = vim-autoformat-git + pkgdesc = Provides easy code formatting by integrating existing formatters + pkgver = r491.781c72c + pkgrel = 1 + url = https://github.com/chiel92/vim-autoformat + arch = any + groups = vim-plugins + groups = neovim-plugins + license = MIT + makedepends = git + source = vim-autoformat-git::git+https://github.com/chiel92/vim-autoformat + md5sums = SKIP + +pkgname = vim-autoformat-git + depends = vim + provides = vim-autoformat + conflicts = vim-autoformat + +pkgname = neovim-autoformat-git + depends = neovim + depends = python-pynvim + provides = vim-autoformat + conflicts = vim-autoformat + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..73de0d900192 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +!PKGBUILD +!.SRCINFO +!.gitignore +* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..97c8695fe637 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: lmartinez-mirror +pkgbase=vim-autoformat-git +pkgname=('vim-autoformat-git' 'neovim-autoformat-git') +pkgver=r491.781c72c +pkgrel=1 +pkgdesc="Provides easy code formatting by integrating existing formatters" +arch=('any') +url="https://github.com/chiel92/vim-autoformat" +license=('MIT') +groups=('vim-plugins' 'neovim-plugins') +makedepends=('git') +source=("$pkgbase::git+$url") +md5sums=('SKIP') + +pkgver() { + cd "$pkgbase" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package_vim-autoformat-git() { + depends=('vim') + provides=("${pkgbase%-git}") + conflicts=("${pkgbase%-git}") + + cd "$pkgbase" + find plugin -type f -exec install -Dm 644 '{}' "$pkgdir/usr/share/vim/vimfiles/{}" \; + install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" +} + +package_neovim-autoformat-git() { + depends=('neovim' 'python-pynvim') + provides=("${pkgbase%-git}") + conflicts=("${pkgbase%-git}") + + cd "$pkgbase" + find plugin -type f -exec install -Dm 644 '{}' "$pkgdir/usr/share/nvim/runtime/{}" \; + install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" +} |