summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e97f5bc4433cd4373a7e6cfe8b6a05292b7ad96e (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
# Maintainer: Ricardo Liang <ricardoliang at gmail dot com>
pkgname=nvim-pygtk3-git
pkgver=r41.ff7b7c1
pkgrel=1
pkgdesc='PyGTK3 frontend to Neovim with some visual GUI elements.'
arch=('any')
url="https://github.com/rliang/nvim-pygtk3"
license=('MIT')
depends=('python-neovim' 'python-gobject' 'vte3')
makedepends=('git' 'python-setuptools')
optdepends=()
conflicts=('nvim-pygtk3')
source=("${pkgname}::git+${url}.git")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname}"
  ( 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() {
  cd "${pkgname}"

  python setup.py install --root="${pkgdir}"

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