summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71fa9d438b4e06624d92049bbfd4c130ba539760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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"
}