summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d317bdd802af9ca20a802714053545f56803b796 (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: emnl <github.com/Ema0>

pkgname=mpdviz
pkgver=0.4.7
pkgrel=1
pkgdesc='Standalone console MPD visualizer'
arch=('x86_64' 'i686' 'ARM')
url='https://github.com/lucy/mpdviz'
license=('custom:MIT')
makedepends=('go')
depends=('fftw')
options=('!strip')

source=("$pkgname::git+https://github.com/lucy/$pkgname.git")
sha256sums=('SKIP')

prepare() {
	cd "$srcdir/$pkgname"
	export GOPATH="$srcdir"
	go get -d
}

build() {
	cd "$srcdir/$pkgname"
	export GOPATH="$srcdir"
	go clean
	go build -o mpdviz
}

package() {
	cd "$srcdir/$pkgname"
	install -T -Dm755 mpdviz "$pkgdir/usr/bin/mpdviz"
	install -T -Dm644 _mpdviz "$pkgdir/usr/share/zsh/site-functions/_mpdviz"
	install -T -Dm644 LICENSE "$pkgdir/usr/share/licenses/mpdviz/LICENSE"
}