summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fcaf5896734a11b3ea3f87b6eb088cdda6997190 (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
# Maintainer:  <reg-archlinux AT klein DOT tuxli DOT ch> 
# Contributor: Tuure Piitulainen <tuure.piitulainen@gmail.com>
# Contributor: dpayne <darby.payne@gmail.com>

pkgname=cli-visualizer
pkgver=1.8
pkgrel=10
pkgdesc="A cli visualizer for mpd"
arch=('i686' 'x86_64')
url="https://github.com/dpayne/cli-visualizer/"
license=('MIT')
options=(!buildflags)
depends=('ncurses' 'fftw')
makedepends=('git' 'fftw' 'cmake')
conflicts=('vis')
install=${pkgname}.install
source=("https://github.com/dpayne/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('927e4c18403c7a40397e8698ffefd1b37250be20fa0ec55fda9a82cf9cc8ba51')

build() {
    cd ${pkgname}-${pkgver}
    cmake ./
    make
}

package() {
  cd ${pkgname}-${pkgver}
  install -Dm755 vis "${pkgdir}/usr/bin/vis"
  install -Dm644 examples/blue "${pkgdir}"/usr/share/doc/"${pkgname}"/blue
  install -Dm644 examples/config "${pkgdir}"/usr/share/doc/"${pkgname}"/config
  install -Dm644 examples/rainbow "${pkgdir}"/usr/share/doc/"${pkgname}"/rainbow
  install -Dm644 examples/basic_colors "${pkgdir}"/usr/share/doc/"${pkgname}"/basic_colors
  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
}