summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 030347668fe1f76dc7ef97a272694dde2b9b645d (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
# Maintainer:  Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=vy
pkgver=4.3.1
pkgrel=1
pkgdesc='A vim-like text editor in python, made from scratch'
arch=('any')
url="https://github.com/vyapp/vy"
license=('MIT')
depends=('python-vulture'
         'python-pyflakes'
         'python-jedi'
         'python-pygments'
         'python-future'
         'python-rope'
         'mypy'
         'python-untwisted')
makedepends=('python-setuptools' 'gendesk')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/vyapp/vy/archive/v${pkgver}.tar.gz")
sha256sums=('e106004390a22baba7128ec4b38ef9422d1cdd6235ccf1056dc7d8de2144d97e')

package() {
  cd "vy-${pkgver}"
  python setup.py install --root="$pkgdir/" --optimize=1
  install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm644 vy.png "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
  gendesk -f -n --pkgname "${pkgname}" \
            --pkgdesc "$pkgdesc" \
            --name "vy" \
            --comment "$pkgdesc" \
            --exec "${pkgname}" \
            --categories 'TextEditor;Development;' \
            --icon "${pkgname}"
  install -Dm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
}