diff options
author | Andy Kluger | 2020-04-07 19:35:25 -0400 |
---|---|---|
committer | Andy Kluger | 2020-04-07 19:35:25 -0400 |
commit | b94dae8db5dd24ceaa45cc41486058f942601fba (patch) | |
tree | 7b43a4f4cd0330642f6718ec93277f4935ef841d | |
download | aur-zsh-z-git.tar.gz |
first commit, seems to work fine
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..35d0b80ef42b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = zsh-z-git + pkgdesc = Jump quickly to directories that you have visited "frecently." A native ZSH port of z.sh. + pkgver = 220.e138de5 + pkgrel = 1 + url = https://github.com/agkozak/zsh-z + arch = any + license = MIT + makedepends = git + depends = zsh + provides = zsh-z + conflicts = zsh-z + source = git+https://github.com/agkozak/zsh-z + sha512sums = SKIP + +pkgname = zsh-z-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..71fa9d438b4e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Andy Kluger <https://t.me/andykluger> + +_pkgname=zsh-z +pkgname=${_pkgname}-git +pkgver=220.e138de5 +pkgrel=1 +pkgdesc='Jump quickly to directories that you have visited "frecently." A native ZSH port of z.sh.' +arch=('any') +url='https://github.com/agkozak/zsh-z' +license=('MIT') +depends=('zsh') +makedepends=('git') +conflicts=("$_pkgname") +provides=("$_pkgname") +source=('git+https://github.com/agkozak/zsh-z') +sha512sums=('SKIP') + +pkgver() { + cd "${_pkgname}" + printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + install -Ddm755 "${pkgdir}/usr/share/zsh/plugins/${_pkgname}" + cp -r "${srcdir}/${_pkgname}"/* "${pkgdir}/usr/share/zsh/plugins/${_pkgname}/" + install -Dm644 "${srcdir}/${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" +} |