aboutsummaryrefslogtreecommitdiffstats
path: root/community/ncmpc/APKBUILD
blob: 44ef26597ba2b0848acdeb1164f902704dc06669 (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
# 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.33
pkgrel=0
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 boost-dev"
subpackages="$pkgname-doc $pkgname-lang $pkgname-dbg"
source="https://www.musicpd.org/download/$pkgname/0/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	LDFLAGS="$LDFLAGS -lintl" meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share \
		--localstatedir=/var \
		--buildtype=release \
		-Dlirc=disabled \
		-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="47730003c9a8ad5b6e682de4b4d3c8882d3266659fcd73ea131d1bba3d6b4d9ac66bb1a3522d63cb238ca9e22d8035907b9d7621a0b5106763770b17325f53b9  ncmpc-0.33.tar.xz"