summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c57372bf504bbc40004f87050524a626e9e16ec (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
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: Denis Kasak <dkasak|AT|termina.org.uk>

pkgname=vimpc-git
pkgver=0.09.2.r8.gc518610
pkgrel=1
pkgdesc="Vi/vim inspired client for Music Player Daemon (MPD)"
arch=('x86_64')
url="https://github.com/boysetsfrog/vimpc"
license=('GPL3')
#makedepends=('git')
makedepends=('boost' 'git')
depends=('libmpdclient' 'ncurses' 'pcre' 'taglib')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $pkgname
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname
  install -Dm644 doc/vimpcrc.example "$pkgdir/usr/share/doc/vimpc/vimpcrc.example"
  make DESTDIR="$pkgdir/" install
}