summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..16aa8736744
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Byeonghoon Yoo <bh322yoo@gmail.com>
+
+_name='history-search-multi-word'
+
+pkgname="zsh-${_name}-git"
+pkgver=r285.73e7ea4
+pkgrel=1
+pkgdesc='Multi-word, syntax highlighted history searching for Zsh'
+arch=('any')
+license=('MIT')
+url='https://github.com/zdharma/history-search-multi-word'
+depends=('zsh>=5.0.0')
+makedepends=('git')
+source=("${_name}::${url//https/git}")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "${_name}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ typeset _plugindir="${pkgdir}/usr/share/zsh/plugins/${_name}"
+
+ cd "${srcdir}/${_name}"
+
+ install -dm0755 "${_plugindir}"
+ install -m644 history-search-multi-word* "${_plugindir}"
+ install -m644 hsmw-* "${_plugindir}"
+
+ # license
+ install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
+}