1 # Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2 # Source: https://github.com/nicoulaj/archlinux-packages
3 pkgname=zsh-syntax-highlighting
6 pkgdesc="Fish shell like syntax highlighting for Zsh."
8 url="https://github.com/zsh-users/zsh-syntax-highlighting"
10 depends=("zsh>=4.3.9")
11 install=${pkgname}.install
13 conflicts=(${pkgname}-git)
14 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/zsh-users/${pkgname}/tarball/${pkgver}")
15 md5sums=('7450d5cc334ac21c6c26aa82bc2c9749')
18 msg2 "Install scripts at /usr/share/zsh/plugins/${pkgname}..."
19 install -m0755 -d "${pkgdir}/usr/share/zsh/plugins/${pkgname}"
20 cp -r "${srcdir}"/zsh-users-${pkgname}-*/* "${pkgdir}/usr/share/zsh/plugins/${pkgname}"
22 msg2 "Install links to the documentation resources at /usr/share/doc/${pkgname}..."
23 install -m0755 -d "${pkgdir}/usr/share/doc"
24 ln -s /usr/share/zsh/plugins/${pkgname} "${pkgdir}/usr/share/doc/${pkgname}"
26 msg2 "Install links to the license resources at /usr/share/licenses/${pkgname}..."
27 install -m0755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
28 ln -s /usr/share/zsh/plugins/${pkgname}/COPYING.md "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"