diff options
author | Achmad Fathoni | 2021-05-22 15:23:08 +0700 |
---|---|---|
committer | Achmad Fathoni | 2021-05-22 15:23:08 +0700 |
commit | 94de7b9f0c4cb862a8489117b9ad11cfee61f388 (patch) | |
tree | ea889080bc397d95c6d8a4cf6b0fd91d258bf5ed | |
download | aur-94de7b9f0c4cb862a8489117b9ad11cfee61f388.tar.gz |
init
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..19bf95de7613 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = zsh-easy-motion-git + pkgdesc = Vim's easy-motion for zsh + pkgver = r65.bc71781 + pkgrel = 1 + url = https://github.com/IngoMeyer441/zsh-easy-motion + arch = any + license = MIT + makedepends = git + depends = zsh + source = git+https://github.com/IngoMeyer441/zsh-easy-motion.git + sha512sums = SKIP + +pkgname = zsh-easy-motion-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..30685fb924c8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Achmad Fathoni <fathoni DOT id AT gmail DOT com> + +pkgname=zsh-easy-motion-git +pkgver=r65.bc71781 +pkgrel=1 +pkgdesc="Vim's easy-motion for zsh" +arch=('any') +url='https://github.com/IngoMeyer441/zsh-easy-motion' +license=('MIT') +depends=('zsh') +makedepends=('git') +source=("git+${url}.git") +sha512sums=('SKIP') + +_gitname="${pkgname::-4}" + +pkgver() { + cd "${_gitname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + typeset _plugindir="${pkgdir}/usr/share/zsh/plugins" + typeset _licdir="${pkgdir}/usr/share/licenses/${pkgname}" + + install -Dm755 "${srcdir}/${_gitname}/easy_motion.plugin.zsh" "${_plugindir}" + install -Dm755 "${srcdir}/${_gitname}/easy_motion.py" "${_plugindir}" + install -Dm644 "${srcdir}/${_gitname}/LICENSE" "${_licdir}" +} |