# Maintainer: Amal Karunarathna _gitname=emoji-cli pkgname=emoji-cli-git pkgver=r42.26e2d67 pkgrel=1 pkgdesc="Emoji completion on the command line for ZSH." arch=('any') url="https://github.com/b4b4r07/${_gitname}" license=('MIT') depends=('zsh' 'jq' 'fzf' 'peco') makedepends=('git') conflicts=('emoji-cli') options=('!strip') install="${pkgname}.install" source=("git+${url}.git" 'LICENSE::http://b4b4r07.mit-license.org') sha256sums=('SKIP' 'SKIP') pkgver(){ cd ${_gitname} printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } package() { install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 "${srcdir}/${_gitname}/dict/emoji.json" "${pkgdir}/usr/share/zsh/plugins/${_gitname}/dict/emoji.json" install -Dm644 "${srcdir}/${_gitname}/emoji-cli"{.plugin,}".zsh" "${pkgdir}/usr/share/zsh/plugins/${_gitname}" }