summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4519582bddb39b13d26856696dbf65c301fc02db (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

# Maintainer: Andrea Feletto <andrea@andreafeletto.com>

pkgname=vis-surround-git
_pkgname=${pkgname%-git}
pkgver=r1.635a0a9
pkgrel=1
pkgdesc='Operators for adding/changing/deleting pairs of block delimiters.'
arch=('any')
url='https://repo.or.cz/vis-surround.git'
license=('unknown')
depends=('vis')
optdepends=('vis-pairs: more textobjects delimeters')
provides=('vis-surround')
conflicts=('vis-surround')
source=("git+https://repo.or.cz/$_pkgname.git")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    vispath="$pkgdir/usr/share/vis/plugins"

    cd "$srcdir/$_pkgname"
    install -Dm644 init.lua "$vispath/vis-surround/init.lua"
}