summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e761226ea3a106dd9f6dd6fafcd34241184b3792 (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
28
29
30
31
32
33
34
35
# Maintainer: Jonathan Waldrep <spartan074 at gmail dot com>
# Contributor: Niklas Bolander <niklas.bolander at gmail dot com>

# Maintainer: FlyInWind <2518509078@qq.com>

_gitname=fast-syntax-highlighting
pkgname=zsh-$_gitname
pkgver=1.55
pkgrel=2
pkgdesc='Optimized and extended zsh-syntax-highlighting'
arch=('any')
url='https://github.com/zdharma-continuum/fast-syntax-highlighting'
license=('BSD')
depends=('zsh')
makedepends=('git')
source=("git+https://github.com/zdharma-continuum/${_gitname}.git#tag=v${pkgver}")
sha512sums=('SKIP')
provides=("$pkgname")
conflicts=(
    "${pkgname}-git"
)

package() {
  _srcdir=${srcdir}/${_gitname}
  _plugindir=${pkgdir}/usr/share/zsh/plugins
  _licdir=${pkgdir}/usr/share/licenses/${pkgname}

  install -dm0755 ${_plugindir}
  cp -r ${_srcdir} ${_plugindir}
  rm -rf ${_plugindir}/${_gitname}/.git
  echo ${_plugindir}/${_gitname}/.git

  install -dm755 ${_licdir}
  install -m0644 ${_srcdir}/LICENSE ${_licdir}
}