summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 725bf51be0b14136d4ca44782bf2c5cf9e69cca5 (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
# Maintainer: substanceof <vk-cli.dev[at]ya[dot]ru>
pkgname=vk-cli
pkgver=0.7.6
pkgrel=1
pkgdesc="A console (ncurses) client for vk.com written in D"
arch=('x86_64' 'i686')
url="https://github.com/vk-cli/vk"
license=('Apache')
depends=('curl' 'openssl' 'ncurses>=5.7')
makedepends=('dub' 'dmd>=2.071.0' 'git' 'dtools')
optdepends=('mpv: for music playback')
provides=("vk-cli")
conflicts=('hardening-wrapper' 'vk-cli-git')

source=("git+https://github.com/vk-cli/vk.git#tag=${pkgver}")
md5sums=('SKIP')

_gitname=vk

build() {
  cd "$srcdir/$_gitname"
  dub build --config=release-shared
}

package() {
  cd "$srcdir/$_gitname"
  install -Dm755 -t "$pkgdir/usr/bin" 'vk'
}