diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | caniuse-plugin-zsh-git.install | 6 |
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4fa78fc44fac --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = caniuse-plugin-zsh-git + pkgdesc = A plugin for oh-my-zsh adding Can I Use... support to your terminal. + pkgver = r7.bb02483 + pkgrel = 1 + url = https://github.com/r3b311i0n/caniuse.plugin.zsh + install = caniuse-plugin-zsh-git.install + arch = any + license = MIT + makedepends = git + depends = zsh + depends = oh-my-zsh-git + conflicts = caniuse-plugin-zsh + options = !strip + source = git+https://github.com/r3b311i0n/caniuse.plugin.zsh.git + sha256sums = SKIP + +pkgname = caniuse-plugin-zsh-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..da7132d6c08e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Amal Karunarathna <nasashinega@gmail.com> + +_gitname=caniuse.plugin.zsh +pkgname=caniuse-plugin-zsh-git +pkgver=r7.bb02483 +pkgrel=1 +pkgdesc='A plugin for oh-my-zsh adding Can I Use... support to your terminal.' +arch=('any') +url="https://github.com/r3b311i0n/${_gitname}" +license=('MIT') +depends=('zsh' + 'oh-my-zsh-git') +makedepends=('git') +conflicts=('caniuse-plugin-zsh') +options=('!strip') +install="${pkgname}.install" +source=("git+${url}.git") +sha256sums=('SKIP') + +pkgver(){ + cd ${_gitname} + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + install -Dm644 "${srcdir}/${_gitname}/license.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 "${srcdir}/${_gitname}/${_gitname}" "${pkgdir}/usr/share/oh-my-zsh/custom/plugins/caniuse/${_gitname}" +} diff --git a/caniuse-plugin-zsh-git.install b/caniuse-plugin-zsh-git.install new file mode 100644 index 000000000000..fe30a1b33c70 --- /dev/null +++ b/caniuse-plugin-zsh-git.install @@ -0,0 +1,6 @@ +post_install() { + cat << EOF +To activate caniuse, add it to your oh-my-zsh plugins array in your ~/.zshrc: + plugins=(... caniuse ...) +EOF +}
\ No newline at end of file |