summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1d83a0370c9a4e330f5f6644fc773dfa797add5c (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
36
37
38
# Maintainer: substanceof <vk-cli.dev[at]ya[dot]ru>
pkgname=vk-cli-git
pkgver=0.7.5.r980.cc4d8b7
pkgrel=1
pkgdesc="A console (ncurses) client for vk.com written in D (git upstream)"
arch=('x86_64' 'i686')
url="https://github.com/HaCk3Dq/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')

source=("git+https://github.com/HaCk3Dq/vk.git")
md5sums=('SKIP')

_gitname=vk
_basever="0.7.4"

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

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

package() {
  cd "$srcdir/$_gitname"
  _installdir="${pkgdir}/usr/bin"

  mkdir -p "${_installdir}"
  cp vk "${_installdir}/vk"
}