diff options
author | amoka | 2021-01-08 17:51:51 -0500 |
---|---|---|
committer | amoka | 2021-01-08 17:51:51 -0500 |
commit | 751640c5edadb0ef21d125d717169dd56c434e3b (patch) | |
tree | fd89fb9d333a79e6105ac042bd4c35558236711a /PKGBUILD | |
parent | 7a3aca57ff5674a64f889f93a5790b071f250d21 (diff) | |
download | aur-751640c5edadb0ef21d125d717169dd56c434e3b.tar.gz |
Adopt and update package
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 45 |
1 files changed, 30 insertions, 15 deletions
@@ -1,27 +1,42 @@ -# Maintainer: Sam Stuewe <halosghost at archlinux dot info> +# Maintainer: Amanoel Dawod <amoka at amanoel dot com> +# Contributor: Sam Stuewe <halosghost at archlinux dot info> # Contributor: mjheagle <mjheagle8@gmail.com> -_name='zsh-syntax-highlighting' -pkgname="${_name}-git" -pkgver=0.4.0.r167.gfdaeec4 + +_pkgname=zsh-syntax-highlighting +pkgname="${_pkgname}-git" +pkgver=0.8.0.alpha1.pre.redrawhook.r46.g5eb4948 pkgrel=1 -pkgdesc='Fish shell like syntax highlighting for Zsh' -url='https://github.com/zsh-users/zsh-syntax-highlighting' +pkgdesc="Fish shell like syntax highlighting for Zsh (from git)" arch=('any') -license=('Custom') +url="https://github.com/zsh-users/zsh-syntax-highlighting" +license=('BSD') depends=('zsh>=4.3.9') makedepends=('git') -provides=('zsh-syntax-highlighting') -conflicts=('zsh-syntax-highlighting') -install="${_name}.install" -source=("${_name}::${url//https/git}") +provides=($_pkgname) +conflicts=($_pkgname) +install="${_pkgname}.install" +source=("git+$url.git") sha256sums=('SKIP') pkgver() { - cd "${srcdir}/${_name}" - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + cd $_pkgname + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd $_pkgname + make } package() { - cd "${srcdir}/${_name}" - make DESTDIR="${pkgdir}" PREFIX='/usr' install + cd $_pkgname + make PREFIX="/usr" SHARE_DIR="${pkgdir}/usr/share/zsh/plugins/$_pkgname" DESTDIR="${pkgdir}" install + # create symlink for using with oh-my-zsh + ln -s "zsh-syntax-highlighting.zsh" \ + "${pkgdir}/usr/share/zsh/plugins/$_pkgname/zsh-syntax-highlighting.plugin.zsh" + + # licence + install -dm755 "${pkgdir}/usr/share/licenses/$_pkgname" + ln -s "/usr/share/doc/$_pkgname/COPYING.md" \ + "${pkgdir}/usr/share/licenses/$_pkgname/COPYING" } |