summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bdae867e19e2cd7622f76d8584bc9dead6ff20a1 (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
36
37
pkgname=neovim-telescope-opt-git
_pkgname=telescope
pkgver=1173.776b509f
pkgrel=1
pkgdesc='Find, Filter, Preview, Pick. All lua, all the time.'
arch=('any')
url="https://github.com/nvim-${_pkgname}/${_pkgname}.nvim"
license=('MIT')
provides=('neovim-telescope')
depends=('neovim' 'plenary.nvim')
makedepends=('git')
optdepends=('ripgrep: required for live_grep and grep_string' 'fd: finder' 'neovim-treesitter: finder and previewer' 'neovim-lsp: picker' 'devicons: icons')
source=("${_pkgname}::git+${url}.git#branch=0.1.x")
sha256sums=('SKIP')


pkgver() {

    cd "${srcdir}/${_pkgname}"

    echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"

}

package() {

    cd "${srcdir}/${_pkgname}"

    local _installpath="usr/local/share/nvim/site/pack/${_pkgname}/opt/${_pkgname}/"

    install -dvm755 "${pkgdir}/${_installpath}"

    cp -rvt "${pkgdir}/${_installpath}" autoload data doc ftplugin lua plugin scripts

    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

}