diff options
author | Sebastian Gniazdowski | 2019-03-08 01:51:26 +0000 |
---|---|---|
committer | Sebastian Gniazdowski | 2019-03-08 01:51:26 +0000 |
commit | 5624b7c1b3f2f23c4173b6e1cd3f5fad4f2328a5 (patch) | |
tree | 7106adee6d1c3f093dc48f8dc914f782823f3263 | |
download | aur-5624b7c1b3f2f23c4173b6e1cd3f5fad4f2328a5.tar.gz |
Initial commit – zsh plugin manager https://github.com/zdharma/zplugin
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..845c309d9817 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = zsh-zplugin-git + pkgdesc = Flexible Zsh plugin manager with clean fpath, reports, completion management, turbo mode + pkgver = r1477.43ac67f + pkgrel = 1 + url = http://github.com/zdharma/zplugin + arch = any + license = GPL + license = MIT + makedepends = git + depends = zsh>=4.3.17 + provides = zsh-zplugin + conflicts = zsh-zplugin + source = git+https://github.com/zdharma/zplugin.git + sha512sums = SKIP + +pkgname = zsh-zplugin-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6ffb030861ed --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Sebastian wniazdowski <psprint at zdharma dot org> + +_name='zsh-zplugin-git' +pkgname="${_name}" +pkgver=r1477.43ac67f +pkgrel=1 +pkgdesc="Flexible Zsh plugin manager with clean fpath, reports, completion management, turbo mode" +url="http://github.com/zdharma/zplugin" +arch=('any') +license=('GPL' 'MIT') +depends=('zsh>=4.3.17') +provides=('zsh-zplugin') +conflicts=('zsh-zplugin') +makedepends=('git') +source=('git+https://github.com/zdharma/zplugin.git') +sha512sums=('SKIP') + +_gitname='zplugin' + +pkgver() { + cd "${_gitname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + # .../zplugin + typeset _plugindir="${pkgdir}/usr/share/zsh/plugin-managers/${_gitname}" + typeset _bindir="${_plugindir}" + # .../zsh-zplugin-git + typeset _licdir="${pkgdir}/usr/share/licenses/${pkgname}" + + cd "${srcdir}/${_gitname}" + + # Zplugin's source files + install -dm0755 "${_plugindir}" + install -m0644 zplugin{,-side,-install,-autoload}.zsh "${_plugindir}" + + # Zplugin-module files + find zmodules/ -type d -exec install -dm 755 "{}" "${_plugindir}/{}" \; + find zmodules/ -type f -exec install -m 744 "{}" "${_plugindir}/{}" \; + + # Installation script, ad-hoc tests, etc. + cd ${srcdir}/${_gitname}"/doc" + install -dm0755 "${_plugindir}/doc" + install -m0644 -- *install.sh test-* zcompile zplugin.1 "${_plugindir}/doc" +} |