diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5e10dc5aa3ad --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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#tag=$pkgver") +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" +} |