blob: 0aa08729f3b38d7fa9ef1141704c116d2b21e631 (
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
|
# 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.36
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 py3-sphinx boost-dev"
subpackages="$pkgname-doc $pkgname-lang $pkgname-dbg"
source="https://www.musicpd.org/download/ncmpc/0/ncmpc-$pkgver.tar.xz
doc-py3.patch
"
build() {
LDFLAGS="$LDFLAGS -lintl" meson \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--buildtype=debugoptimized \
-Dlirc=disabled \
-Dcurses=ncurses \
-Dlyrics_screen=true \
-Dlyrics_plugin_dir=share/$pkgname/lyrics \
. output
ninja -C output
}
check() {
./output/ncmpc --help > /dev/null
}
package() {
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="7eb15bd1b63d2abb7a9b8ad8389ecb63a4c3f14f2216467761e547615ceb445335e4fcb6bc5f7fc8beca332b62124ea34cd4675c19c19c4f1595400b1e29d73d ncmpc-0.36.tar.xz
de2f4ed40c72047e535b97a7a4ae57d36e15bab167a1724e636628e1a55134c128e1e13d5bc12d3223d095f8d91e966aa660af70004312b58e6d040b8914ba8e doc-py3.patch"
|