aboutsummaryrefslogtreecommitdiffstats
path: root/community/ncmpc/APKBUILD
blob: 8371957fc04a52d743f79ec5c5f0a855ac7fa594 (plain) (blame)
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
# 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.42
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 py3-sphinx boost-dev
	lirc-dev"
subpackages="$pkgname-doc $pkgname-lang $pkgname-dbg"
source="https://www.musicpd.org/download/ncmpc/0/ncmpc-$pkgver.tar.xz"

build() {
	LDFLAGS="$LDFLAGS -lintl" \
	abuild-meson \
		-Dlirc=enabled \
		-Dcurses=ncurses \
		-Dlyrics_screen=true \
		-Dlyrics_plugin_dir=share/$pkgname/lyrics \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output

	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="fc232d501bea68d7a382eda7f532f62189233c49071f083dbc4f2fc188015c58dd247e84e998aef121f204059801cf09b0a2f1214deea785abea343217ce5798  ncmpc-0.42.tar.xz"