summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorD3SOX2022-03-01 10:51:30 +0100
committerD3SOX2022-03-01 10:51:30 +0100
commitcbd1204235b49027a94915ee90694677bbbbbe50 (patch)
treedad7ce5bf909c51351d17e148e7307d2812e2a9a
downloadaur-cbd1204235b49027a94915ee90694677bbbbbe50.tar.gz
initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD38
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..4dfa8a8c4421
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = zsh-fzf-plugin-git
+ pkgdesc = Zsh plugin to enable fzf history search (sourced from Oh My Zsh, for use without it)
+ pkgver = r6555.511ed6540
+ pkgrel = 1
+ url = https://github.com/ohmyzsh/ohmyzsh
+ arch = any
+ license = MIT
+ makedepends = git
+ depends = zsh
+ depends = fzf
+ provides = zsh-fzf-plugin
+ conflicts = zsh-fzf-plugin
+ source = git+https://github.com/ohmyzsh/ohmyzsh.git
+ sha512sums = SKIP
+
+pkgname = zsh-fzf-plugin-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..07b84cf01458
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Nico <d3sox at protonmail dot com>
+_gitname=ohmyzsh
+pkgname=zsh-fzf-plugin-git
+pkgver=r6555.511ed6540
+pkgrel=1
+pkgdesc='Zsh plugin to enable fzf history search (sourced from Oh My Zsh, for use without it)'
+arch=('any')
+url="https://github.com/ohmyzsh/$_gitname"
+license=('MIT')
+depends=('zsh' 'fzf')
+makedepends=('git')
+source=("git+https://github.com/ohmyzsh/$_gitname.git")
+sha512sums=('SKIP')
+provides=('zsh-fzf-plugin')
+conflicts=('zsh-fzf-plugin')
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+
+ # Get the version number.
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+
+ _plugindir="$pkgdir/usr/share/zsh/plugins/zsh-fzf-plugin"
+
+ # install plugin
+ install -dm 755 "$_plugindir"
+ install -Dm 644 "plugins/fzf/fzf.plugin.zsh" "$_plugindir"
+
+ # install doc
+ install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+ # install license
+ install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
+}
+