blob: 102ad142d2e55a45f042e834db5e0f59700dfa20 (
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
39
40
41
42
43
44
45
46
47
48
49
50
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=ncmpc
pkgver=0.30
pkgrel=2
pkgdesc="Ncurses client for the Music Player Daemon (MPD)"
url="https://www.musicpd.org/clients/ncmpc"
arch="all"
license="GPL-2.0-or-later"
makedepends="glib-dev libmpdclient-dev meson ncurses-dev py-sphinx"
subpackages="$pkgname-doc $pkgname-lang $pkgname-dbg"
source="http://www.musicpd.org/download/$pkgname/0/$pkgname-$pkgver.tar.xz
0001-Fix-blank-progressbar-when-colors-are-not-in-use.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=release \
-Dcurses=ncurses \
-Dlyrics_screen=true \
-Dlyrics_plugin_dir=share/$pkgname/lyrics \
. output
ninja -C output
}
check() {
cd "$builddir"
./output/ncmpc --help > /dev/null
}
package() {
cd "$builddir"
DESTDIR="$pkgdir" ninja -C output install
mkdir -p "$pkgdir"/usr/share/$pkgname/lyrics
install -m755 lyrics/* \
"$pkgdir"/usr/share/$pkgname/lyrics
# Remove HTML documentation
rm -rf "$pkgdir"/usr/share/doc/$pkgname/html
}
sha512sums="bc92c51c78f7919eb6b5cebaac8bda1231701fd9011fcadd6da8bbc5cc16e5dbe30d33d6e2f7d4cc07399299bcd3de572c9516f90d0376212771fd2c3af8afc7 ncmpc-0.30.tar.xz
b153014180e2efc18f458a375ad3507f74bb98a5d7272fe1b1234a2d54ed2d70194115980ea8f33b4854647cbd16e49b4a2427100bf10b96b628a39d98154e3e 0001-Fix-blank-progressbar-when-colors-are-not-in-use.patch"
|