summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f4a4f36508d10b7618196a1db41bf8e046b0da9b (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
# Maintainer: Caleb Bassi <calebjbassi@gmail.com>

pkgname=vim-anywhere-git
pkgver=r3.b6524e8
pkgrel=1
pkgdesc="Use Vim to edit text anywhere"
arch=("any")
url="https://github.com/cjbassi/vim-anywhere"
license=("MIT")
depends=("xclip")
makedepends=("git")
provides=("vim-anywhere")
source=("git+https://github.com/cjbassi/vim-anywhere")
md5sums=("SKIP")

pkgver() {
  cd "vim-anywhere"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package() {
    mkdir -p "$pkgdir/usr/bin"
    mv $srcdir/vim-anywhere/vim-anywhere $pkgdir/usr/bin
}