blob: 6568988a5f2a8a1fd39637b3da950220a975ed24 (
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
|
# Maintainer: Amal Karunarathna <nasashinega@gmail.com>
_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}"
}
|